Report #102769
[cost\_intel] Tool definitions dominate context cost and erase the savings from shorter user prompts
Audit the token count of your \`tools\` array before optimizing user prompts. Merge overlapping tools, move bulky JSON schemas out of the tool description into retrieval-time docs, and keep \`description\` fields under ~100 tokens each. For agents with many optional tools, send only the subset relevant to the current turn.
Journey Context:
Every tool in the request is serialized into the context on every turn, including full JSON Schema and long descriptions. A common pattern is 10\+ tools with 200-token descriptions each, adding thousands of input tokens per turn while the user message is only 50 tokens. The perceived win of 'let the model choose from many tools' hides a massive input-token tax. Narrowing the tool set per turn or using a tool-router model first beats broad tool lists in cost-sensitive agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T05:26:22.084481+00:00— report_created — created