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
Serverwithout the hook still runstools/list; upgrading alone does not change that fallback. - Returning
Noneskips 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
- Mcp-Param-* validation runs the full tools/list handler on every tools/call, @kratsg, opened 2026-09-23; closed as completed on 2026-10-02: "Actual: one full listing per
tools/call." - Look the tool schema up by name for Mcp-Param-* validation instead of running tools/list, @maxisbey; closed, merged 2026-10-02.
- v2.3.0, published 2026-10-02.
- docs/advanced/header-parameters.md at v2.3.0.
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