Medium · How an agent uses a tool
The tool description: what the model reads
The model never sees a tool’s code. It reads only a short tool description. A tool description has three parts: a name, what the tool does and when to use it, and the shape of its inputs. A vague description leads to the wrong tool. A few clear tools beat many similar ones.
Video coming
Example
Two tools at Maple Mart Vague name: do_stuff does: orders Clear name: place_order does: orders stock from a supplier; use it when a shelf runs low inputs: item (text), cases (a whole number), supplier (text)
Try it Yourself
Rewrite the vague “does: orders” so the model knows what the tool does and when to use it.
Exercise
Milo’s agent picks the wrong tool. What is the first thing to check?