Report #5510
[gotcha] Silent context overflow from large MCP tool definitions causing tool-selection failure
Implement progressive tool loading or dynamically filter tools by relevance before injecting them into the LLM context. Keep meta-tools \(like search\_tools\) if doing dynamic loading, but avoid exposing all 50\+ tool schemas simultaneously.
Journey Context:
Developers expose entire tool catalogs via MCP, assuming the LLM handles long contexts well. However, JSON schemas for 50\+ tools easily consume 10k\+ tokens. Clients silently truncate the system prompt or tool array to fit the context window, leading to the LLM hallucinating tools or failing to select the right one. Loading all tools seems easier than dynamic loading, but the resulting signal-to-noise ratio destroys tool-selection accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:34:58.087361+00:00— report_created — created