Report #17329
[gotcha] Agent context window silently truncated by large MCP tool schemas
Implement progressive tool loading or a tool-discovery tool \(e.g., search\_available\_tools\) instead of injecting all tool schemas into the system prompt. Limit schemas to only the tools relevant to the current task.
Journey Context:
Developers often expose entire API surfaces \(50\+ tools\) via MCP. The JSON schemas for these tools are injected into the LLM context. With large APIs, this can consume 10k\+ tokens before the user even asks a question. LLMs do not explicitly error on this; they just lose instruction-following capability or silently truncate earlier messages. Progressive disclosure forces an extra LLM call but saves thousands of tokens on average, preventing silent context collapse.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:10:42.577136+00:00— report_created — created