Topic 5 of 5 · 5 min read
Evaluating tool designs with agent transcripts
Goal: Compare two versions of a tool set from eval results and transcripts and decide which to ship and what to change next.
You cannot tell whether a tool set is good by reading it; run agents on realistic tasks, measure, and read the transcripts. The author knows what every tool means. The agent does not.
Check yourself · 1 of 3
Which eval task best exposes problems in a tool set?
Why it matters
Tool designs fail in ways their authors do not see: two tools look distinct to you and identical to the model, a parameter is filled with the wrong kind of value, or a tidy result hides the one id the next call needs. Anthropic's guide describes building a prototype, writing an evaluation from realistic tasks, running it, and iterating on what the transcripts show.
How to do it
- Write realistic tasks. Use work a user would give, which needs several calls: "Find the customer who reported the double charge on 2026-11-20 and summarise the thread." Avoid single-call toy tasks.
- Give each task a checkable answer. An expected final value, or a state check, so scoring needs no opinion.
- Record per task: success or failure, number of tool calls, tokens used, tool errors, and wall time.
- Read the transcripts, not only the totals. Look for repeated calls, wrong tool choices, malformed arguments, calls that were needed but skipped, and long results that were ignored.
- Change one thing at a time. Rename a tool, shorten a result, add an example, then rerun the same tasks.
- Hold out tasks. Keep some tasks unseen while tuning, so you can check you did not just fit the eval.
- Let an agent help. Paste the transcripts into an agent and ask for the confusions and a proposed edit to the definitions. Review its proposals; do not apply them blindly.
Before and after
| Version | Success | Avg calls | Avg tokens |
|---|---|---|---|
| v1: 12 thin tools | 14 of 20 | 9.1 | 41k |
| v2: 5 task tools | 18 of 20 | 4.3 | 17k |
v2 is better on all three. The two failures left in v2 are what to read next.
What goes wrong
- Only toy tasks. The tools pass easy checks and fail on real, multi-step work.
- Success rate alone. A version that succeeds by making 30 calls costs more and breaks more under load.
- Overfitting. Edits that fix the eval tasks but make descriptions narrow or odd for other uses.
Examples
Reading a transcript
In 6 of 20 runs the agent calls customers_search three times with slightly different spellings before succeeding. The transcript shows the description never says the search is exact-match. Adding "exact match on full name; use customers_find_by_email for partial matches" and rerunning cuts the repeats.
Same success, different cost
Two designs both solve 19 of 20 tasks. One averages 5 calls and 12k tokens, the other 14 calls and 55k tokens. Ship the first; the second will cost more and give more chances to fail on harder tasks.
Key points
- Evaluate with realistic multi-step tasks that have a checkable answer, not one-call toys.
- Track success rate, number of calls, tokens and tool errors per task, not just whether it finished.
- Read the transcripts to see why an agent got confused; the totals only show that it did.
- Change one thing at a time and rerun the same tasks, keeping some tasks held out.
- An agent can analyse transcripts and propose edits to tool definitions, but a person reviews them.
Common mistakes
- Declaring a design good because the author can use it.
- Comparing versions on success rate only and ignoring calls and tokens.
- Reading only the summary numbers and never opening a transcript.
- Changing several things between runs, so no one knows what helped.
Check yourself · 2 of 3
Two tool sets both solve 19 of 20 eval tasks. One needs 5 calls and 12k tokens per task on average, the other 14 calls and 55k. Which do you ship?
Check yourself · 3 of 3
An eval shows the agent fails 6 of 20 tasks. What is the most useful next step?
Practice items, not counted towards your mastery.
Start here
- Writing effective tools for AI agents (Anthropic) (opens in a new tab)ArticleFree
Anthropic's field guide: which tools to build, namespacing, token-efficient responses, prompt-engineered descriptions and eval-driven iteration.
- MCP specification: Tools (opens in a new tab)StandardFree
The protocol definition of tool listings, input and output schemas, structured content and the isError flag.
- Introducing advanced tool use (Anthropic) (opens in a new tab)ArticleFree
Techniques for large tool sets, such as loading tools on demand and calling them from code, and why they matter for context cost.