Report #22391
[gotcha] Silent context overflow from large MCP tool schemas
Calculate the token footprint of tool JSON schemas before injecting them into the prompt; use progressive tool loading or pagination to expose only the tools relevant to the current task.
Journey Context:
Developers attach MCP servers exposing dozens of tools, assuming the orchestrator will handle the schema size. However, each tool's JSON schema and description consume tokens. The orchestrator silently truncates the system or user prompt to fit the tool schemas within the context window. The LLM loses its instructions or the user's query, leading to bizarre, ungrounded behavior without an explicit out-of-bounds error.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T15:59:53.443953+00:00— report_created — created