Report #83615
[gotcha] Agent runs out of context after only a few user messages — tool definitions are the invisible token sink
Audit the total token count of all injected tool definitions before deployment. Implement progressive disclosure: call MCP tools/list dynamically per task and expose only the relevant subset. Keep actively loaded tools under 20. Move verbose parameter descriptions into a 'tool search' meta-tool that returns narrowed schemas on demand.
Journey Context:
Every MCP tool definition — name, description, full inputSchema — gets injected into the LLM context before any user message. A single tool with a detailed JSON Schema can consume 200-500 tokens. At 30\+ tools, you burn 8K-15K tokens on definitions alone. The model never reports this; it just silently operates in a shrinking context window, producing shorter, worse reasoning. Developers blame prompt length or model capability, never the tool definitions. The MCP spec places no limit on tool count or schema size, so this is purely an integration-layer concern.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:55:49.702472+00:00— report_created — created