Guide protocol/

Function calling vs MCP: what each one standardizes

Function calling is the contract between a model and your application. MCP is the contract between your application and tool servers. A host uses both in the same turn.

Published
Read
7 min
Source
Markdown

Short answer

Function calling and MCP standardize different hops. Function calling, also called tool calling, is the contract between a model API and your application: you send tool definitions, the model returns a structured call, and your code runs it. MCP is the contract between an AI application and tool servers: the application discovers tools with tools/list and runs them with tools/call. An MCP host uses both, handing MCP tools to the model through the provider's function calling.

Checked against: OpenAI function calling guide, OpenAI MCP guide, Anthropic tool use overview, Anthropic MCP connector, MCP architecture overview and MCP Tools spec, December 6, 2026.

Run by us: no. Requests and tool definitions are copied from OpenAI’s, Anthropic’s and the MCP project’s docs.

Which hop does each one standardize?

Function calling covers the hop between the model API and your application; MCP covers the hop between your application and the servers that run tools.

model API  <-- function calling -->  your application (MCP host)  <-- MCP, JSON-RPC 2.0 -->  MCP server
Function calling MCP
Defined by Each model provider’s API The open specification at modelcontextprotocol.io
The two parties The model and your application The MCP client inside the host and an MCP server
Where tool definitions come from You send them in each API request The server returns them from tools/list
Who runs the code Your application (or the provider, for its own server tools) The MCP server
Wire format The provider’s HTTP API JSON-RPC 2.0 over stdio or Streamable HTTP
Beyond tools Nothing Resources and prompts

The two don’t compete. A model can’t speak MCP to a server by itself, and an MCP server doesn’t talk to a model. The host sits in the middle and translates.

How does a plain function call work?

You send tool definitions with the request, the model answers with a structured call, your code runs it, and you send the result back.

{
  "type": "function",
  "name": "get_weather",
  "description": "Retrieves current weather for the given location.",
  "parameters": {
    "type": "object",
    "properties": {
      "location": {
        "type": "string",
        "description": "City and country e.g. Bogotá, Colombia"
      },
      "units": {
        "type": "string",
        "enum": ["celsius", "fahrenheit"],
        "description": "Units the temperature will be returned in."
      }
    },
    "required": ["location", "units"],
    "additionalProperties": false
  },
  "strict": true
}

That is OpenAI’s example function definition. OpenAI’s function calling guide lists five steps: request the model with tools, receive a tool call, execute code on the application side, send a second request with the tool output, and receive a final response or more tool calls. It is blunt about who does the work: “When the model calls a function, you must execute it and return the result.”

Anthropic’s API follows the same loop with different names. For client tools, Claude returns stop_reason: "tool_use" with tool_use blocks, and “Your code runs the operation and sends back a tool_result” (Anthropic). Anthropic also runs server tools, such as web_search, on its own infrastructure.

What does the same tool look like as an MCP tool?

An MCP tool has the same three core parts as a function definition, a name, a description and a JSON Schema for inputs, under slightly different keys.

{
  "name": "get_weather",
  "title": "Weather Information Provider",
  "description": "Get current weather information for a location",
  "inputSchema": {
    "type": "object",
    "properties": {
      "location": {
        "type": "string",
        "description": "City name or zip code"
      }
    },
    "required": ["location"]
  },
  "icons": [
    {
      "src": "https://example.com/weather-icon.png",
      "mimeType": "image/png",
      "sizes": ["48x48"]
    }
  ]
}

That entry is from the tools array of a tools/list result in the MCP Tools spec.

Field OpenAI function Anthropic tool MCP tool
Name name name name
Description description description description (optional)
Input schema parameters input_schema inputSchema
Strict schema mode strict strict No such field

MCP’s tool definition, as of December 6, 2026, also has title for display, icons, an optional outputSchema for structuredContent results, and annotations that clients must treat as untrusted unless the server is trusted. Because the core fields line up, converting between formats is mostly renaming keys. Anthropic’s SDK ships helpers that convert MCP types to Claude API types.

How does an MCP host combine the two?

The host fetches tools from every MCP server, passes them to the model as function definitions, and sends each tool call the model makes to the server that owns the tool.

# Pseudo-code using MCP Python SDK patterns
available_tools = []
for client in app.mcp_clients():
    tools_response = await client.list_tools()
    available_tools.extend(tools_response.tools)
conversation.register_available_tools(available_tools)
# Pseudo-code for AI application tool execution
async def handle_tool_call(conversation, tool_name, arguments):
    client = app.find_mcp_client_for_tool(tool_name)
    result = await client.call_tool(tool_name, arguments)
    conversation.add_tool_result(result.content)

Both snippets are from the MCP architecture overview. The first builds what the docs call “a unified tool registry.” The second is the routing step: the host intercepts the model’s tool call, finds the right client, and sends tools/call.

Merging tools from many servers raises one problem plain function calling doesn’t have. Tool names are only unique within one server. The Tools spec says clients that aggregate servers SHOULD disambiguate, for example by prefixing a server identifier.

Can the model API call MCP servers for me?

Yes, for remote servers: both OpenAI and Anthropic can connect to an MCP server from the API itself, so your application doesn’t need its own MCP client for it.

curl https://api.openai.com/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
    "model": "gpt-6.2-astra",
    "tools": [
      {
        "type": "mcp",
        "server_label": "openai_docs",
        "server_description": "Search and read the public OpenAI documentation.",
        "server_url": "https://developers.openai.com/mcp",
        "require_approval": "never",
        "allowed_tools": ["search_openai_docs"]
      }
    ],
    "input": "Search the OpenAI docs for Responses API streaming and return the relevant links."
  }'
curl https://api.anthropic.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2026-10-21" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 1000,
    "messages": [{"role": "user", "content": "What tools do you have available?"}],
    "mcp_servers": [
      {
        "type": "url",
        "url": "https://example-server.modelcontextprotocol.io/sse",
        "name": "example-mcp",
        "authorization_token": "YOUR_TOKEN"
      }
    ],
    "tools": [
      {
        "type": "mcp_toolset",
        "mcp_server_name": "example-mcp"
      }
    ]
  }'

The first request is from OpenAI’s MCP guide; the second is from Anthropic’s MCP connector docs.

OpenAI Responses API Claude API MCP connector
How you declare it A tool of type: "mcp" with server_url mcp_servers plus a matching mcp_toolset in tools
Limit which tools load allowed_tools Allowlist or denylist in mcp_toolset
Transports Streamable HTTP or HTTP/SSE Streamable HTTP or SSE
Server reachability Any server on the public Internet, or a private one through Secure MCP Tunnel Publicly exposed through HTTP; local stdio servers can’t be connected directly

Anthropic’s connector is in beta, with the header mcp-client-2025-11-20, and supports only tool calls. OpenAI’s guide says that by default it “will request your approval before any data is shared with a connector or remote MCP server,” and require_approval changes that. For local stdio servers, prompts or resources, Anthropic points developers to an MCP SDK client plus its conversion helpers.

What stays the same when you move tools to MCP?

The model still chooses tools from their names, descriptions and schemas, and their output is still untrusted input.

Concern What the docs say
Tool choice Claude “determines when to call a tool based on the user’s request and the tool’s description” (Anthropic)
Context cost Anthropic bills the tools parameter, “tool names, descriptions, and schemas,” as input tokens; the MCP spec asks servers to list tools in a deterministic order to improve prompt cache hit rates
Human approval The MCP spec says there “SHOULD always be a human in the loop with the ability to deny tool invocations”
Untrusted output OpenAI: “Malicious MCP servers may include hidden instructions (prompt injections)”; the MCP spec tells clients to validate tool results before passing them to the model

A vague description works no better over MCP than in a direct API call. A poisoned one is a new risk, because the description now comes from someone else’s server. See tool poisoning.

When is plain function calling enough?

Plain function calling is enough when one application owns its tools and no other AI application needs them.

Situation Use
One app, one model, a few functions the app owns Function calling alone
The same tools should work in Claude Code, VS Code, ChatGPT or Cursor An MCP server
A vendor already runs an MCP server for the system That server, from your host or through the model API’s MCP support
You need a local process or files on the user’s machine A stdio MCP server, reached from an MCP client

Design advice carries over either way. Anthropic’s engineering team recommends “building a few thoughtful tools targeting specific high-impact workflows” and returning “only high signal information back to agents” (Anthropic).

Sources

  1. Function callingOpenAI developers.openai.com
  2. MCP servers (Connectors and MCP)OpenAI developers.openai.com
  3. Tool use with ClaudeAnthropic platform.claude.com
  4. MCP connectorAnthropic platform.claude.com
  5. Architecture overviewModel Context Protocol modelcontextprotocol.io
  6. Tools (specification 2026-07-28)Model Context Protocol modelcontextprotocol.io
  7. Understanding MCP serversModel Context Protocol modelcontextprotocol.io
  8. Writing effective tools for agents, with agentsAnthropic, 2025-09-11 anthropic.com

Changelog

  • First published.

Cite this page

Agents for Devs. "Function calling vs MCP: what each one standardizes." Published Dec 6, 2026. https://agentsfordevs.com/guides/function-calling-vs-mcp
Cite one section