Tool calling
Also: function calling
Tool calling is the mechanism by which an AI model requests a defined action, such as looking up a PO or creating a record, and the surrounding software decides whether to run it.
The model never touches a system itself. It is given a list of tools, each with a name and the parameters it accepts, and when it decides one is needed it returns a structured request, such as a purchase order lookup with a specific PO number. The application validates the request, runs it and passes the result back. That loop is what turns a language model into an agent.
The tool list is the real permission boundary. Whatever a tool allows, the model can eventually be talked into requesting, so tools should be narrow, such as “read this invoice” rather than “run any query”, with parameters validated in code. Write actions deserve the tightest design: value limits, required approvals, and protection so that a retried call does not create the same purchase order twice.
Depends on, and is depended on by
- Agentic AIAgentic AI is AI that pursues a goal across multiple steps, choosing and taking actions in real systems rather than only producing text for a person to act on.
- GuardrailsGuardrails are constraints outside the model that bound what it may do: value limits, permitted actions, required approvals, and validation of output before it takes effect.
- Prompt injectionPrompt injection is an attack in which content an AI reads, such as a supplier email or attached PDF, contains instructions the model follows as if they came from its operator.
- Multi-agent systemA multi-agent system is an AI design in which several specialised agents each handle one part of a workflow and pass work between them, under a coordinating agent or fixed process.
- Large language modelA large language model (LLM) is an AI model trained on vast amounts of text to predict what comes next, which lets them read, summarise and write ordinary language.