Skip to content

Add tool filtering/selection capability for MCP Servers #830

Closed
@devtalker

Description

@devtalker

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions