close
breadcrumb right arrowGlossary
breadcrumb right arrowTool Calling
Tool Calling

A language model by itself only generates text, it has no built-in way to check today's exchange rate, pull up a customer's order history, or send a message. Tool calling gives it a defined set of external functions it can invoke, each with a clear description and expected input format, and the model decides when a given task calls for using one.

In practice, the model doesn't execute the tool itself, it outputs a structured request ("call the lookup_order function with this order ID"), the surrounding system actually runs that function, and the result gets fed back to the model to continue reasoning or respond to the user.

Frequently Asked Questions

Is tool calling the same thing as function calling?

Yes, the terms are used interchangeably. "Function calling" is the more common term in developer documentation; "tool calling" is more common in agent-focused discussion, but they describe the same underlying mechanism.

Does the AI model actually execute the tool itself?

No. The model only outputs a structured request describing which tool to call and with what inputs. The surrounding application actually executes it and returns the result back to the model, keeping a clear boundary between reasoning and action.

Why does tool calling matter for enterprise AI agents specifically?

Because nearly every real business task requires touching a system of record, an ERP, a CRM, an email inbox. Tool calling is the mechanism that connects an AI agent's reasoning to those systems, without it, an agent can only produce suggestions, not take action.

How does tool calling relate to the Model Context Protocol (MCP)?

MCP standardizes how tools are described and connected to a model, so the same tool integration can work across different agents and platforms rather than every provider inventing its own format for describing available functions.