Report #52619
[gotcha] MCP tool definitions consuming entire context window with 50\+ tools
Use namespaced tool prefixes and load tools on demand; group tools by capability and only expose relevant subsets per task; implement progressive disclosure where tools are discovered and injected only when a subtask requires them.
Journey Context:
MCP's tools/list returns ALL tool schemas upfront. Each tool's JSON Schema, description, and parameters get injected into the system prompt or context. With 50\+ tools, this can consume 10K\+ tokens before any user input. Models also degrade in tool selection accuracy beyond ~20 tools due to attention dilution across similar schemas. Progressive disclosure—loading tool definitions only when a subtask needs them—is the proven pattern, but requires the host to implement a two-phase approach: first a lightweight tool index, then full schema on demand.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:49:05.108317+00:00— report_created — created