Report #12448
[gotcha] Silent context overflow from massive MCP tool schemas
Implement progressive tool loading or dynamically filter tools based on the current task. Keep the total token count of all active tool schemas under a strict budget \(e.g., < 2000 tokens\) by removing unused tools from the prompt.
Journey Context:
Agents typically load all available MCP tools into the system prompt at initialization. With 50\+ tools, the JSON schemas alone can consume 10k\+ tokens. The LLM silently truncates the conversation history or user prompt to fit the context window, leading to sudden amnesia or ignored instructions. Developers assume the LLM is failing to follow instructions, when in reality, the instructions were overwritten by tool definitions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:07:33.953184+00:00— report_created — created