# Evaluating how AI agents use tools

> We gave AI agents everyday jobs on AgentMail and graded what they actually got done. They rarely failed at the work itself. They failed where the tool left them guessing.

By Krishav Gulati, Sanjith Sambath and Adi Singh, in partnership with Scope (https://tryscope.com), who executed every agent run. Snapshot October 3, 2026. Results: https://www.agentmail.to/evals

## The question

AI agents increasingly do their work through tools, and whether an agent gets the job done depends as much on the tool as on the model. What makes a tool hard for an agent to use, and what separates the agents that cope from the ones that don’t?

We build AgentMail, an email API for AI agents, and used it as the test bed. Most email code only sends mail: a reply is a new message with “Re:” in the subject, and keeping customers apart is the application’s problem. AgentMail has server-side threads, replies on a specific message_id, drafts that point to the message they answer, spam and unauthenticated mail left out of list results unless asked for, and customers isolated in pods. Each of these is documented, and each has a familiar alternative that looks like it should work. So every task asks one question: given a goal and the docs, does an agent get the job done on a tool it hasn’t memorized?

AgentMail stands in for agentic tools in general. Any API handed to an agent sets the same kinds of traps, and each one these tasks test has a counterpart elsewhere. We ran 25 agents, each a model inside a harness such as Claude Code or Codex, through seven tasks, with and without links to the docs. Each run gets its own inbox, seeded through AgentMail’s real inbound pipeline; the agent works until it decides the job is done, and we grade what it did. Scope executed every run.

| Property | In AgentMail | The same thing elsewhere |
|---|---|---|
| Something hidden by default | Spam and unauthenticated mail are left out of the inbox list | Pagination, default filters, archived or soft-deleted records |
| An operation that only looks right | A reply-all endpoint that can't add a BCC | Any endpoint whose name promises more than it does |
| Signals that point both ways | A spam label on a message the user asked the agent to answer | Warnings, flags and risk scores that contradict an instruction |
| Actions that can't be undone | Sending, as opposed to saving a draft | Payments, deploys, deletes |
| Data scoped to one customer | Pods, each with its own reads | Tenants, workspaces and projects in any SaaS API |

## Where agents fail

Agents rarely fail for lack of skill with a tool. They fail where the tool leaves something unsaid and they have to judge it on their own. 80% of runs finished, and outside one model family, 90% did. Most runs that didn't finish stopped at a few kinds of moment (a run can match more than one):

| How the run stopped | Share of failed runs |
|---|---:|
| Gave up at an empty inbox | 35% |
| Sent the wrong thing | 22% |
| Decided it had no access | 18% |
| Found it, refused to act | 17% |
| Left it half done | 8% |
| Our setup, not the agent | 3% |
| Not yet categorized | 6% |

- **Something hidden by default.** AgentMail's default inbox list leaves out spam and mail from senders that couldn't be authenticated, the way a search API returns only the first page or a query skips soft-deleted rows. About a third of unfinished runs listed the inbox, saw nothing, and concluded the email had never arrived. An empty list wasn't fatal in itself: 76% of runs that hit one went on to finish. The runs that failed are the ones that stopped.
- **An operation that only looks right.** The right call for reply-all with a BCC is the ordinary reply endpoint with reply_all set and the manager in bcc. AgentMail also has a reply-all endpoint whose name matches the job, but it only answers the people already on the thread. Agents given the docs reached for it, and success on this job fell from 81% without docs to 62% with them; Claude Opus 4.8 went from 100% to 48%. The fix belongs to the tool: name operations for what they do.
- **Signals that point both ways.** Some runs found the right email and declined to act because it was flagged as spam or looked suspicious. Nearly all of these refusals came on two jobs, roughly half on each. On the password reset, whose email carries a spam label and a redirected reply address, pausing is defensible. On the signup confirmations, the prompt explicitly authorizes processing spam, so declining is a failure. A tool can help by saying what its labels mean.

## Where agents differ

Outside the Claude family, agents finished 90% of runs; Claude models finished 63%. Most of the gap sits in the two jobs that reply to mail flagged as spam: 23% against 88%. On the other five jobs, 78% against 91%. After an empty inbox, Claude agents finished 86% of the time when the job only read hidden mail and 24% when it meant replying; the likeliest reading is caution applied too broadly.

| Family | Models | Finished after an empty inbox | Jobs that read hidden mail | Jobs that reply to it |
|---|---|---:|---:|---:|
| Grok | Grok 4.5 | 98% | 100% | 96% |
| GLM | GLM 5.2 | 97% | 100% | 95% |
| GPT | GPT-5.5, GPT-5.6 Sol, GPT-6 Astra | 95% | 98% | 90% |
| DeepSeek | DeepSeek V4 Pro | 83% | 88% | 81% |
| Claude | Opus 4.8, Sonnet 5, Fable 5.1, Opus 5.5 | 58% | 86% | 24% |

For most models, the harness moved the score by about ten points or less. For some, it mattered as much as the model: Claude Sonnet 5 moved 31 points between harnesses, mostly because in one it kept deciding it had no way to reach AgentMail. A gap that holds in every harness belongs to the model; a gap that changes with the harness belongs to the harness.

## What the docs do

Every task runs with links to the docs and without them, and nothing else changes. Linking the docs lifted success from 76% to 84%, and on 6 of the seven jobs, mostly by telling agents the tool was there: without links, 6% of runs concluded they had no way to reach AgentMail; with links, 1% did. Once an agent knew where the tool was, the docs mattered much less, and 24% of the agents scored higher without them. The one job the docs hurt is reply-all, where they led agents to the look-alike endpoint.

| Job | Without docs | With docs | Change (points) |
|---|---:|---:|---:|
| Summarize one customer’s week | 68% | 98% | +30 |
| Process signup confirmations | 51% | 64% | +13 |
| Extract confirmation code | 89% | 99% | +10 |
| Reply to password reset | 65% | 73% | +9 |
| Prepare three replies | 88% | 96% | +8 |
| Save CSV attachment | 89% | 93% | +4 |
| Reply-all + BCC | 81% | 62% | -20 |

## What it means

- **For tool builders.** Say when a result has been filtered, so an empty list isn't mistaken for an empty inbox. Name operations for what they do, and document what they don't. Make it obvious where the tool is and how to reach it. And when a label like spam matters, say how it should weigh against what the user asked for.
- **For harness builders.** Make sure the model can find the tool, and make checking the default: read back every write, and treat an empty result as a question.
- **For model builders.** Caution with suspicious content is right, but it shouldn't override an explicit instruction, or stop a search before it starts.

### What we’re changing in AgentMail

Every failure here is also a lesson for us, roughly in order of how many failed runs each would have saved:

1. **Say what a list leaves out.** About a third of failed runs stopped at an inbox that only looked empty; list responses should probably say how many messages were held back as spam or unauthenticated.
2. **Say what each endpoint can’t do.** The reply-all docs should say plainly that it can’t add recipients and point to the reply endpoint for a BCC.
3. **Make the API hard to miss.** Without doc links, some runs decided they couldn’t reach AgentMail at all; our docs, llms.txt and setup instructions should be easier to find.
4. **Give labels a meaning.** “Spam” and “unauthenticated” are a classifier’s judgement; we should document how to weigh them when a user has asked for the message.
5. **Keep testing the way agents work.** Run these seven tasks against changes to our API and docs, and rerun this eval once the fixes land.

## How we tested

Each task can be done the documented way, which works, or the familiar way most public email code uses, which looks right but fails here. Prompts state the goal and nothing else. They never name a feature or parameter, because a prompt that said “use include_spam” would only test whether the agent follows instructions.

| Task | Job | Runs succeeded |
|---|---|---:|
| 1.5 | Reply-all + BCC | 72% |
| 2.3 | Extract confirmation code | 94% |
| 2.4 | Reply to password reset | 69% |
| 4.2 | Save CSV attachment | 91% |
| 5.2 | Summarize one customer’s week | 83% |
| 6.3 | Prepare three replies | 92% |
| 8.3 | Process signup confirmations | 57% |

We grade each run on what it actually did: the requests it made, and the replies, files and answers it produced. We grade the result, not the route. Every run ends in one of three outcomes:

| Outcome | Meaning |
|---|---|
| Success | The requested outcome is established by what the run did. |
| Not completed | The outcome wasn’t reached, or the run contradicted it (for example, replying to a decoy). |
| Partial | Real progress, but not the whole job. Recorded, never credited. |

Three rules settle the edge cases:

- **Claims need proof.** An agent’s account of its work counts only where its recorded requests back it up.
- **Any working route counts.** A different API path to the same outcome is a success, and so is a run that hit an error and recovered.
- **Contradictions fail the run.** A reply to a decoy, another customer’s data in a summary, or a forward in place of a BCC.

A pair’s score weighs the seven tasks equally, and runs with and without docs equally. Every score has a 95% confidence interval from a stratified bootstrap (4,000 resamples).

## Full results

| # | Model | Harness | Overall | 95% interval | With docs | Without docs | Runs succeeded |
|---:|---|---|---:|---|---:|---:|---:|
| 1 | GPT-5.5 | Codex | 96.8 | 94.4–98.9 | 99.5 | 94.1 | 98% |
| 2 | GPT-5.5 | Hermes | 94.6 | 91.5–97.1 | 96.7 | 92.6 | 97% |
| 3 | Grok 4.5 | Hermes | 93.0 | 90.3–95.4 | 92.0 | 94.0 | 96% |
| 4 | Grok 4.5 | OpenCode | 92.3 | 90.3–94.3 | 100.0 | 84.5 | 93% |
| 5 | Grok 4.5 | OpenClaw | 90.2 | 86.6–93.6 | 88.3 | 92.1 | 93% |
| 6 | GPT-5.6 Sol | Cursor Agent | 89.6 | 86.0–93.2 | 98.1 | 81.2 | 91% |
| 7 | GLM 5.2 | OpenClaw | 89.3 | 84.5–93.6 | 90.7 | 87.8 | 92% |
| 8 | GPT-5.5 | OpenCode | 88.7 | 85.1–91.7 | 96.9 | 80.5 | 90% |
| 9 | GPT-6 Astra | Codex | 87.9 | 80.7–95.0 | 85.4 | 90.3 | 88% |
| 10 | GPT-5.5 | OpenClaw | 86.4 | 82.4–90.1 | 83.4 | 89.4 | 94% |
| 11 | GLM 5.2 | Hermes | 83.7 | 80.4–86.8 | 81.2 | 86.2 | 92% |
| 12 | DeepSeek V4 Pro | OpenClaw | 80.9 | 76.7–84.8 | 82.6 | 79.3 | 88% |
| 13 | GLM 5.2 | OpenCode | 79.2 | 75.1–83.1 | 88.2 | 70.1 | 84% |
| 14 | DeepSeek V4 Pro | OpenCode | 79.0 | 75.0–82.8 | 87.5 | 70.6 | 86% |
| 15 | Claude Sonnet 5 | Hermes | 68.9 | 63.0–74.5 | 71.8 | 65.9 | 74% |
| 16 | Claude Fable 5.1 | Claude Code | 67.6 | 59.6–75.8 | 71.7 | 63.5 | 73% |
| 17 | Claude Opus 4.8 | Hermes | 67.2 | 61.6–72.7 | 78.6 | 55.8 | 70% |
| 18 | Claude Opus 4.8 | OpenCode | 66.4 | 62.6–70.5 | 72.5 | 60.3 | 67% |
| 19 | Claude Sonnet 5 | OpenCode | 65.4 | 61.2–69.5 | 77.6 | 53.1 | 67% |
| 20 | DeepSeek V4 Pro | Hermes | 63.5 | 57.3–69.6 | 63.9 | 63.2 | 72% |
| 21 | Claude Opus 4.8 | OpenClaw | 61.8 | 55.7–67.6 | 75.0 | 48.6 | 62% |
| 22 | Claude Opus 4.8 | Claude Code | 61.4 | 55.6–67.3 | 67.6 | 55.3 | 65% |
| 23 | Claude Opus 5.5 | Claude Code | 54.5 | 47.4–61.6 | 66.2 | 42.9 | 55% |
| 24 | Claude Sonnet 5 | Claude Code | 53.3 | 48.1–58.5 | 49.5 | 57.0 | 57% |
| 25 | Claude Sonnet 5 | OpenClaw | 38.1 | 33.7–42.8 | 45.5 | 30.8 | 39% |

Agents will meet far more tools than anyone can train them on, and they'll meet most of them the way these agents met AgentMail: with a goal, the docs, and no one to ask. Whether they finish will often come down to what the tool tells them about what it filtered out, what each operation can't do, and how much a warning should count. Every tool builder can say those things today, without waiting for a better model.

Results: https://www.agentmail.to/evals
