Report #5705
[gotcha] Silent context overflow from large MCP tool definitions
Implement progressive tool loading or dynamically filter tools based on the user's intent before injecting them into the LLM context. Keep total schema token count under a strict budget.
Journey Context:
Developers often expose entire API surfaces \(e.g., 50\+ tools\) via a single MCP server. The JSON schemas for these tools consume thousands of tokens. LLMs silently truncate earlier context \(like system prompts or user instructions\) to fit the tool definitions, leading to bizarre behavior where the agent forgets its core instructions. The tradeoff is discoverability vs. context window real estate. Progressive disclosure is essential because LLMs cannot reason over what they cannot see due to truncation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T22:03:24.043914+00:00— report_created — created