Function calling — Anthropic calls it tool use — is the mechanism that lets a language model act instead of only writing text. Given a set of tool definitions (a name, a description, and a JSON-Schema for the parameters), the model decides whether a tool is needed and, if so, emits a structured call: the tool name plus JSON arguments that conform to the schema. Critically, the model never runs code itself. It only requests a call; the host application executes the function and returns the result.
The loop
- The app sends the user message plus the tool schemas to the model.
- The model returns either normal text or a tool-call request.
- The app validates the arguments, executes the function, and returns the output.
- The model uses that output to answer or to call again. Multi-turn and parallel tool calls are supported.
How the providers expose it
- OpenAI — originally
functions/function_callin mid-2023, now thetoolsparameter withtype: "function"(each tool hasname,description, and aparametersJSON Schema); the model returnstool_calls. It supportsstrictschema adherence and parallel calls. - Anthropic — pass a
toolsarray (each withname,description, andinput_schema) to the Messages API; Claude returns atool_usecontent block with structuredinput, and the app replies with atool_resultblock. Same loop, different field names.
Relationship to MCP Function calling is the model-level capability: a single application defines a tool's schema and runs its own bespoke code. It is per-app, ad hoc, and not interoperable. The Model Context Protocol sits one layer above — it standardizes how tools and data are discovered, described, and connected via a reusable JSON-RPC client/server protocol, solving the "M×N integrations" problem. MCP does not replace function calling; it feeds it. An MCP server advertises tools that the host then exposes to the model through its native function-calling interface. In short: function calling is how one model invokes one tool; MCP is a standard way to connect many hosts to many tools.
For the wider picture see What Is the Model Context Protocol and the agent-protocols overview. Note that untrusted tool descriptions and tool outputs are both attack vectors — see MCP Security Risks.
Related Articles
View all articles
AI Agent Protocols Explained: MCP vs A2A vs ACP and the Agent Interoperability Stack
MCP and A2A are not rivals — they are complementary layers of the same stack: MCP connects an agent to tools and data, A2A connects agents to each other. Here is the whole interoperability landscape, with ACP, ANP, and AGNTCY put in their place.
Read article →
What Is the Model Context Protocol (MCP)? The USB-C Port for AI, Explained
Model Context Protocol (MCP) is the open standard — created by Anthropic in late 2024 — that lets any AI application connect to tools, data, and prompts through one uniform wire protocol. Here's how the host/client/server architecture, primitives, and transports actually work.
Read article →
What Is an MCP Server? How Model Context Protocol Servers Work (and How to Use One)
An MCP server is a small program that exposes tools, resources, and prompts to an AI app over a standard protocol. Here is what it actually does, local vs remote transports, a working config block, and how to add one to your AI coding CLI.
Read article →
MCP Security Risks: A Practical Threat Model for Teams Connecting AI Agents to Tools
MCP isn't uniquely unsafe, but every server you connect widens your attack surface. A risk catalogue, the trust model you're actually accepting, and the governance controls MSPs and security teams should put in place.
Read article →Explore More AI Agents
View all termsAgent2Agent (A2A)
An open protocol originated by Google in April 2025 for interoperability between AI agents — letting agents from different vendors and frameworks discover each other, advertise capabilities, and collaborate. Complementary to MCP, which connects agents to tools.
Read more →Agentic AI
AI systems that autonomously plan and take multi-step actions toward a goal — invoking tools, making decisions, and adapting — rather than producing a single one-shot response.
Read more →AI Agent
An LLM-driven system that perceives context, decides, and acts via tools and APIs in a loop to accomplish tasks — often with memory and some degree of autonomy.
Read more →Model Context Protocol (MCP)
An open, JSON-RPC–based client-server standard introduced by Anthropic in November 2024 that lets AI applications discover and connect to external tools, data sources, and prompts in a uniform way — "USB-C for AI integrations."
Read more →