Report #7892
[gotcha] Agent loses track of conversation or fails instruction following with 50\+ MCP tools loaded
Implement progressive tool loading \(tool retrieval\) or namespace grouping; only inject tool schemas into the context when the agent's intent matches the tool domain.
Journey Context:
Developers often load all available MCP tool schemas into the system prompt. With 50\+ tools, the token count for schemas alone can exceed 10k tokens, shrinking the effective context window for reasoning and causing the LLM to 'forget' instructions or hallucinate tool parameters. Loading on demand fixes the context size but introduces a retrieval step; however, the tradeoff is worth it because LLMs degrade severely when tool schemas exceed a certain percentage of the context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:07:27.862406+00:00— report_created — created