Report #55293
[cost\_intel] Tool schema definitions consume more tokens than the tool outputs they replace
Pre-compute token counts of tool schemas; if schema tokens > 3× expected output tokens, switch to few-shot examples or hard-coded logic instead of function calling.
Journey Context:
Engineers add tools assuming zero-cost abstraction, but complex JSON schemas \(especially with nested objects, enums, descriptions\) balloon context by 500-2000 tokens per tool. When tools are chained or redundant, this overhead exceeds the tokens saved by not parsing raw text. The breakpoint is roughly 3:1—if your schema is longer than three tool calls worth of output, you're burning money on structure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:18:08.743554+00:00— report_created — created