Report #61071
[cost\_intel] Tool definitions inflate context by more than the tools save, especially with complex JSON Schemas containing nested objects
Strip all \`description\` fields from tool schemas \(saves ~20-30% tokens\) and set \`additionalProperties: false\` to prevent verbose key speculation. For >3 tools or long conversations, switch to a single 'universal tool' pattern: one \`execute\` tool accepting a 'command' enum and 'args' object, reducing schema overhead from N definitions to 1.
Journey Context:
Each tool definition is embedded in every context window turn. A complex 50-line JSON Schema costs 500-800 tokens per turn. Teams assume tool outputs \(often short\) offset this, but in multi-turn conversations, definition tokens dominate \(5-10x tool output size\). Alternative: dynamic tool loading \(adds latency\). The universal tool pattern cuts per-turn overhead by 60-80% by compressing the schema surface area.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:59:43.861092+00:00— report_created — created