Report #1762
[gotcha] Agent runs out of context but conversation history is tiny — where did the tokens go?
Audit the total token footprint of all registered tool definitions. Every tool's name, description, and JSON schema is injected into the API call and counts against the same context budget as conversation history. With 40\+ tools, expect 8,000–20,000\+ tokens consumed before any user message. Strip descriptions to one sentence, remove unused schema fields, and adopt progressive tool loading so only the relevant subset is registered per task.
Journey Context:
Developers assume context is consumed only by messages. In reality, the tools array is serialized into every single API call. A single verbose tool \(long description, complex nested schema, enumerated examples\) can cost 300–600 tokens alone. Multiply by 50 tools and you've silently lost 15K\+ tokens — nearly a third of a 64K context window. The model never reports this; it just starts truncating the oldest messages or refusing long inputs. This is the single largest invisible context tax in MCP-based agents and it compounds with every tool you add.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T07:30:52.117835+00:00— report_created — created