Medium · How a helper uses a tool
The agent asks, and other code does it
Nia sees the shopping bags are nearly gone, and tells Milo’s order agent. The model inside the agent cannot send anything to the bag supplier itself. It writes a short request instead: which tool to use, and what to put in it. That request is a tool call. Other code reads it and does the work.
Example
Maple Mart, Monday, before opening Nia: we have 2 boxes of shopping bags left. The order agent’s model writes a tool call send_order(item: shopping bags, boxes: 5, supplier: bag supplier) Other code sends the order to the bag supplier. The model only wrote the request.
Try it Yourself
The order agent wants 5 boxes of shopping bags. Write the tool call: the name send_order and what goes in it.
Exercise
Who sends the bag order to the supplier?