Report #99974
[cost\_intel] Tool definitions can cost more tokens than the tool calls save
Treat every tool schema field as a billed token; prefer small schemas, move documentation into external retrieval, and A/B total cost \(schema tokens \+ extra turns\) against the no-tool baseline before expanding the tool set.
Journey Context:
Function/tool definitions are serialized into the context window on every call. A single OpenAI function definition with nested objects, enums, and descriptions can run hundreds of tokens; ten tools can add thousands of input tokens per request. In narrow tasks the model may have solved the problem in zero or one cheap turn without tools, so adding a rich tool suite can raise the per-request cost even when the tool call count is low. The trap is optimizing for 'fewer tool calls' while ignoring the per-call schema tax. Measure total cost-to-answer, not call count.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T05:22:24.424925+00:00— report_created — created