Ask for 100 top-ups. Get 5, and a note saying there are no more.
That's what our own gateway told an agent. The account held 20 top-ups, and the response even passed along the true total, right next to the has_more: false that said there was nothing left to fetch. An agent reading it has two choices. It can trust the 5 and answer from a quarter of the data, or distrust the response and page the same items again until it runs out of calls.
If anything sits between your agent and its data (a gateway, a proxy, an SDK helper, a response-size limit), this is your problem too. The agent sees only what reaches it. It can't know that a layer it has never heard of threw away three-quarters of the answer.
The embarrassing part: in an earlier entry we wrote that a silent limit is a lie the agent will act on. We had just redesigned this gateway's interface against our own Field Guide. When we audited it, 5 of its 12 limits cut results without saying so.
Your tools can be honest and your agent can still be lied to. Audit every layer in between.
The team that wrote "tools lie"
The call was get_topups(limit=100) on a mock Stripe account. The gateway is Neurouter, an open-source MCP gateway we build: it turns an existing API into a governed MCP server and sits between agents and the APIs they call. Because it sits in the middle, we can change what the agent sees without touching the agent or the API.
Shortly before, we had rewritten its agent-facing interface, which we call contract 2, from an AX review against our own Field Guide. Errors that name the next call. A uniform response envelope. Cursor paging. A truncated field for anything cut. We did the review, we shipped the changes, and we believed the interface was honest.
Then we audited it, layer by layer. The fix for what we found went into a bundle of changes that lifted list-filtering tasks from 0.72 to 0.94 success, and tasks that need many rows from 0.33 to 0.67.
Five things we learned
- A redesign done by the book can still make the interface heavier.
- Five of twelve caps said nothing.
- The worst cap contradicted itself.
- Our own guardrail broke the agent's scripts.
- Return what was asked, drop fields before items, and say so.
1. A redesign done by the book can still make the interface heavier
One label said "cut to 8,192 chars". The result was 33,554.
Contract 2 made the search for tools richer. Each hit carried a signature, an example and a docstring. Nobody capped the total. One search_tools call returned 45,271 characters, and the agent read every one of them. Agents do that: our Field Guide calls it literal exhaustive readingLexicon · 10Literal Exhaustive ReadingIngesting every returned token without human visual skimming., the habit of ingesting every returned token where a person would skim. Our entry on search is about how big a search response should be.
A second cap mislabelled itself. It worked when it cut a script's result by item, but not when it cut by field. The label still said "cut to 8,192 chars", over 33,554 characters. In code mode, where the agent writes a short script against the APIs, contract 2 cost more tokens than contract 1:
Those two bugs are the causes we found. By the time of the audit below, both caps marked their cuts. Code mode on contract 2 was still cheaper than tool mode on contract 2 in every cell but one (Stripe impossible). The regression was against ourselves.
Following the guide in the parts you redesign doesn't protect the parts you didn't look at.
2. Five of twelve caps said nothing
The caps weren't in the tools. They were in the layers we put around them.
So we listed every cap between the upstream API and the agent, and checked each one in code and live. There were 12. Seven either marked their cuts or did no real harm: search results, script output, logs, clipped objects and oversized responses all said what they cut. Five said nothing:
| Cap | What the agent saw |
|---|---|
Overlay byte budget (8 KB on get_topups) | Items dropped to fit, no truncated, no hint |
| Overlay item cap of 30 | limit: 100 overruled: 30 of 75 repositories |
| Field selection | fields: ["id","name"] returned [{}, …] |
Code mode .pages(max_items=500) | A plain list, stopped at 500, no marker |
| Code mode direct list call | Page 1 only, no marker |
The empty objects were partly a mock with thin data, a defect of the kind we covered in our entry on phantom agent errors. But the gateway never said that the fields matched nothing. An empty object that looks like an answer is a null observationLexicon · 27Null ObservationsEmpty results or silent successes requiring explicit scope confirmation.: an empty or quiet result that doesn't say what was checked.
One contrast matters here. Our Field Guide's silent corner-cuttingLexicon · 50Silent Corner-CuttingQuietly lowering standards or declaring premature success instead of failing. is something agents do: they quietly lower the bar and report success. These caps were the same move, made by the tool.
Audit every layer between the source and the agent, not just the tools.
3. The worst cap contradicted itself
The data said there was nothing more. Our page said there was.
A top-up with its nested source object is about 1.5 KB. The overlay budget was 8 KB, so 5 fit. The mock had returned all 20. Here is what the agent got, trimmed to the fields that matter:
{
"ok": true,
"data": {
"data": [ …5 top-ups… ],
"has_more": false,
"total_count": 20
},
"page": {
"count": 5, "total": 20, "has_more": true,
"scope": { "limit": 100 }
}
}
Three things in one response disagree. The agent asked for 100 and got 5. The upstream's own has_more: false and total_count: 20 passed through untouched. Our page said has_more: true. Nothing said we had cut the list, or why.
The agent can't resolve that. It sees has_more: true and does the reasonable thing: it pages. In one run, our test agent, gpt-6-luna, paged get_topups 4 times. In a later run, attempts without the fix on the top-up tasks kept paging 5-item pages with cursors until their call budget ran out. Our H-06 Deterministic Envelopes & Schema Uniformity asks that every response report truncation in one place, accurately. Ours had the field and left it empty.
A cap that hides itself costs trips. A cap that contradicts its data costs the answer.
4. Our own guardrail broke the agent's scripts
143 of 455 calls were blocked by our own rate limit.
The silent caps had a cousin in governance. In an earlier build, a GitHub code-mode task over 200 items took 25 turns and 277k tokens. Of 455 calls, 143 were blocked. The cause was our gateway's per-tool rate limit, which made scripts fail instantly.
We removed the limit on the mock and added pacing inside scripts. The same task then passed in 5 turns and 24k tokens.
A similar case: with writes enabled and any destructive tool on the server, contract 2 dry-ran every script before running it for real. The dry run's reads also went upstream, so a task that needed 90 calls made 180. H-12 Cheap Speculation & Declared Blast Radius asks for cheap previews of risky actions. Previewing reads only doubled the load.
A limit the agent can't see works like a cliff, even when it's a safety rail.
5. Return what was asked, drop fields before items, and say so
No agent followed the pointer to the rest. None needed to.
The fix, no silent cuts, has three parts:
- The caller's
limitwins over the overlay's item cap, up to a stated size budget. - Bulky fields go before items. If the list still doesn't fit, the largest nested values are dropped from every item, and every item is kept.
- Any cut is marked, with counts and one call that returns the rest.
Here is the same get_topups(limit=100) with the fix, as the gateway returned it:
{
"page": { "count": 20, "total": 20, "has_more": false },
"truncated": {
"fields": ["source"],
"omitted_bytes": 17648,
"next": {
"tool": "get_topups",
"args": { "limit": 100, "fields": ["id", "amount", "balance_transaction", "created", "source"] }
}
},
"hint": "All 20 items; large nested fields dropped to fit: source."
}
All 20 items, in 11.4 KB. The agent learns what was left out and how to get it, in one line. That is H-03 Token Hygiene & High Observation Yield applied to a cut: report what you omitted. It also raises observation yieldLexicon · 25Observation YieldUseful, decision-relevant signal per token returned by a tool., the decision-relevant signal per token, because nothing in the response has to be second-guessed.
We tested the fix as one of four changes to call results, shipped together as a bundle. Inside that bundle, list-then-filter tasks went from 0.72 to 0.94 success, and tasks that need many rows from 0.33 to 0.67. Those figures are inside the bundle only: the other changes ran alongside, so this one's share isn't separated. Reading the failures one by one, paging a cut list ended 5 attempts in the baseline arms and 1 across all the variant arms. H-08 Compositional Accelerators puts the rule in one line: cap if you must, and say so.
The audit adds one rule that the fix alone doesn't state: never pass upstream metadata that contradicts what is shown. A cut list must never carry has_more: false or a total that hides the cut.
Lists return what was asked, up to a budget, and every cut names itself.
What changes
- Audit layers, not just tools. List every cap from the upstream to the agent: gateways, overlays, SDK helpers, script runtimes. For each one, write down what the agent sees. None should be visible only by inference from paging fields.
- Honour the caller's
limit. If a cap still applies, say that it overrode the limit, and by how much. - Never forward contradicting metadata. If you cut a list, rewrite or drop the upstream's
has_moreand totals. - Test the label, not just the cap. A truncation marker that's wrong is worse than none.
- Put governance where the agent can see it. Rate limits and dry runs need pacing, a budget, or a clear error, or they read as random failure.
- Read transcripts after every redesign. We found these by trace reviewLexicon · 52Trace ReviewInspecting reasoning and tool logs to uncover interface friction., reading the agent's calls and results one by one. The scores alone said contract 2 was fine.
Where to go from here
- Our Field Guide: Designing for Agents, our interface design principles for AI agents as users. Heuristics, a lexicon, and the trajectory map that ties them together.
- Our MCP server: the Field Guide for your agent. It can search the Guide, read any heuristic or term at the depth it needs, and follow the links between them.
- Our AX tool-design skill: an agent skill for designing and reviewing tools, MCP servers and APIs that agents use, against the Field Guide's heuristics. Point it at your gateway too.
Coming next: Count Trips, Not Tokens, the full bundle this fix rode in, and why we now tell agents their budget.