Skip to content
AgenticAIWiki

← Chapter 34. Designing good tools

Two versions of the same tool

questionCustomer"Where is order A-10234?"Claudereads definitions onlyVersion AlookupVersion Bget_order_statusjson// Version A{ "name": "lookup", "description": "Gets data.", "input_schema": { "type": "object", "properties": { "q": { "type": "string" } } } }// Version B{ "name": "get_order_status", "description": "Shipping status of one order by its id. Use when the customer asks where an order is. Not for refunds. Returns status and delivery date.", "input_schema": { "type": "object", "properties": { "order_id": { "type": "string", "description": "e.g. A-10234" } }, "required": ["order_id"] } }

Swipe to change step

Step 1 of 7. Here are two versions of the same order lookup tool. Claude never sees the code behind either one. It only sees the definition: a name, a description and an input schema. Customer ("Where is order A-10234?"). Claude (reads definitions only). Version A (lookup), highlighted. Version B (get_order_status), highlighted. arrow from Customer to Claude, labelled question.

Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.