Read a tool result with no matches
Keep action verbs and their objects together. · 143 words
Design the prompt for an empty tool response before you see one. For example, ask the Bluebird Books inventory tool to search ISBN 978-0-14-032872-1 with format=hardcover. If the call succeeds but the item list is empty, report "no match" and include the source name, exact ISBN, format filter, response status, result count, and snapshot date. Do not write that the book does not exist or is out of stock everywhere. The tool may cover only one store or one edition.
Now imagine the tool returns success=true, items=[], result_count=0, and snapshot_date=2025-02-14. The assistant can give a checkable answer: "No matching hardcover was found in the Bluebird Books inventory snapshot dated 2025-02-14 for ISBN 978-0-14-032872-1." It should preserve the empty count and source details, not fill the gap with remembered facts. A broader format search or another catalog should be a new, clearly labeled lookup.
Check your recall
The inventory tool succeeds but returns zero items. What should the assistant report?
Check your answer
Report no match for that exact search. Include the Bluebird Books source, ISBN, format filter, success status, result count of zero, and snapshot date. Do not claim that the book is unavailable everywhere or does not exist.
Sources and credits
Original KeyTouch lesson. Background reading · Microsoft · Generative AI for Beginners.