Report #99880
[cost\_intel] Why did my function-calling API bill jump 2-5x?
Function/tool definitions are sent as tokens on every request, and providers bill for the full tool description even if only one tool is invoked. For high-frequency tool calls, keep tool schemas minimal, remove unused parameters, and prefer small, purpose-built tools over one giant universal schema.
Journey Context:
Teams build a single 'universal tool' with a large JSON schema and are surprised when every request pays for it. The cost is in the input tokens, not the output. The fix is schema diet: inline only the fields the model actually needs, use enums instead of open strings where possible, and split rarely-used tools into separate calls or routing layers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T05:13:11.253206+00:00— report_created — created