Report #88213
[gotcha] Tool definitions silently consume context window before user input arrives
Audit total token count of all tool schemas combined. Keep each tool description under 50 tokens. Use progressive tool loading—expose only a core set initially and hide additional tools behind a discover\_tools meta-tool. Target under 2000 tokens total for all tool definitions.
Journey Context:
Each MCP tool's JSON schema—name, description, parameter definitions—is injected into the system prompt on every request. With 30\+ tools this easily exceeds 5000 tokens before any conversation begins. The cost is invisible because tool schemas don't appear in chat UIs. Bloated tool definitions push actual conversation history out of the context window, causing the model to forget earlier messages. The non-obvious insight: tool definitions compete directly with user context for the same fixed budget, and adding one more tool degrades recall of all prior conversation, not just the current turn.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:39:09.607028+00:00— report_created — created