September 1, 2026
Agent Tool Call Token Costs: 7 Ways to Cut Them (2026)
Understand Agent Tool Call Token Costs—schema tax, result bloat, history re-sends—and 7 fixes to cut spend by 50–90%. Get practical steps.

TL;DR
Agent tool call token costs are the tokens consumed every time an AI agent interacts with external tools, covering tool schema definitions, call arguments, returned results, and the repeated re-sending of all this data as conversation history grows. These costs come from three sources: schema overhead (a “tax” on every request even for unused tools), tool result bloat (large API responses entering the context window), and quadratic cost compounding (stateless APIs re-billing the full conversation each step). A single tool call can nearly double token usage compared to a plain LLM call, and a 20-step agent loop can consume over 10x the tokens a naive estimate would suggest.
Quick Summary: What Are Agent Tool Call Token Costs?
Agent tool call token costs are the total input and output tokens consumed when an AI agent executes external functions. Unlike standard single-turn LLM requests, tool call costs include:
-
Tool Schema Definitions: System instructions required to register tools (adds 50 to 700+ tokens per tool).
-
Returned Execution Results: Data payloads returned from APIs, databases, or terminal commands.
-
Cumulative History Re-sends: Uncached past turns resent on every step due to the stateless nature of LLM APIs.
On average, introducing a single tool increases request token usage by 1.8x, while multi-step agent loops can suffer a 10x+ cost multiplier.
What Are Agent Tool Call Token Costs?
When an AI agent calls a tool, the cost goes far beyond the tool execution itself. Agent tool call token costs encompass every token the LLM processes during tool interactions: the tool definitions injected into the system prompt, the arguments the model generates for each call, the data returned by the tool, and the cumulative re-sending of all this content as the conversation grows.
This differs fundamentally from a simple LLM call. A plain completion request might use around 850 tokens. Add one tool, and that jumps to roughly 1,530 tokens for the same question, according to developer benchmarks on DEV Community. That’s 1.8x the cost before the agent even does anything complex.
The formal cost equation, drawn from academic surveys on agentic AI, captures the full picture:
Total Cost = Σ(price_in × tokens_in + price_out × tokens_out) + Σ(external_cost_j)
Each LLM step has its own input and output token counts, and each tool call may carry an external API cost on top. The key insight is that token counts per step aren’t static. They grow with every turn as history accumulates.
Explore how semantic context compression reduces LLM input costs on custom agent workflows.
Where the Tokens Come From
Agent tool call token costs have three distinct sources. Understanding each one is a prerequisite to controlling spend.
1. Tool Definition Overhead (The Schema Tax)
Every tool an agent has access to adds tokens to every single API call, even if that tool is never invoked. OpenAI’s documentation confirms that function definitions are injected into the system message and billed as input tokens. This is the “schema tax.”
The per-tool overhead varies by provider:
Provider / Framework | Overhead per Tool | Base System Overhead | Context Impact (20 Tools) |
OpenAI Function Calling | 50 – 100 tokens | ~346 tokens | ~1,350 – 2,350 tokens |
Anthropic Claude Tools | 100 – 160 tokens | ~300 – 500 tokens | ~2,300 – 3,700 tokens |
Model Context Protocol (MCP) | ~710 tokens | Varies by server | 15,000+ tokens (~15–30 KB) |
These numbers add up fast. In a typical Claude Code session with 20 to 30 registered MCP tools, the tool schema alone can occupy 15 to 30 KB of the context window before a single user message is sent. Anthropic estimates that in some environments, roughly 40% of overall token usage is consumed by MCP metadata alone.
One particularly striking benchmark found that MCP cost 4x to 32x more tokens than CLI for identical operations. The simplest test, checking a repository’s programming language, consumed 1,365 tokens via CLI and 44,026 via MCP. The overhead came almost entirely from 43 tool definitions injected into every conversation turn.
Practitioners on the OpenAI Community Forum report the same frustration. One developer noted their tool list kept growing, leading to “repeated huge token usage per API invoke.” They asked if fine-tuning could eliminate the schema re-send. OpenAI’s answer: no, you still need to send the tools array in each API call, even if the fine-tuning data contains that same array.
2. Tool Result Bloat
When a tool returns data (API responses, database rows, search results, file contents), that data enters the context window. It then rides along on every subsequent call for the rest of the session.
Research from the AgentDiet paper quantified this precisely. In their analysis, tool messages containing returned results used 30,400 tokens, while assistant messages used 13,700 tokens and system/user messages used just 4,400 tokens. Tool results accounted for roughly 63% of total trajectory tokens.
This is the pain point that drove the top-ranking Reddit thread for this query. A developer on r/LangChain described the “token limit challenge with large tool/function calling responses,” where tool results were so large they blew both budgets and context limits simultaneously.
The problem is that most tool outputs are far larger than what the model actually needs. A database query might return 50 rows when only 3 are relevant. An API response includes headers, metadata, and nested objects when only one field matters. Without compression, all of it enters the context and stays there. This is a textbook case of wasted LLM context, where the majority of input tokens carry no useful signal for the task at hand.
3. Quadratic Cost Compounding (History Re-send)
LLM APIs are stateless. Every call requires re-sending the full conversation history. This means agent tool call token costs don’t grow linearly with the number of steps. They grow quadratically.
Augment Code’s analysis explains the math clearly. The cumulative input token count follows the triangular number formula: N(N+1)/2. A 20-step loop where each step generates 1,000 tokens produces 210,000 cumulative input tokens, not the 20,000 a per-step estimate would suggest. That’s a 10.5x multiplier.
Visualizing Quadratic Growth:
-
Linear Expectation: 20 steps × 1,000 tokens/step = 20,000 tokens billed
-
Quadratic Reality: Step 1 + Step 2 + ... + Step 20 = 210,000 tokens billed
-
The Result: 90.4% of total billing comes from re-sending historical turns.
Prompt caching helps with the static prefix (system prompt, tool definitions), but it doesn’t address the content that actually grows. Conversation history, tool outputs, and reasoning traces change on every call and cannot be cached effectively. The quadratic cost growth comes from the dynamic portion of the context, and no caching policy fully addresses it. Read our complete comparison guide on prompt caching vs. context compression.
This compounding effect is also a driver of context rot, where accumulated context not only inflates cost but degrades answer quality as irrelevant earlier turns dilute the signal the model needs.
How Much Do Agent Tool Calls Actually Cost?
The numbers from production environments are striking.
A Splunk analysis found that a five-step task consuming less than 10,000 tokens of useful work often burns over 40,000 tokens in practice. When LeanOps audited 30 engineering teams running agents in production, they discovered a 20x spread between the cheapest and most expensive developers on the same team doing similar work. The difference was entirely architectural: how tools were registered, whether outputs were compressed, and how history was managed.
At GPT-4o pricing (roughly $2.50 per million input tokens), a single agent run with 30,000 input tokens costs $0.075. At 10,000 runs per day, that’s $750 daily, or $22,500 per month, for input tokens alone.
Bill shock stories from practitioners are common. One developer on DEV Community described starting agents to test something, stepping out for coffee, and returning two hours later to find the bill had jumped $100. Total damage: $200 from a single runaway session. Another developer reported hitting $1,600 in a single month from Claude Code usage. Developers on Reddit and X shared bills jumping from $29 to nearly $750, and from $50 to $3,000.
The most dramatic case: one company went from $87,000 per month to $24,000 after classifying its token spend and changing the architecture.
It’s also worth noting that tool call costs extend beyond LLM tokens. In a loan origination workflow, token usage might cost $0.30 while the same workflow triggers a credit report costing $35 to $75, identity verification at $2 to $5, and fraud checks at $1 to $3. The total workflow cost of $50 to $85 makes token usage less than 1% of the bill. Controlling agent tool call token costs is necessary, but teams should track external API costs too.
Strategies to Cut Tool Call Token Costs
Each cost source has a matching mitigation. Here is how cost drivers map directly to strategies:
Primary Cost Driver | Root Cause | Top Mitigation Strategy | Expected Token Savings |
Result Bloat | Unfiltered API/DB outputs | Pre-context semantic compression | 70% – 90% |
Schema Tax | Universal tool registration | Tool search & lazy loading | 30% – 60% |
Quadratic History | Stateless API turn re-sends | Parallel execution & history trimming | 40% – 60% |
Model Overhead | Using frontier models for simple tasks | Task-based model routing | 40% – 70% |
1. Compress Tool Outputs Before They Enter Context
Since tool results account for 60%+ of agent trajectory tokens, compressing them before they enter the context window is the highest-impact lever. Semantic compression typically achieves 70 to 90% token reduction on tool outputs while preserving the information the model needs to reason.
Query-specific compression is particularly effective here because it keeps only the spans relevant to the agent’s current objective, discarding the noise that tool APIs inevitably return. Compresr’s API handles this at $0.10 per 1M tokens compressed, often paying for itself many times over against the LLM token savings.
2. Use Tool Search and Lazy Loading
Instead of registering every tool upfront and paying the schema tax on every request, load tool definitions on demand. Tool search lets the model discover relevant tools dynamically, cutting token overhead by up to 47% according to MindStudio benchmarks. This is especially valuable in Model Context Protocol (MCP) environments where dozens of tools inflate every turn.
3. Trim Tool Schemas
Shorter descriptions, fewer optional parameters, and compressed schema formatting can reduce per-request overhead by 30 to 60% in agents with large tool catalogs. Every word in a tool description is a token you pay for on every call.
4. Parallelize Tool Calls
When an agent needs multiple pieces of data, calling tools in parallel instead of sequentially reduces the number of reasoning steps and, therefore, the number of history re-sends. One DEV Community developer measured this directly: a sequential agent used 1,400 LLM tokens plus 2 tool calls, while a parallel agent used 550 LLM tokens plus 2 tool calls. The parallel approach was 60% cheaper in LLM token consumption.
5. Compact Conversation History
For long-running agent sessions, compressing or summarizing older turns can reduce costs by 30 to 50%. The key is preserving recent context and critical earlier findings while aggressively compressing routine intermediate steps.
Teams using LangChain or LangGraph can integrate compression middleware that automatically compresses tool outputs and history at the framework level.
6. Route to Cheaper Models for Simple Steps
Not every agent step requires your most capable (and expensive) model. A LinkedIn post by practitioner Sascha Buehrle noted that 40 to 70% of agent tool calls don’t need expensive models. Simple tool-selection steps, parameter extraction, and format validation can run on smaller, cheaper models while reserving the frontier model for complex reasoning.
7. Set Token Budgets and Circuit Breakers
Cap per-task token spend with hard limits. This prevents runaway loops (the $200 coffee-break incident) and forces architectural discipline. Track and attribute costs per agent, per tool, and per task so you can identify which tools waste the most tokens and optimize surgically.
Why This Matters for Production Agents
Agent tool call token costs are the new infrastructure line item that scales with autonomy. The more tools you give an agent and the more steps it takes, the faster costs compound. At production volumes, the difference between a well-architected agent and a naive one is the difference between $24,000 and $87,000 per month for the same work.
Understanding where tokens come from (schema overhead, result bloat, quadratic re-send) is the first step toward controlling them. The good news is that each source has proven mitigations, and combining several strategies can cut agent token costs by 50 to 90%.
Try Compresr free to see how much context compression saves on your agent workflows.
Frequently Asked Questions
Why are my agent tool call costs so much higher than regular LLM calls?
Three factors multiply your costs: tool definitions are injected into every request (even for unused tools), tool results enter the context window and persist, and the full conversation history is re-sent on every API call. A single tool call can nearly double token usage (1.8x), and a multi-step loop compounds this quadratically.
How many tokens does each tool definition add?
It depends on the provider and the tool’s complexity. On OpenAI, expect roughly 50 to 100 tokens per tool definition with about 346 tokens of base overhead. Claude tools run about 30% higher. MCP tool definitions average around 710 tokens each. With 20 to 30 tools registered, the schema alone can consume 15,000+ tokens per request.
Does prompt caching solve the quadratic cost problem?
Only partially. Prompt caching reduces costs for the static prefix (system prompt, tool definitions), but the growing dynamic portion (conversation history, tool results, reasoning traces) changes every call and cannot be cached. The quadratic growth comes from this dynamic portion, so caching alone leaves the core problem intact.
What is the single most effective way to reduce agent tool call token costs?
Compressing tool outputs before they enter the context window. Research shows tool results account for over 60% of total trajectory tokens, and context compression achieves 70 to 90% reduction on those outputs. This addresses both the immediate token cost and the compounding effect, since smaller results mean less data re-sent on every subsequent call.
How much does MCP add to token costs compared to direct API calls?
Benchmarks show MCP can cost 4x to 32x more tokens than CLI for identical operations, primarily because all tool definitions are injected into every conversation. Anthropic estimates that MCP metadata alone accounts for roughly 40% of token usage in some environments.
Can I reduce costs by removing unused tools from my agent?
Yes, and this is one of the simplest wins. Every registered tool adds tokens to every request whether it’s called or not. Auditing your tool list and removing unused definitions, or implementing lazy loading so tools are only registered when needed, can cut schema overhead significantly.
What’s a realistic monthly cost for production agents using tool calls?
It varies enormously based on architecture. At GPT-4o pricing with 10,000 runs per day and 30,000 input tokens per run, expect around $22,500 per month in input tokens alone. However, one company reported spending $87,000 per month before architectural optimization brought it down to $24,000 for the same workload. The spread between optimized and unoptimized agents is typically 5x to 20x.
Are there tool call costs beyond LLM tokens I should track?
Yes. External APIs called by tools often carry their own fees. A credit check might cost $35 to $75, identity verification $2 to $5. In some workflows, these external costs dwarf the token costs. Track both token costs and external API costs per tool to get a complete picture of agent economics.