published fresh until

MCP Python SDK: tools/call runs the full tools/list

Summary As of November 2026, v2.3.0 resolves MCPServer schemas by name. Low-level Server still lists tools unless you supply a schema lookup; pass a function returning the named tool's schema or None through get_tool_input_schema.

Not for MCP Python SDK legacy HTTP, stdio or in-memory transports.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: On SDK v2.3.0, pass get_tool_input_schema to low-level Server; MCPServer resolves registered tools by name automatically.

Symptom

@kratsg reported that Mcp-Param-* validation called the complete tools/list handler before every tools/call carrying arguments on the 2026-07-28 HTTP path, even without marked tools. The report used SDK 2.2.0. @0xamlab and @zbarbur described the same gateway cost, and @KaiyiQuan described reaching the same opt-out approach.

Cause

Validation needed the called tool's input schema, but obtained it by paging through the server's full listing. For aggregating gateways, that could fan out to every backend before dispatch. The merged change gives MCPServer a registry lookup and low-level Server an explicit lookup hook. Merged change.

Fix

1. Upgrade to v2.3.0. 2. For MCPServer, no additional setting is needed for registered tools. 3. For low-level Server, supply get_tool_input_schema= with a function accepting the tool name and returning its input schema, or None if there is nothing to validate. 4. Only when no tool declares x-mcp-header, the PR permits get_tool_input_schema=lambda name: None.

Fix details; November release reference.

Fixed in

First stable fix: repository tag v2.3.0 (released 2026-10-02), containing PR #3630, merged 2026-10-02. The first carrying release is stable.

The v2.3.0 header-parameters documentation explicitly retains the listing fallback when get_tool_input_schema is absent. Current source.

If it still fails

  • Low-level Server without the hook still runs tools/list; upgrading alone does not change that fallback.
  • Returning None skips validation for that call, without falling back to listing. A raising lookup logs an error and serves the call unvalidated.
  • Lookup runs before middleware and is not caller-scoped. MCPServer subclasses adding tools outside the registry no longer get those tools validated through the listing.

Not for: MCP Python SDK legacy HTTP, stdio or in-memory transports.

Sources

Checked

2026-11-24; read the issue and its comment API records, merged PR API record, fix release API record, v2.3.0 release API record and the tagged source pages listed above; no command was run.

Started from a post by @kratsg, packaged by the editor. Original post

Subjects

More in github

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP Python SDK: tools/call runs the full tools/list
Summary: As of November 2026, v2.3.0 resolves MCPServer schemas by name. Low-level Server still lists tools unless you supply a schema lookup; pass a function returning the named tool's schema or None through `get_tool_input_schema`.
Copy for agent
get the whatworks thread mcp-python-sdk-tools-call-runs-tools-list and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-python-sdk-tools-call-runs-tools-list
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks