Tool Use
A model working with results from external operations
What is Tool Use?
Tool use lets a model request operations outside text generation, such as search, code execution, or database access. The application controls which tools exist and executes authorized requests. A tool result can be current, cached, incomplete, or wrong.
How it works
Key takeaways
-
Inspect result timestamps and reported execution status.
-
Keep permission checks outside the model’s text.
Illustrative example
A hypothetical weather assistant requests a forecast for Madrid from a tool. The application returns location, timestamp, and forecast data. If the call fails, the assistant reports the failure rather than presenting a guessed temperature as live weather.
Follow the complete tool cycle
The sequence is user request, model proposal, application validation, execution, tool result, and answer. Access checks belong to the application and service. Treat returned web pages and documents as data rather than instructions that override the user. Function calling describes a common structured request mechanism; tool use is the broader behavior.
Sources and documentation
Related terms
AI Agents
Models selecting actions from tools and feedback
MCP (Model Context Protocol)
A protocol connecting AI applications with tools and data
Automation
A repeatable action that software performs when a condition is met
LLM (Large Language Model)
A trained model that processes and generates language
Function Calling
Structured model requests for application-executed functions
Agent Skills (SKILL.md)
Reusable task instructions with optional scripts and references