Your agent is reading too much
Most of an AI agent's token bill is text the model never needed to read. Where the tokens go, the fixes that work, and what changes when email is indexed.
7 min read

Model price is the number every team compares. It rarely decides the bill.
What decides it is how much text the model has to read. Two agents on the same model, at the same price per token, can differ in cost by a multiple. One of them reads far more than it needs to answer the question.
Agents are very good at reading more than they need. That matters more as the work gets longer. A chat answer is one model call. An agent task is many, and each call carries everything that came before it.
One question, one mailbox
Say an agent answers questions from users’ email. A user asks:
When did the client agree to the revised delivery date?
It’s a simple question with one right answer, buried somewhere in a few hundred messages. The obvious build works. Here’s what it looks like with the read tools on the Gmail connector:
gmail_searchfor “delivery date”. It returns a page of matches, most of them not the thread that matters.gmail_get_threadon the likeliest few. Each thread comes back whole: every reply, every quoted copy of the reply before it, every signature and legal footer.gmail_get_messageon the one with the revised schedule attached, to see what changed.- A second search, because the client agreed in another thread with another subject line.
- The answer: one date, one sentence.
This is the build every tutorial shows. For one user on one afternoon, it’s fine. Nobody notices the cost of a single question.
Then it ships. Every user asks a few questions a day, every question runs the same loop, and the loop never gets cheaper with practice. It works in the demo. The token count tells a different story.
Where the tokens go
Four things inflate the bill. Only one of them is the answer.
| Where the tokens go | What happens | Why it costs |
|---|---|---|
| Tool definitions | Every tool’s name, description and schema loads before the agent reads the request | Paid on every model call, used or not |
| Raw payloads | Full threads, quoted replies, signatures, HTML, attachments | Most of it has nothing to do with the question |
| Re-reading | Each tool call is another model call, and the conversation so far goes with it | Every email fetched early is paid for again on every later turn |
| Wrong turns | A search that misses, a thread that isn’t the one, a retry | Each miss adds its results to the pile |
Tool definitions are bigger than most teams expect. Anthropic’s engineering team describes a five-server MCP setup where GitHub’s 35 tools take about 26,000 tokens and Slack’s 11 tools about 21,000. Jira alone uses about 17,000. Anthropic has seen tool definitions consume 134,000 tokens before any optimization.
That overhead is paid before the agent has read a single email.
Raw payloads are the obvious one. Email threads are built for people, not models. A reply usually carries a quoted copy of the message before it, which carried the one before that. We worked through the arithmetic in why RAG fails on email threads: a 20-message thread produces roughly 210 message-equivalents of text. The model reads every copy, along with the signatures, disclaimers and HTML around them.
Wrong turns follow from the same problem. The agent can’t know which thread holds the answer until it has read it, so it reads the candidates. Each one it rules out still lands in the context, and stays there.
Re-reading is the quiet one. Here’s the naive loop:
# Conceptual example
messages = [{"role": "user", "content": question}]
while True:
response = model.call(messages=messages, tools=email_tools)
if response.is_final:
break
result = run_tool(response.tool_call) # a search, a thread, an attachment
messages.append(response)
messages.append(tool_result(result)) # every result goes back in
Every pass sends the whole messages list again. A thread fetched on turn two is input on turns three, four and five.
Anthropic describes the same pattern. With ordinary tool calling, each call needs a full inference pass, and intermediate results pile up in context whether they’re useful or not. The Claude Code docs say it from the other side: without caching, the API would reprocess the full history on every turn.
The agent doesn’t read that thread once. It pays for it on every turn that follows.
Notice that three of the four rows in the table have nothing to do with which model was chosen. They come from how the agent gets its information.
The general fixes work
Use them. None of them needs a new vendor.
- Load tools on demand. Anthropic’s tool search lets the model find the few tools a task needs, instead of loading every definition up front.
- Keep intermediate results out of context. With programmatic tool calling, the model writes code that calls the tools, and the intermediate results stay out of its context window.
- Cache what repeats. Prompt caching bills a cached prefix at a fraction of the normal input price. A cache read costs 0.1 times the base input price on most models, and Anthropic’s pricing page lists lower multipliers for some newer ones.
- Trim what each tool returns. Field selection, filters and limits cut a payload at the source, before the model ever sees it.
Do all four. They help with every connector an agent uses, and context engineering covers what else belongs in the window.
For email, though, they treat the symptom.
Caching makes re-reading cheaper. It doesn’t make an irrelevant thread relevant, and it still fills the context window. Programmatic calling keeps raw threads out of the model’s context, but the agent still has to search, open and sort them while the user waits.
Read once, not every time
Email is a bad fit for retrieval at question time. Threads branch. Replies quote each other. The answer hides in an attachment, or in a thread with the wrong subject line.
That leaves two options. Either the agent reads at question time and pays on every question. Or something reads ahead of time, once, and the agent asks.
The second is what Agent200’s iGPT connector is for. The iGPT page describes “Emails and attachments, indexed automatically,” and says it “Indexes new messages and attachments instantly.” The agent asks its question once and gets a cited answer in one request. The search, open and read loop disappears.
The reading still happens. It happens once, when the mail arrives, instead of every time someone asks about it. The citations matter too. The agent gets context it can trace back to its source, so it can show where an answer came from instead of asking the user to trust it.
Teams that would rather build that layer themselves can start with build vs. buy for email context, which covers the scope. The short version of the product is in iGPT: your agent’s email context in one request.
What the benchmark shows
Agent200 ran the comparison, and the iGPT page publishes it. Eight real-inbox questions, run head to head against a Gmail agent on the same underlying model, in August 2026.
| Average per question | Gmail agent | iGPT | Difference |
|---|---|---|---|
| Tokens | 502K | 218K | 57% fewer |
| Cost | $0.56 | $0.24 | 57% lower |
| Time to an answer | 128.0s | 105.2s | 18% faster |
The questions covered billing audits, vendor rankings, compliance status and board reporting. These are the questions whose answers are spread across many threads and attachments, which is exactly where the naive loop burns tokens. They’re also why the answer times look long. Nobody was asking for one date.
Eight questions is a small sample. Treat it as a test result, not a guarantee, and run your own questions before trusting anyone’s numbers, ours included.
In those tests, count three things per question: input tokens, tool calls and time to an answer. Those are the numbers that move the bill.
What that looks like at volume
Take the benchmark’s averages and run 1,000 questions through each setup.
| 1,000 questions | Gmail agent | iGPT |
|---|---|---|
| Tokens | 502 million | 218 million |
| Cost | $560 | $240 |
That’s arithmetic on eight averages, not a forecast. The questions, the mailboxes and the model will all move the numbers.
A thousand questions isn’t a big number either. It’s 200 users asking five questions each in a day.
The direction is the point. Both agents ran on the same model. The difference came from how much the model had to read, not from a cheaper price per token.
When the naive loop is fine
It isn’t always wrong. If an agent looks up one message by ID, or works on a small mailbox at low volume, a few tool calls cost little and an index is more than the job needs. Measure first. The case for indexing grows with the number of users, the size of their mailboxes and how often the answer is spread across threads.
There’s a limit worth stating, too. iGPT covers email and attachments. The agent’s other connectors, such as Slack, a CRM and shared files, still run through ordinary tool calls, and the general fixes above are how to keep those lean. The email and calendar connectors show what else an agent can reach, and inside the tool-calling loop shows what each call does to the window.
Most teams try to cut an agent’s bill by switching models. Often the bigger lever is what the model has to read.
The cheapest token is the one an agent never has to read.


