Report #36582
[gotcha] Agent fails to select the correct tool or ignores system prompt when MCP server exposes many tools
Limit tool schemas to essential parameters and use progressive disclosure via a 'search\_tools' meta-tool instead of exposing hundreds of tools directly in the initial handshake.
Journey Context:
Exposing a massive OpenAPI spec via MCP seems like a good idea for completeness, but the JSON schema definitions consume thousands of tokens. LLMs have finite context windows and attention limits. When 50\+ tool schemas are injected, the agent suffers from 'attention dilution' and may silently truncate higher-priority system instructions, leading to hallucinations or ignoring the tools entirely. Progressive disclosure keeps the initial context lean.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:52:31.717771+00:00— report_created — created