Skip to content

Add tool filtering/selection capability for MCP Servers #830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
devtalker opened this issue Jun 9, 2025 · 2 comments
Closed

Add tool filtering/selection capability for MCP Servers #830

devtalker opened this issue Jun 9, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@devtalker
Copy link

Please read this first

  • Have you read the docs? Yes, I have read the Agents SDK docs, particularly the MCP documentation section.
  • Have you searched for related issues? Yes, I have searched for related issues and haven't found similar feature requests.

Describe the feature

Feature Request: Add tool filtering/selection capability for MCP Servers

Problem Description:
Currently, the Agent SDK automatically fetches all available tools from MCP servers without the ability to select only specific tools. This creates inconveniences in the following scenarios:

  1. MCP servers provide numerous tools, but the Agent only needs to use a subset of them. In many cases, only a subset of tools is needed, and unwanted tools occupy LLM context and affect the accuracy of Agent tool selection.
  2. Different Agents need to use different tool subsets from the same MCP server
  3. Security concerns require limiting the scope of tools an Agent can access
  4. Avoiding tool name conflicts (when multiple servers have tools with the same name)
@devtalker devtalker added the enhancement New feature or request label Jun 9, 2025
@DanieleMorotti
Copy link
Contributor

Hi, I think this issue may be related to #376

@devtalker
Copy link
Author

Hi, I think this issue may be related to #376

Yes, it is a similar question. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants