Affirmative Null Observations
Make empty results and quiet successes explicit, reporting the scope searched and the exact post-state, so silent failures can't pass as success.
The message is short: "My espresso machine arrived cracked. I'd like my money back." The machine cost $1,240. The message lands in the refund queue on a Tuesday afternoon, where a support agent is working through tickets. The agent's playbook is sensible. Before refunding anything, check whether the order has already been refunded.
It calls search_refunds(order_id="4471"). Back come two characters: [].
The agent reads that as "no refunds on file," issues $1,240, and sends the customer a friendly note. Ticket closed in under a minute.
There was already a refund. A colleague issued it six weeks earlier, on October 12. The search tool quietly limits itself to the last 30 days, a default someone added long ago to keep the admin page fast. Nobody told the agent, and the response gave no hint. Finance finds the double payout at month-end, and now someone has to ask a customer to send $1,240 back.
Nothing crashed. The tool did what it was built to do, and the agent reasoned correctly from what it saw. The failure lives in the gap between what the tool searched and what it said it searched.
Why it happens
Open the same refund search in the admin dashboard and the empty page is full of clues. A filter chip above the table reads "Last 30 days." The search box still shows 4471. The page loaded normally, so the search clearly ran. A person glances at the chip, thinks "older than a month, then," and widens it. Designers call this screen an empty state. Good teams design it on purpose: it says what was searched and what to try next.
The agent gets none of that. For an agent, the tool response is the whole page. And very different situations come back as the same two characters: a fast search that found nothing, a timeout the tool quietly turned into an empty list, a typo in the order ID, a date window that was too narrow.
An empty result, or a write that says "done" and shows nothing, is what the Guide calls a null observationLexicon · 27Null ObservationsEmpty results or silent successes requiring explicit scope confirmation.. Null observations are normal, and often correct: plenty of orders really have no refunds. The trouble starts when they arrive without saying where the tool looked.
The tool knew exactly where it looked. It just didn't say.
In The Design of Everyday Things, Don Norman gave a name to the effort of working out whether an action succeeded: the gulf of evaluation. Agents cross the same gap every time a tool returns. The Guide calls it the gulf of interpretationLexicon · 30Gulf of InterpretationDifficulty judging from tool output whether an action succeeded.: the distance between what a tool returned and what the agent can safely conclude from it. A bare [] makes that gulf as wide as it gets. Several different realities produce one identical response.
The figure below shows the refund search from the hook in both forms. The top row is the bare response, where every explanation still fits. In the bottom row, watch which field of the response rules out which explanation.
No single field does all the work. The status rules out a failed search, order_found rules out a bad ID, and the count of refunds outside the window rules out "no refund exists." Each field closes one door, and the agent walks through the one left open.
When the gulf is wide, the agent still has to move. It can't shrug and wait for more context the way a person might, so it takes the most plausible reading and keeps going. For an empty list, that reading is "there is nothing."
Every assumption made without checking, and then built on, is a loan against reality. The Guide calls the running balance grounding debtLexicon · 19Grounding DebtUnverified assumptions compounding across turns until checked against reality., and like any debt it compounds. In the hook, the refund, the customer email and the closed ticket all rest on one unverified reading of two characters.
What it costs
Wrong actions, usually writes. The most expensive null observation is the one followed by a create: a second refund, a duplicate ticket, a new user account for someone who already has one, a migration run twice because the check for the first run came back empty. These cost money and cleanup, and they often reach a customer before anyone notices.
Wasted turns in the other direction. An agent told to be careful, or a model that likes to double-check, may distrust the empty list instead. It retries with 4471, then #4471, then ORD-4471, then a different tool. None of these can work. The query was fine all along. The date window was the problem. Repeated, nearly identical calls that make no progress have a name: a thrash trapLexicon · 49Thrash & Loop TrapsRepeated near-identical failing calls producing zero environment progress.. Each loop burns a turn, a few hundred tokens of reasoning and seconds of latency, and it usually ends with the agent picking a reading anyway.
Supervision time. Once finance has found one double refund, the reasonable response is to require a human to approve every refund the agent issues. That approval queue is now someone's job, and most of the value of automating the queue is gone. The fix in the interface is far cheaper than the fix in the org chart.
Invisible failures. None of this shows up in an error dashboard. Every call returned success. The failures surface later, in reconciliation, in customer complaints, and in an engineer reading traces trying to work out why the agent "decided" something that looked obviously wrong in hindsight.
The fix
In plain words: any response that could be empty must say three things.
- What it found, even when that is zero.
- Where it looked, including the defaults it applied on its own.
- Where the answer might be instead, when it found nothing.
Any write must say what changed. Silence is never the answer.
Here is the refund search from the hook, before and after.
[] 1
- 1Two characters with four possible meanings: no refund, a refund outside the window, a failed search, or a wrong order ID. Nothing in the response says which one is true.
{ "status": "ok", "matches": 0, 1 "scope": { "order_id": "4471", "order_found": true, "created_after": "2026-10-27" 2 }, "excluded_by_scope": 1, 3 "widen": "search_refunds(order_id=\"4471\", created_after=null)" 4 }
- 1Zero is stated as a count, inside the same envelope a hit would use. The agent reads a fact instead of interpreting a silence.
- 2The tool echoes the 30-day window it applied by default. The agent never asked for that window, which is exactly why the response has to show it.
- 3Counting matches outside the window costs the tool a second, cheap query. It is worth it on empty results; the tensions below cover when to skip it.
- 4The exact call that widens the search, ready to copy. The agent's correct next move is one turn away and needs no guessing.
Walk through the pins in order. Pin 1 turns silence into a statement. matches: 0 is a value in a field the agent knows how to read, in the same place a list of refunds would be. The response looks the same for zero hits and for ten, so the agent never has to treat "empty" as a special case.
Pin 2 is the heart of the fix. Defaults are the most dangerous kind of scope: the caller didn't choose them and usually doesn't know they exist. When the tool echoes every filter it applied, chosen or default, the agent finally sees the "Last 30 days" chip a person would have seen.
Pins 3 and 4 go one step further: they point to where the answer lives. Peter Pirolli and Stuart Card, studying how people forage for information, called cues like these information scent: cheap signals that show which direction is promising without reading everything. The Guide calls the agent version token scentLexicon · 26Token ScentNavigational hints showing where answers live without full ingestion.. With excluded_by_scope: 1 and a ready-made widen call, the agent's next turn finds the October 12 refund and stops.
The cost is about 50 extra tokens on one call. The saving is a $1,240 mistake, a customer conversation nobody wanted, and the approval queue that would have followed.
The same pattern on other tools
Search is the obvious case, but every tool that can come back empty or quiet has a silent version and an affirmative version. Here are the common shapes:
| Tool shape | Silent version | Affirmative version |
|---|---|---|
| Search or list | [] | matches: 0, the full scope including defaults, the nearest miss |
| Update or delete | {} or 200 OK | updated: 0, not_found: ["cus_88"], or the old and new values |
| Shell command | exit 0, no output | a one-line summary: 0 files changed in ./src |
| Sync or batch job | "done" | synced 0 records since 2026-11-25T08:00Z; source returned 0 |
| File read | "" | exists: true, bytes: 0, modified: 2026-11-20 |
The write rows deserve a second look. Quiet successes are the mirror image of empty searches. An SQL UPDATE that matches no rows succeeds without complaint. If update_customer(id="cus_88", email=…) returns {}, the agent can't tell whether it changed one record, or none because the ID was wrong. Report the post-state: how many records changed, and what they look like now.
Old tools sometimes got this right. By convention, grep exits with 1 when nothing matched and 2 when something went wrong, so a script can tell "no matching lines" from "no such file." That is the whole heuristic in one exit code: an empty result and a broken search must never look alike.
In MCP terms
The MCP spec already follows this law once. For resources, servers "MUST NOT return an empty contents array for a non-existent resource," because "an empty array is ambiguous." Tool results get no such rule, so search_refunds has to bring its own.
- Output schema (
outputSchema). Makematches,scopeandexcluded_by_scoperequired properties, so zero hits and ten share one shape. Put the defaults insidescopeas required fields too, such ascreated_after, so the tool can't forget to echo the 30-day window. - Structured content (
structuredContent). It may hold any JSON value, including a bare[]ornull. The protocol carries the two-character answer happily, so your schema has to rule it out. Return the full envelope here, and a one-line text summary incontent: "0 refunds for order 4471 since 2026-10-27. 1 older refund outside the window." - Error flag (
isError). A failed search comes back as a result withisError: trueand a reason incontent. If the flag is unset, it is assumed false, so a timeout the tool swallows into an empty list reads as a successful search. - Resource reads (
resources/read). If refunds are also exposed as resources, the rule above binds there: a missing refund is an error, never an emptycontentsarray. - Not in the protocol. There is no field for the searched scope or for why nothing matched. The
scope,excluded_by_scopeandwidenfields from the fix live in your payload, and they are the part that saves the $1,240.
Spot it in your traces
Here is the session from the hook as it would appear in a trace log. Watch turn 2: it is the only place the agent could have caught the problem, and the response gave it nothing to catch.
- T1
get_order(order_id="4471")→ { "id": "4471", "total": 1240.00, "status": "delivered" }The order exists and was delivered. Next, check for earlier refunds.A good first move. The agent follows its playbook. - T2
search_refunds(order_id="4471")→ []No refunds on file, so this order has not been refunded yet.The search covered only the last 30 days. The agent had no way to know, so it turned an absence into a fact. - T3
issue_refund(order_id="4471", amount=1240.00)→ { "refund_id": "RF-90217", "status": "issued" }Refund issued. Let the customer know.A money-moving write built directly on an unverified empty result. This is the pattern to search for. - T4
send_message(customer_id="c_3310", template="refund_issued")→ { "status": "sent" }The guess now reaches the customer. The duplicate surfaces weeks later in reconciliation.
Every call in that trace returned success. To find the same failure in your own logs, look for these signals:
- An empty result followed by a write. Find turns where a read returned
[],{},""ornull, and one of the next two calls creates, sends, pays or deletes. This is the expensive signature, and it is easy to query for. - Reasoning that turns absence into a fact. Search the agent's reasoning for phrases like "no results, so", "doesn't exist", "not found, so" and "hasn't been". Each one is a conclusion drawn from silence. Check what scope the tool actually used.
- Query mutation after an empty result. The same tool called three or more times in a row with small variations, each returning empty, is a thrash trap. The tool is not telling the agent why it found nothing.
- Writes that return nothing. List every tool whose success response contains no count, no ID and no new value. Each one is a quiet success waiting to hide a no-op.
- Defaults nobody sees. For each search tool, list the defaults in its implementation (date windows,
status=open, the current project, page size) and check whether the response echoes them back.
Review checklist
Run these against every tool that reads or writes data. Each check takes one or two calls, and the list pastes straight into a pull request template for new tools.
- Return an explicit match count on every search or list response, including when it is zero.How to check Call the tool with a query that cannot match. The response should contain a count such as
matches: 0, not a bare[]or empty string. - Echo the effective scope: every filter the tool applied, including defaults the caller did not set.How to check Call the tool with only its required arguments. Every default in the implementation (date window, status, project, page size) should appear in the response.
- Make a failed search look different from an empty one.How to check In a test environment, force the backend to fail (bad credentials or a timeout). The response must report an error status and a reason, never a successful empty result.
- When nothing matches, point to where the answer might be: matches excluded by scope, the nearest match, or the exact call that widens the search.How to check Create a record just outside the default scope, then search for it with defaults. The response should mention the excluded match or give a call that finds it.
- Make every write report its post-state: how many records changed, and their new values or IDs.How to check Update a record using an ID that does not exist. The response should say zero records changed or name the missing ID, never a bare success.
- Use the same response shape for zero results as for many.How to check Compare the responses for a query with zero hits and one with several. They should have the same top-level keys, with only the counts and data differing.
When laws collide
An affirmative null response adds information to every call, and that pulls against some laws while reinforcing others.
- Pulls against · H-03Token Hygiene & High Observation YieldWhere they clashToken Hygiene asks every response to carry only what helps the next decision. Echoing scope, counts and hints on every call adds tokens, and a list tool called 40 times in a session pays for that echo 40 times.How to have bothEcho the scope compactly on every response, since hidden defaults can mislead on hits too. Add the expensive parts, such as counts outside the window, nearest matches and the widen call, only when the result is empty. Empty responses are where the agent needs the most help and have the least else to read.
- Pulls against · H-13Explicit Trust BoundariesWhere they clashSaying "1 refund outside the date window" helps the agent. Saying "3 results hidden because you lack access" tells the caller that the hidden records exist, which can leak exactly what the permission was meant to protect.How to have bothReport counts only for data the caller is allowed to see, such as other date windows or statuses. When permissions filter results, say that results may be limited by access, without a number, and name the role or path that can see more.
- Works with · H-11Errors as Steering PromptsHow they combineAfter an error and after an empty result, the agent faces the same question: what now? Errors as Steering Prompts gives every failure a next valid call, and this heuristic gives every empty success one too.What you getEvery outcome that is not a plain hit carries a next move, and the status field tells the agent which kind it got: ok with zero matches, or an error with a reason. The agent never has to infer a failure from silence.
Model size changes how the failure looks. A more capable model may doubt a bare [] and go check, which costs turns. A smaller, faster model is more likely to take it at face value. The explicit response works for both, which is the point of fixing the interface instead of the prompt.
Terms from this page
- 27Null Observations
- Empty results or silent successes requiring explicit scope confirmation.
- 30Gulf of Interpretation
- Difficulty judging from tool output whether an action succeeded.
- 19Grounding Debt
- Unverified assumptions compounding across turns until checked against reality.
- 49Thrash & Loop Traps
- Repeated near-identical failing calls producing zero environment progress.
- 26Token Scent
- Navigational hints showing where answers live without full ingestion.