# Tool Calling

- **Canonical URL:** https://getaimath.com/dictionary/tool-calling/
- **Topics:** [AI Agents & Agentic AI](https://getaimath.com/dictionary/category/ai-agents-and-agentic-ai/), [AI APIs, Protocols & Integration](https://getaimath.com/dictionary/category/ai-apis-protocols-and-integration/)
- **Also called:** Function Calling
- **Last updated:** 2026-11-25

## What is Tool Calling?

**In one sentence:** Tool calling is when an AI model asks to use an outside tool, like a calculator, search engine or app, by producing a structured request.

The model does not run the tool itself. It outputs something like "call get_weather with city = Paris." The app runs the tool and sends back the result, which the model uses to answer. It is also called function calling.

![Chatbot vs. AI Agent: Giving Advice vs. Doing the Chore — Simple cartoon comparing a Chatbot (gives you a recipe and stops) with an AI Agent (plans steps, uses tools like your calendar and browser, checks if it worked, and finishes the job).](https://getaimath.com/diagrams/ai-agents-and-agentic-ai.png)
*Napkin Diagram (AI Agents & Agentic AI): A regular chatbot just talks back; an AI agent has hands (tools) and loops until the chore is actually finished.*

## What is an example of Tool Calling?

Asked "What is 3,847 × 29?", a model might call a calculator tool instead of guessing.

## Why does Tool Calling matter?

Tool calling lets models get real data and take real actions.

## Tool Calling vs. Model Context Protocol (MCP)

Tool calling is a model's built-in ability to output a structured function request; MCP is an open plug-and-play protocol that standardizes how apps connect those tool calls to external servers and data sources.

| Dimension | Tool Calling | [Model Context Protocol (MCP)](https://getaimath.com/dictionary/model-context-protocol-mcp/) |
| --- | --- | --- |
| What it is | Model capability (emitting JSON arguments) | Standard wire protocol between AI hosts & tool servers |
| Analogy | Knowing how to press buttons on an appliance | A universal USB-C port so every tool plugs into any app |
| Integration effort | Custom glue code per app × service pair | Write one MCP server, reuse across Claude, IDEs, agents |

## Related Concepts

- [Observation](https://getaimath.com/dictionary/observation/): An observation is the information an agent receives after it takes an action, like a tool's result or an error message.
- [Tool Use](https://getaimath.com/dictionary/tool-use/): Tool use is an AI's ability to use external tools to do things it cannot do well alone.
- [JSON Schema](https://getaimath.com/dictionary/json-schema/): JSON Schema is a standard way to describe what a piece of JSON data should look like, including its fields and types.
- [Streaming Response](https://getaimath.com/dictionary/streaming-response/): A streaming response sends an AI's answer piece by piece as it is generated, instead of waiting for the whole thing.
- [Acting](https://getaimath.com/dictionary/acting/): Acting is when an AI agent does something in the world, like calling a tool, clicking a button or running code.
- [Tool Schema](https://getaimath.com/dictionary/tool-schema/): A tool schema is a structured description of a tool, telling the model its name, what it does and what inputs it needs.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/tool-calling/)
