How tool calling works
A tool call is a short exchange between the model and the application around it:
The application describes the tools. Along with the conversation, it sends the model a list of functions it may ask for. Each has a name, a plain-language description and the inputs it takes, usually written as a JSON schema.
The model decides. If the request needs a tool, the model replies with a structured call, the function's name and the inputs, instead of a message.
The application runs it. It checks the inputs, calls the real system and collects the result.
The model continues. The result goes back to the model, which answers the customer or calls another tool.
The model never touches the order system or the database. It asks, and the application decides whether to act. Some providers can also hold the model to the schema exactly, so the inputs always arrive in the expected shape.
Why tool calling matters for AI agents
Without tools, a language model can only talk. It can explain the refund policy but can't issue the refund. Tool calling is what lets an AI agent check an order, move a booking or open a ticket. That is the difference between answering a question and resolving it.
The list of tools also defines the agent's reach. An agent given read-only tools can't change anything, whatever it's told. That makes the tool list one of the strongest AI guardrails a team has.
Voice and chat use the same mechanism. An AI voice agent that confirms an appointment mid-call is making the same kind of tool call as a chat agent, with less time to spare.
Designing tools a model can use well
- Write the description for the model. It reads the name and description to decide when a tool applies. "Get order status by order number" beats "orderAPI_v2."
- Keep inputs narrow. An order number and an email are easier to fill correctly than a free-form query.
- Return results it can read. Short, labeled fields work better than a raw dump of the whole record.
- Offer fewer, clearer tools. Several tools with overlapping jobs lead to wrong picks.
- Confirm before acting. For cancellations, refunds and account changes, have the agent repeat the details and get a yes first.
Examples
- Order status: a lookup tool takes an order number and returns status, carrier and delivery date.
- Rebooking: one tool finds open appointment slots and another books the one the customer picks.
- Handoff: a tool creates a ticket with a summary of the conversation before a person takes over.
- Identity checks: a tool sends a one-time code and a second one verifies what the customer reads back.