Tool Calling
A model capability that lets the system execute defined functions and return the results to the model.
Reviewed May 7, 2026
What it is
Also called function calling, tool calling lets a model request a structured action such as "search the knowledge base" or "create a task". The application executes the function, validates the arguments and returns the result.
Why it matters
Tools connect a model to live data and real actions. They also turn text generation into system behaviour, so validation and permissions matter. A tool call is code execution with model-chosen arguments.
Practical note
Define narrow tools with typed schemas, validate every argument, enforce authorisation in the tool itself, and log calls with inputs and outputs. Never rely on the model to enforce access control.
Keep learning
Concepts are easier to remember when you apply them. The foundations path connects this term to practical exercises.
AI foundations path →Related terms
AI Agent
A system that uses a model to choose actions, use tools and pursue a goal over multiple steps.
Human in the Loop
A design pattern where a person reviews or approves an AI system's output before it has real-world effects.
Prompt Injection
An attack where untrusted text tries to override a model's instructions or trigger unintended actions.