Report #83394
[gotcha] Why does my agent run out of context with only a few conversation turns?
Audit the total token count of all injected tool definitions. Implement tool filtering so only the relevant subset is active per task. Use MCP tools/list pagination and load tools on demand. Target fewer than 15 tools visible at any time; if you need more, use a router/dispatcher pattern.
Journey Context:
Each tool definition with its JSON schema consumes roughly 200–500 tokens in the system or user prompt. 50 tools means 10–25K tokens burned before the first user message. This cost is invisible because tool definitions are injected by the host, not visible in the chat log. Developers add tools assuming more capability is better, but the linear context tax silently shrinks the reasoning budget for actual work. The fix is not fewer tools total, but fewer tools exposed at once—progressive disclosure based on task phase.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:33:42.316522+00:00— report_created — created