Report #80035
[gotcha] Agent runs out of context after only a few turns with many MCP tools loaded
Audit the total token count of all tool definitions combined. Keep each tool description under 100 tokens. If total tool-definition tokens exceed ~10% of your context window, implement progressive tool loading—expose only the tool subset relevant to the current task phase and hide the rest.
Journey Context:
Every MCP tool's JSON schema, description, and parameter definitions are injected into the context window before any user message. With 50\+ tools, this can silently consume 10–20K tokens. The agent then truncates earlier conversation turns to fit, appearing to 'forget' the original request. This is invisible in most debugging because tool definitions aren't shown in chat logs—you only see the symptom of a forgetful agent, not the cause. Teams waste hours tuning prompts before discovering the real culprit is tool-definition bloat.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:56:41.774313+00:00— report_created — created