Learn AI Math

Tool Calling

Also called: Function Calling

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.

What does Tool Calling look like?

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.

DimensionTool CallingModel Context Protocol (MCP)
What it isModel capability (emitting JSON arguments)Standard wire protocol between AI hosts & tool servers
AnalogyKnowing how to press buttons on an applianceA universal USB-C port so every tool plugs into any app
Integration effortCustom glue code per app × service pairWrite one MCP server, reuse across Claude, IDEs, agents

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.