Two versions of the same tool
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.
In this chapter
- 34.1Names and descriptions that don't confuse5 min read
- 34.2Input schemas and required fields5 min read
- 34.3Structured errors: isError, errorCategory, isRetryable6 min read
- 34.4How many tools is too many4 min read
- 34.5Limiting what a tool can touch4 min read
- 34.6Feeding errors and stack traces back to the model6 min read
Chapter check
Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.
Loading check…