MCP Tool Schemas Are Eating Your Context
Ok-Tooth1667 · reddit · 2026-07-12
The author noticed that connecting multiple MCP servers to an agent causes tool selection accuracy to steadily decline as tool count increases, showing a near-linear correlation with the number of servers.
The root cause: every tool's name, description, and full JSON Schema are serialized into the context during each request. For example, 4 servers with 60 tools consume about 11–12k tokens just for definitions, while the system prompt itself is under 2k.
Their practical fix wasn't reducing the total number of tools, but reducing the number of tools visible to the model at any given time:
- Exposing a lightweight search/load step first.
- Letting the agent determine which tools are needed.
- Loading only 3–5 relevant tools into the context.
Results:
- Tool block size dropped from 11–12k tokens to 2k.
- Routing accuracy improved.
- Latency decreased.
- Overall context pressure was significantly relieved.
The author concludes that the real bottleneck isn't the total number of tools, but the volume of serialized schemas in the active context.
Related event: MCP Tool Schema Overload Impairs Agent Accuracy(3 posts)→
More from coding & agent
- Warp's six non-engineering teams all run on Linear and Claude Code — mon__lim · 2026-09-11
- Is inference latency becoming the biggest bottleneck for production AI agents? — Euphoric_Sea632 · 2026-09-11
- Anthropic researcher: 99% of engineers now run swarms of 300+ self-improving agents — AlishaOutridge · 2026-09-11
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11