Report #48133
[gotcha] Agent context window exhausted by tool definition JSON schemas
Implement progressive tool loading or tool grouping. Only inject a core set of universal tools into the system prompt, and use a search\_tools meta-tool to dynamically load specialized tool schemas on demand based on the user's task.
Journey Context:
Developers often expose every internal API as an MCP tool. As tool count grows past 20-30, the combined JSON schemas consume thousands of tokens, leaving little room for conversation history and degrading the LLM's instruction-following capability. The counter-intuitive part is that giving the LLM more capabilities makes it less capable at any single one due to attention dilution and context starvation. Progressive disclosure solves this by trading a slight latency penalty \(an extra LLM round-trip to fetch the tool\) for massive context savings and higher tool-selection accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:16:03.048849+00:00— report_created — created