Research diary / 29 November 2026

Count Trips, Not Tokens

When an agent's tools feel slow or expensive, the usual first move is to cut tokens. Trim the responses, drop fields, shorten the descriptions. It feels like progress, and the token bill agrees.

We made four changes to what our gateway hands back to an agent, and the token count didn't move. Success rose anyway, from 0.70 to 0.83, and the gain held up statistically: its 95% interval runs from +0.02 to +0.25. What changed was the number of trips. Agents made 0.63 fewer calls per task, and the share of runs that hit their call limit before finishing fell from 12% to zero.

A trip is one full turn of the loop: the model writes a call, waits, rereads everything, and decides again. Each one costs latency, a slice of the call budget, and one more chance to go wrong. Shorter responses rarely save one.

If you rank tool changes by the tokens they save, you'll rank the wrong ones first. Count trips.

Four coupons, five calls

An agent gets a plain question: "Are the coupons coupon_5, coupon_9, coupon_14 and coupon_16 currently valid?" The payments API reads one coupon per call. So the agent searches for the right tool, then reads the coupons one at a time. That's five calls for one question, and each call is a full stop: write, wait, reread, write again.

We ran this task, and 13 others, through Neurouter, an open-source MCP gateway. It sits between agents and the APIs they call, so we could change what tool results look like without touching the agent. The APIs were mocks of GitHub and Stripe. The agents were gpt-6-luna and the lighter gemini-3.5-flash-lite, each run three times per task in tool mode, giving 28 paired task-and-model cells. Every agent was told its call budget up front.

The bundle we tested had four changes:

  1. Batch calls. One call can carry several reads, and each read comes back with its own result or error.
  2. No silent cuts. A list returns what the agent asked for, up to a size budget, and says what it dropped.
  3. Server-side filters. List tools accept a where filter and report how many items matched out of how many were scanned.
  4. One forgiven mistake. If the tool name arrives nested inside the arguments, and that can only mean one call, the gateway runs that call.
BASELINEFOUR-CHANGE BUNDLEΔ [95% CI]Task success00.51Task success, baseline: 0.70Task success, bundle: 0.830.700.83+0.13[+0.02, +0.25]Calls per task024Calls per task, baseline: 2.99Calls per task, bundle: 2.362.992.36−0.63[−0.92, −0.38]Ended at the budget0%10%20%Ended at the budget, baseline: 12%Ended at the budget, bundle: 0%12%0%−0.12[−0.21, −0.05]Tokens per attempt08k16kTokens per attempt, baseline: 14.0kTokens per attempt, bundle: 14.3k14.0k14.3k+281[−1,079, +1,803] · no change
FigureBaseline vs the four-change bundle: 14 tasks, two models, three repeats, 84 attempts per arm. Each row has its own axis.

On the coupon task, Luna went from 5.0 calls on average to 2.0, and from 2 correct answers in 3 to 3 in 3. That's one task. The chart above is all of them.

Same tokens, fewer trips, more tasks finished.

Five things we learned

  1. The bundle saved trips, and tokens stayed flat.
  2. Agents batch on their own when the tool lets them.
  3. Forgiving one shape removed a whole class of failure.
  4. Counting belongs on the server.
  5. Two of our ideas did nothing.

1. The bundle saved trips, and tokens stayed flat

281 more tokens per attempt, and a confidence interval that straddles zero.

Calls here means every call the agent made to the gateway, tool search included. The intervals are 95% and paired by task and model.

BaselineBundleΔ (95% CI)
Success0.700.83+0.13 [+0.02, +0.25]
Calls per task2.992.36−0.63 [−0.92, −0.38]
Model turns with tool calls2.752.36−0.39 [−0.64, −0.17]
Attempts that ended at the budget12%0%−0.12 [−0.21, −0.05]
Tokens per attempt14.0k14.3k+281 [−1,079, +1,803]

Every call costs the agent a full turn. It stops, waits, rereads a context that keeps growing, and only then writes the next call. Our Field Guide calls that overhead the round-trip taxLexicon · 39Round-Trip TaxTurn latency and overhead from chaining overly atomic tool calls.. The bundle cut the tax and left the token bill where it was.

The lighter model gained more. Flash-lite rose by +0.17 [+0.02, +0.33]. Luna rose by +0.10 [−0.05, +0.26], an interval that crosses zero, so we can't say the two gains differ.

The direction isn't new to us. In an earlier entry, clearer inputs and packaged routines helped on HELIOS-9, our simulated space station, and the value turned out to be saved trips. This is a second system with a different harness, and this time the trip saving has a confidence interval.

Rank an interface change by the trips it saves first, and by the tokens it saves second.

2. Agents batch on their own when the tool lets them

Nobody told them to batch. Both models did.

The agent thinks in tasks: check these four coupons. The tool offered steps: read one coupon. That gap between the step an agent plans and the step a tool allows is semantic impedanceLexicon · 34Semantic ImpedanceMismatch between the granularity of agent reasoning and available actions., and the agent pays for it one call at a time.

A batch closes the gap. Here is a real batched result from the probe, abbreviated: two coupon reads in one call, one of which doesn't exist.

{
  "results": [
    { "name": "get_coupons_coupon", "ok": true, "data": { … } },
    { "name": "get_coupons_coupon", "ok": false, "error": { "code": "not_found", … } }
  ],
  "hint": "1 of 2 calls ok; 1 failed (see each result's error; not_found = no such item)."
}

Each read keeps its own ok and its own error, so one missing coupon doesn't sink the other. Both models used the batch without any prompting. On the two tasks built from independent reads (12 attempts per arm), the bundle took calls from 3.42 to 2.17, success from 0.92 to 1.00, and budget endings from 8% to 0%. Luna also batched a list together with a dependent read whose arguments it already knew.

These per-change numbers sit inside the bundle, so they have no interval of their own. They point the same way as the headline. Our Field Guide's law for this is H-08 Compositional Accelerators: give agents the composite moves they keep making by hand.

If an agent already knows its next four reads, let it send them in one trip.

3. Forgiving one shape removed a whole class of failure

The tool knew which call the agent meant, and refused to make it.

Flash-lite has a habit. Now and then it nests the tool name inside arguments instead of beside it. Here is one baseline attempt, abbreviated from the transcript.

Traceflash-lite on the baseline, one real attempt
  1. T1
    search_tools(query="top-up")→ get_topups, get_topups_topup, …The right tool, found in one search.
  2. T2
    call_tool(arguments={name: "get_topups"}, …)→ invalid_args: "call_tool needs { name: string, arguments?: object }; nothing was called." next: []The error says what's wrong, but offers no corrected call.
  3. T3
    call_tool(arguments={name: "get_topups", arguments: {status: "failed"}})→ the same invalid_args, next: []A second near-identical call. Nothing in the world has changed.
  4. T4
    call_tool(name="get_topups", arguments={status: "failed"})→ ok: failed top-upsThe right call, one call too late. The attempt ended at its budget.

Turns two and three are a small thrash trapLexicon · 49Thrash & Loop TrapsRepeated near-identical failing calls producing zero environment progress.: near-identical failing calls that change nothing. Flash-lite sent this nested shape in 4 of 41 attempts in our early runs, and every one ran out of budget. Failures where bad arguments ran into the budget fell from 9 in the baseline arms to 0 with the bundle.

The change follows H-10 Poka-Yoke Boundaries, which says to accept every form that is unambiguous. That sits in tension with H-09 Executable, Just-in-Time Micro-Docs, which says to reject legacy shapes. The two agree once you ask what the shape means. A legacy shape that still succeeds with different behavior is a trap. A misplaced name that can only mean one call is not. When a shape could mean two things, reject it and put the corrected call in the error.

It isn't free. On one ambiguous task, the forgiven call simply ran, and flash-lite listed top-ups when it should have asked which period the user meant. The failure moved, and it didn't go away.

If a mistake can mean only one call, make that call. If it could mean two, hand back the fix.

4. Counting belongs on the server

75 repositories in one response. 36 private, said the agent. The list held 33.

Without a server-side count, Luna fetched all 75 repositories in one call and still miscounted. That attempt was on gh_private_repos_many, a task we later found confounded by mock data. Its "owned by" wording didn't fit the mock's random owner fields, a story told in our entry on phantom failures. The private count itself was checkable, and it was wrong.

That's the same failure as in the first entry of this series: right data, wrong arithmetic. Filters with honest counts avoid it. When Luna used where, it was right every time. But uptake was low: 5 of 104 bundle attempts, all by Luna. Two flash-lite attempts produced 16k output tokens and no text right after seeing where in a tool signature, and we haven't found the cause.

No silent cuts did the quieter work. Our silent cap had been cutting lists short without a marker. On list-then-filter tasks, the bundle took success from 0.72 to 0.94 (18 attempts per arm). On the many-rows tasks it went from 0.33 to 0.67 (12 attempts per arm), and one of those two tasks is the confounded one.

An agent that counts rows in its context will sometimes count wrong. Give it the count.

5. Two of our ideas did nothing

A hint helps only if it arrives where the agent fails.

We tried echoing the defaults a list call had used, so the agent could state its assumptions. Success on the ambiguous tasks stayed at 0.67, with one run per cell. Most ambiguity failures happen before the first call, where nothing in a result can reach them.

We also tried pointing from each list item to its detail call, and inlining the first few details. The agents never asked for inlined details, and the pointer changed no outcome.

A change the agent never uses costs tokens and saves nothing.

A note on method: tell the agent its budget

The thinnest evidence here is also the most useful to anyone running evals. An agent has no sense of how much of its budget it has spent unless someone tells it. Our Field Guide calls that sense temporal proprioceptionLexicon · 48Temporal ProprioceptionInjected awareness of elapsed turns, budget consumed and retry counts..

In a first stage with one run per cell, telling Luna its budget took the baseline from 12 calls to 4, from 8 to 1, and from 7 to 3 on three tasks. A second-stage run without the budget was smaller and incomplete: one repeat, 17 of 28 cells. It showed a success change of −0.06 [−0.24, +0.12], which tells us nothing either way. The space-station runs in our earlier entry had a clock for the same reason.

Without a budget, a slow interface and a fast one can score the same.

What we can't claim yet

  • Which change did what. We tested one bundle, so the share of each change isn't separated.
  • How far it generalizes. 14 tasks, mock APIs, two models, tool mode only.
  • The exact budgets. We set them by hand per task. Different budgets would change the numbers.

What changes

  • Count trips first. Put calls per task beside success in every interface eval, and rank changes by trips saved before tokens saved.
  • Don't drop the tokens. H-03 Token Hygiene & High Observation Yield still holds. In tool mode, tokens grow with the data, and aggregation is where that bites hardest. These tasks were small.
  • Batch reads, think twice about writes. A batch of writes multiplies what one bad call can break. H-12 Cheap Speculation & Declared Blast Radius applies, and every result here comes from reads.
  • Announce the budget. Give the agent a clock, in evals and in production.
  • Check the task before you blame the agent. One of our 14 tasks was confounded, and its failures said nothing about the interface.

Where to go from here

  • Our Field Guide: Designing for Agents, our interface design principles for AI agents as users, with a lexicon for the problems they name.
  • Our MCP server: the Field Guide for your agent. It can search the Guide, read any entry at the depth it needs, and follow the links between them.
  • Our AX tool-design skill: an agent skill for designing and reviewing the tools agents use, against the Field Guide's heuristics.

Coming next: these findings go into our Field Guide, as updates to the laws they tested.