Medium · How an agent uses a tool
Three checks before anything runs
Before a tool call runs, code written by people checks it. Each check is a rule. The first rule asks whether the call has the right shape. The second asks whether this agent may use this tool. The third asks whether the values make sense.
Video coming
Example
Milo’s agent asks: place_order(item: milk, cases: 400) shape right fields, cases is a number pass allowed this agent may order stock pass values Maple Mart orders 1 to 40 cases stop Nothing reaches the dairy.
Try it Yourself
The agent asks for 400 cases of milk. Which check stops it? Type one word: shape, allowed or values.
Exercise
Where do the three checks live?