Skip to content

[Improvement]: Only advertise authorized tools based on mcp_authz policy #2753

Description

@jhivandb

Please select the area the issue is related to

Gateway

Please select the aspect the issue is related to

Aspect/AI (AI/LLM integration, MCP, AI readiness)

Suggested Improvement

When an mcp client does its tool discovery, based on the scopes in its access token only return the set of tools it has access to. Default for tools unmapped to a scope should be to return them.

  Request (JSON-RPC 2.0):
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {
      "cursor": "optional-opaque-pagination-cursor"
    }
  }

Reasoning is an agent will always attempt a tool it sees returned until it fails which wastes tokens.

Related Issues

#2751

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions