Tool Use (Function Calling)
Agents & AutomationThe ability of an AI model to invoke external tools and APIs during a conversation — searching the web, running code, querying databases, or calling any programmatic function.
Tool use transforms AI from a text generator into an action taker. Instead of just writing about the weather, the AI can call a weather API and give you actual current conditions. Instead of guessing at calculations, it can execute code and return precise results.
Function calling (OpenAI's term) or tool use (Anthropic's term) works by: (1) the developer defines available tools with their parameters, (2) the model decides when a tool is needed, (3) it generates the function call with appropriate arguments, (4) the system executes the call and returns results, (5) the model incorporates the results into its response.
Tool use is the foundation of AI agents. Without it, AI can only talk. With it, AI can act — browse the web, send emails, modify files, query databases, and interact with any API. Claude, GPT-4, and Gemini all support tool use.
Real-World Example
When ChatGPT searches the web for your question, executes Python code to analyze your data, or generates an image with DALL-E — it's using tool calling to invoke external capabilities.
Related Terms
More in Agents & Automation
FAQ
What is Tool Use (Function Calling)?
The ability of an AI model to invoke external tools and APIs during a conversation — searching the web, running code, querying databases, or calling any programmatic function.
How is Tool Use (Function Calling) used in practice?
When ChatGPT searches the web for your question, executes Python code to analyze your data, or generates an image with DALL-E — it's using tool calling to invoke external capabilities.
What concepts are related to Tool Use (Function Calling)?
Key related concepts include AI Agent, MCP (Model Context Protocol), API (Application Programming Interface). Understanding these together gives a more complete picture of how Tool Use (Function Calling) fits into the AI landscape.