You pay for every tool you load, even the ones Claude never calls
Every tool name, description and schema is billed as input tokens on every request.
Published here · 3 sources · Resume reading
You pay for every tool you load up front, even the ones Claude never calls.
Example
20 small test tools, Haiku 5.5, count_tokens = 3,264 extra input tokens on every call (3,287 with tools vs 23 without, same message). count_tokens is an estimate; billed input can differ slightly.
Every tool name, description and schema you load up front is billed as input tokens on every request, even if Claude never calls it. The API also injects a special tool use system prompt. On Claude Haiku 5.5 that is 286 tokens when tool_choice is auto or none, and 406 when you force any or a specific tool (docs table row).
The expensive surprise
Edit the tools array mid conversation and you invalidate the entire prompt cache. Need many tools? Tool search with defer_loading loads them on demand without breaking the cache.
The checklist
- Run count_tokens with and without your tools array.
- Delete tools the app never calls. Shorten bloated descriptions. Do this once.
- Keep the tool list identical every request and cache it: cached reads bill at a fraction of normal input.
- Avoid forcing tool_choice unless you need it (406 vs 286 on Haiku 5.5).
- 10+ tools? Use tool search with defer_loading instead of loading them all.
Example math
Measured delta, assumed volume: 3,264 extra input tokens per call x 1,000 calls a day (assumption) = 3,264,000 input tokens a day from tools alone. Times your input price.
Send this to the friend who loaded fifty MCP tools and wonders why every Claude call costs more.
Keep this guide
Filed under AI agents, Cost and context
Questions about this guide
What happens if I edit the tools array mid conversation?
You invalidate the entire prompt cache. Use tool search with defer_loading if you need many tools.
How big is the tool use system prompt?
On Claude Haiku 5.5, 286 tokens when tool_choice is auto or none, and 406 when you force any or a specific tool.
Sources
- Claude docs: tool use overviewplatform.claude.com
- Claude docs: prompt cachingplatform.claude.com
- Claude docs: tool searchplatform.claude.com