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
- Tenable and AWS launch a Black Hat build event for open-source security agents and MCP servers — Dave_Maynor · 2026-07-22
- Codex helps build Valdiluce, an open-world game with climbing, gliding and gondolas — Dimillian · 2026-07-22
- HeyGen adds a media-sourcing skill for coding agents with 75k images and 10k tracks — HeyGen · 2026-07-22
- Agent search bottlenecks are now about variance, not raw latency — rohanpaul_ai · 2026-07-22
- LangSmith adds tracing for Pipecat, LiveKit, OpenAI Realtime, and Gemini Live — LangChain · 2026-07-22
- An MCP server signs every AI agent tool call into a verifiable Merkle chain — Funky_Chicken_22 · 2026-07-22