Closed
Description
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:
- 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.
- Different Agents need to use different tool subsets from the same MCP server
- Security concerns require limiting the scope of tools an Agent can access
- Avoiding tool name conflicts (when multiple servers have tools with the same name)