What it is, how to implement it, how to verify it. Services AI agent readiness audit WebMCP Implementation Agentic SEO architecture Structured data and schemas API optimization and data layer for AI Knowledge graph and entity modeling WebMCP migration and refactoring WebMCP consulting for companies and agencies WebMCP for online stores Origin trial and technical compliance WebMCP maintenance and monitoring See all services Blog Leaderboard RO EN

« Back to blog

What should an agent understand when a catalogue search returns no results?

25 November 2026

What should an agent understand when a catalogue search returns no results?

What should an agent understand when a catalogue search returns no results? A catalogue search with no matching products and a search that could not run both leave the shopper without a list.

An agent needs enough evidence to explain the difference. Start with the decision the shopper is trying to make.

What should an agent understand when a catalogue search returns no results?

Imagine a musician who needs a replacement sustain pedal before an evening rehearsal and can collect it only from the shop near the station. An empty list means something quite different depending on whether the catalogue checked that shop, could reach its stock records and understood which keyboard the pedal must work with.

Separate an empty result from a service error

Prepare one example for a product missing from the catalogue and another for an unavailable dependency. In the first case the shopper can consider changing a condition, while in the second case changing the condition will do nothing to restore the missing stock information.

For the pedal request, let the catalogue find compatible models and then ask the station shop for their availability. If its inventory service times out, the agent can say that compatibility was checked and local availability remains unknown, which gives the musician a reason to call the shop or try the check again later.

If the inventory lookup finishes and rules out every compatible model for collection today, say exactly what the lookup established. The musician can now decide whether tomorrow morning is acceptable without having to guess whether the shop has stopped carrying pedals altogether or simply has none available for collection this evening.

The JSON Schema documentation on arrays shows how a schema describes a list and can impose restrictions on its length. In a catalogue tool that legitimately returns an empty list, allow that outcome in the schema and provide a separate indication of whether the requested search actually finished.

An absent list and a list containing no items can lead to different decisions when the tool changes over time. Give a reviewer a response with the list missing entirely and check that the agent recognises an incomplete response instead of telling the musician there are no pedals in stock.

Show which constraints were applied

If the musician requests a particular connection and collection at a particular shop, preserve both conditions in the search response. Silently switching to delivery across the country can make the tool appear helpful while leaving the shopper with a pedal that arrives after the rehearsal.

Record the branch the catalogue actually used, including a customer-facing name that makes sense outside the inventory team. A branch code shared by a warehouse and a collection desk can produce a plausible availability statement even though the musician cannot collect goods from the building named in the stock record.

Keep the shopper’s own wording alongside any catalogue term that materially changes the meaning of the request. If the musician asked for a pedal compatible with a named keyboard and the tool searched only for a matching plug, the agent should disclose the narrower check before describing any result as compatible.

Distinguish a condition the shopper supplied from a default the shop applied, such as hiding items available only to order. When no pedals appear with that default enabled, a useful explanation lets the musician choose whether to see orderable models without suggesting that ordering one would solve the immediate rehearsal problem.

  • Branch used for the stock lookup
  • Collection deadline supplied by the shopper
  • Compatibility information the catalogue actually checked
  • Default restrictions that excluded otherwise relevant products
Which values are arrays?. [] → Valid. ["pedal"] → Valid. null → Invalid.
Which values are arrays?. Source · JSON Schema · validation test, 2026.
Which values are arrays?
InputResult
[]Valid
["pedal"]Valid
nullInvalid

Find out what the empty list covers

A catalogue may let an agent request the next page of a result set using a continuation token supplied by the previous response. If an old token leads to an empty page after the catalogue changes, start again from the original search before claiming there were no matching pedals anywhere in the result set.

Similarly, a musician may ask for the station shop while the site remembers a branch chosen during an earlier visit. Include the effective branch in the response so the agent can detect the mismatch and repeat the intended lookup before making any claim about what the shopper can collect.

A search that finds compatible pedals but excludes them at the stock stage supports a more specific explanation than a search that found no product records for the keyboard. Return the stage at which the matches disappeared when that information is available, and keep the explanation narrower when the catalogue cannot distinguish those cases.

An incomplete supplier feed creates a different limit even if the search itself finishes successfully against the shop’s own catalogue. The agent can describe what it found among the listed models, but it needs another source before it tells the musician that no manufacturer makes a compatible pedal.

Handle stale stock and partial coverage

Suppose the station branch last reported its stock before opening and the tool can still retrieve that earlier snapshot after the live check fails. Preserve the original observation time and explain that today’s collection remains unconfirmed, especially if the musician is deciding whether to leave for the shop immediately.

If another branch reports current stock, show that finding with the branch that supplied it and keep the original branch visibly unresolved. A shopper who can visit only the station shop should be able to ignore the alternative without hearing that the requested shop is sold out.

When multiple stock checks run together, retain the outcome for each branch the shopper actually asked about. If the station shop reports no pedals and the theatre shop does not answer, a single sentence saying neither shop has stock would turn a successful check at one location into a false claim about the other.

Include a time reference the agent can repeat in ordinary language when a result depends on a collection deadline. A record that says collection is possible today can become misleading when the shopper opens the conversation after midnight, even if the tool accurately reported the options available when it originally ran.

Which lists meet minItems = 1?. [] → Invalid. ["A"] → Valid. ["A", "B"] → Valid.
Which lists meet minItems = 1?. Source · JSON Schema · validation test, 2026.
Which lists meet minItems = 1?
InputResult
[]Invalid
["A"]Valid
["A", "B"]Valid

Choose a follow-up that preserves the shopper’s priorities

After a completed search, identify a condition the musician might reasonably relax and explain what that change would buy them. Asking whether tomorrow morning works makes sense when the catalogue actually shows a compatible pedal for collection then, while a speculative suggestion should clearly say that another search would be needed.

Ask permission before dropping a condition that affects whether the product will work with the shopper’s instrument. A cheaper pedal with a similar connector may be worth investigating, but the agent should keep it outside the matching results until compatibility with the named keyboard has been established.

If the musician replies that the rehearsal cannot move, retain that answer when considering further alternatives and stop suggesting collection the following day. A nearby branch is worth checking only if the customer can travel there, so ask about that change without making the musician repeat the keyboard model and collection deadline.

When the search failed, use the information from the failure to choose a sensible next action and keep the original conditions for a retry. A fresh request after the stock system becomes available can answer the musician’s question, whereas removing the compatibility filter would simply produce an easier question that the shopper never asked.

  • Keep the original request available for a retry
  • Ask which condition the shopper can change
  • Label alternatives with the condition they relax
  • Check availability again before promising collection

Evaluate the explanation as well as the list

Give a reviewer the completed empty search and the failed stock check without their internal test labels. Ask the reviewer what the agent established about the station shop and which part of the musician’s original question still needs an answer after each response.

Add a pair of records that differ only in the branch used for the final lookup and keep the product and deadline identical. If the agent gives the same answer for both records, the reviewer has a precise defect to report because the explanation fails to identify the shop to which the evidence applies.

Test a change of mind in the conversation by letting the musician accept collection tomorrow after first ruling it out. The next response should keep the station shop and keyboard model while updating the deadline, and it should identify any option based on an earlier lookup that now needs checking again.

For a regression check, keep the request and the expected statement of uncertainty beside the sample tool response, then repeat the conversation after a catalogue update. A reviewer can accept different wording as long as the explanation preserves the scope of the search and the musician can tell what decision is possible with the evidence available.

Test a correction to the keyboard name when the musician reads the label on the instrument and notices a different final letter from the one given earlier. The agent needs to check compatibility against the corrected model before reusing a stock result, since the pedal found at the station shop may belong to the accessory range for the first keyboard.

Write the answer a shopper can act on

For a completed search, an answer could say that the station shop lists no compatible sustain pedal available for collection before rehearsal and ask whether the musician can visit the theatre branch. That wording names the original branch and the time constraint while making clear that a change of branch is a decision for the shopper.

For a failed lookup, the answer could say that the catalogue found pedals for the named keyboard but could not confirm the station shop’s stock. The shopper can ask for a fresh check or contact the branch before travelling, without being led to believe that the branch has already sold its last pedal.

For an implementation described on WebMCP, keep both sample conversations next to the tool description so a developer and a shop employee can review them together. Ask the employee whether they would advise the musician to make the journey on the strength of each answer, then revise any wording that promises more than the stock lookup established.

Related articles

Want WebMCP working on your site?

We implement WebMCP end to end: imperative tools, valid schemas, the origin trial token and the discovery manifest. We work on the platform you already run, and the result is verifiable right here.

See our services