Medium · How an agent uses a tool
The agent asks, and other code does it
Milo’s agent at Maple Mart sees the milk is low and orders more from the dairy. The model never touches the dairy’s system itself. It writes a short request instead: which tool to use, and with what inputs. That request is a tool call. Other code reads it and does the work.
Video coming
Example
Maple Mart, Tuesday morning The stock sheet says: milk, 3 cases left. The model writes a tool call place_order(item: milk, cases: 12, supplier: dairy) Other code sends the order to the dairy. Milo’s model only wrote the request.
Try it Yourself
Milo’s agent wants 12 cases of milk from the dairy. Write the tool call: the tool’s name and its inputs.
Exercise
Who sends the milk order to the dairy?