The difference between MCP and function calling is which layer you are looking at. Function calling is how a model asks for a tool: you send definitions, it replies with a name and JSON arguments, and something runs the tool. MCP (Model Context Protocol) is how that tool is published from a separate server so more than one app can find it and run it. MCP does not replace function calling. A client still hands those tools to the model through the provider's own tool API.
Claude's docs call the model side tool use, and say it is also called function calling. OpenAI's docs call it function calling. Both will also call a remote MCP server for you. Checked 20 November 2026 against the MCP spec, Anthropic's MCP connector, and OpenAI's MCP guide.
If the tool belongs to one product and only your agent calls it, plain function calling is the default. If the same tool has to show up in Claude, ChatGPT, Cursor, or a customer's agent, that is an MCP server.
Every agent I ship, including Claient, uses plain tool use through @anthropic-ai/sdk. I use MCP as a consumer: coding agents and personal assistants reach Supabase, Gmail, Google Calendar, and Notion that way. I have not shipped an MCP server to production.
MCP vs function calling at a glance
| Function calling (tool use) | MCP | |
|---|---|---|
| What it is | A feature of the model API | An open client-server protocol (JSON-RPC 2.0) |
| Where definitions live | In your request, from your code | On a server, fetched with tools/list |
| Who runs the tool | Your code, unless the provider hosts that tool | The MCP server (local stdio, or remote HTTP) |
| Shape | Provider-specific. See below | One inputSchema for every MCP host |
| Identity | Your session, tenant, and keys | The server's credential: env vars locally, OAuth on HTTP |
| Beyond tools | Tools only | Tools, resources, and prompts, plus opt-in extensions |
| Reuse | Copy the code | Point another host at the same server |
A booking tool from Claient, defined for Claude. Field names are in Spanish because the product is:
{
name: "consultar_disponibilidad",
description: "Returns the free slots for a given date (YYYY-MM-DD)...",
input_schema: {
type: "object",
properties: { fecha: { type: "string", description: "Day to check, YYYY-MM-DD." } },
required: ["fecha"],
},
}
In an MCP tools/list result the schema field is inputSchema, not input_schema:
{
"name": "consultar_disponibilidad",
"description": "Returns the free slots for a given date (YYYY-MM-DD)...",
"inputSchema": {
"type": "object",
"properties": { "fecha": { "type": "string" } },
"required": ["fecha"]
}
}
A host lists the server's tools, converts them into Claude or OpenAI definitions, and on a model call sends tools/call. The model never speaks MCP.
Claude tool use vs MCP: the differences
A user-defined Claude tool goes in tools with name, description, and input_schema (JSON Schema). Claude answers with stop_reason: "tool_use" and tool_use blocks (id, name, input). Your code runs the operation and sends tool_result. That round trip is "Claude function calling". The model does not run your function.
The MCP connector is a different path on the same Messages API. You do not execute the tool. You pass mcp_servers (type: "url", an https:// URL, a name, optional authorization_token) and exactly one mcp_toolset per server in tools, with an allowlist or denylist in default_config and configs.
The beta header is mcp-client-2025-11-20. mcp-client-2026-09-15 includes that behaviour and adds pinning: the API records the server's tool list (mcp_tool_listing) so a later change on the server does not swap Claude's tools mid-conversation. Send the newer header on the Claude API and on Claude models on Google Cloud. The docs list only mcp-client-2025-11-20 for Claude Platform on AWS and Microsoft Foundry. mcp-client-2025-04-04 is deprecated. Tool config no longer lives on the server object.
The connector's response carries mcp_tool_use and mcp_tool_result. defer_loading keeps a large catalog out of the first prompt and loads tools through the tool search tool.
Limits, from the same page:
- Tool calls only. No resources or prompts.
- Public HTTPS only. Streamable HTTP and SSE are accepted. Local stdio is not.
- You run OAuth yourself and pass the access token. The API does not refresh it.
- Not covered by zero data retention. Definitions and results follow Anthropic's standard retention.
Stdio, resources, or prompts mean your own MCP client, plus the SDK helpers that turn MCP values into Claude content blocks. That is client-side tool use again, with your process in the middle. Managed Agents are a third path, still beta: you declare the MCP server on the agent, and each session passes credentials from a vault so the token is not stored on the agent definition.
OpenAI function calling vs MCP
A function is one kind of OpenAI tool. The function calling guide declares it as type: "function" with name, description, parameters, and strict. strict: true requires additionalProperties: false and every property in required. The model returns function_call items (call_id, name, arguments as a JSON string). Your code sends function_call_output.
Definitions are billed as input tokens. GPT-6 Astra and GPT-6.1 Sol require the Responses API for tool calling. The guide's Chat Completions examples use GPT-5.6 Terra, so do not copy a Responses payload onto an older endpoint without checking.
Remote MCP is not a function. The MCP guide adds type: "mcp" on the Responses API:
server_urlfor a public server (Streamable HTTP or HTTP+SSE)tunnel_idfor Secure MCP Tunnel, which reaches a local or private server without exposing itallowed_toolsto import a subsetauthorizationfor an OAuth token. The API does not store it or echo it, so you send it on every requestrequire_approval. By default OpenAI asks before any data is shared."never"skips that,"always"forces it, or you name the tools that may skip it
No extra fee per MCP call. You pay the tokens for imported definitions and for the calls. connector_id (built-in connectors such as Dropbox and Gmail) is deprecated for models released after 1 September 2026. Use server_url or tunnel_id. Older models still accept connector_id.
A server you do not trust can see the model's context, and tool descriptions are untrusted input. OpenAI's example of the right host is Stripe's own server at mcp.stripe.com, not an aggregator proxying that API with your token. Keep the catalog small: the function-calling guide calls "fewer than 20 functions at the start of a turn" a soft suggestion, and tool_search on GPT-5.4 and later can defer the rest, the same idea as Claude's defer_loading.
Claude vs OpenAI: how each API declares tools
The strategy is the same on both. Function calling for tools you run, remote MCP for a server someone else already runs. The wiring is not.
| Claude, Messages API | OpenAI, Responses API | |
|---|---|---|
| A tool you run | name, description, input_schema. You return tool_result. | type: "function", name, description, parameters, strict. You return function_call_output. |
| Remote MCP | mcp_servers plus one mcp_toolset. Header mcp-client-2025-11-20, or mcp-client-2026-09-15 to pin the list. | type: "mcp" with server_url, or tunnel_id for Secure MCP Tunnel. |
| Where a remote tool runs | The MCP server, called by the API. Your process does not run it. | The MCP server, called by the API, unless approval pauses the turn. |
| Local or private MCP | Not through the connector. Run your own client. | Secure MCP Tunnel. |
| Auth | You pass authorization_token. The connector docs have no per-call approval field. | authorization on every request. require_approval is on by default. |
| Retention | Connector calls are not covered by zero data retention. | The MCP tool is compatible with zero data retention. The third-party server keeps its own policy. |
Which model to call is a separate choice: Claude vs GPT for AI agents.
Which one for SaaS integrations
Your product's own actions stay function calls. Claient books appointments for many businesses on one deployment (how that bot is built). The model can ask for a date. It cannot choose the business:
// The model only sends { fecha } or { inicio_iso }.
// Who the booking is for comes from the webhook, never from the model.
export interface ToolContext {
accountId: string;
leadId: string;
}
ejecutarTool: (name, input) =>
ejecutarTool(name, input, { accountId: tenant.accountId, leadId: lead.id }, efectos),
OpenAI's guide says the same thing: do not make the model fill arguments you already know. If accountId were a parameter, the prompt could try to steer it. An MCP server can enforce that, but then it needs a per-tenant credential. For tools that only exist inside one product, that is another service to secure. The booked slot also has to land in the same request so the webhook can mark the lead. A function result is already there.
The customer's other SaaS is where MCP earns rent. If the vendor hosts a remote server, call it with the customer's token instead of wrapping their REST API, and the same server can attach to Claude, ChatGPT, and your app. Allowlist the tools, keep approval on anything that writes, and treat the token like any other secret (securing API keys). On OpenAI, require_approval is that gate. Claude's connector has no approval field, so do not pass a token that can write until your code has checked.
Publish an MCP server when you are the vendor and other agents should call your product. That is a product surface, with auth and an allowlist, not a refactor of the agent inside your own app.
The failure mode is identity. On a personal project a Supabase MCP server was authenticated to the wrong organisation, and every call came back permission denied. The agent could only touch whatever that server had logged in as. A note in CLAUDE.md stopped the retries, and a script against Supabase's Management API used a token for the right account.
If the integration is the user's open browser tab rather than a server, that is a third layer: WebMCP vs MCP vs browser-use.
What the MCP spec says in November 2026
The current protocol version is 2026-07-28. The versioning page still calls that the current revision. On 11 November 2026 the maintainers wrote that releases move to a six-month cadence, with the next one targeted for 30 March 2027 (2027-03-30). Nothing newer than 2026-07-28 is the spec you implement today.
What changed in that revision, for a server you would actually deploy:
- Stateless. No
initializehandshake and noMcp-Session-Id. Each request carries its protocol version and client capabilities in_meta. Servers must implementserver/discover. A remote server can sit behind a normal load balancer. - Cacheable lists.
tools/listshould return in a deterministic order, and list results carryttlMsandcacheScope. A reshuffled tool list misses the prompt cache. Same problem as keeping Claude's token bill under control. - Roots, Sampling, and Logging are deprecated for at least twelve months. The suggested replacement for Sampling is to call the model API yourself. HTTP+SSE is also deprecated (discouraged since
2025-03-26); new servers use Streamable HTTP. Claude's connector and OpenAI's MCP tool still accept SSE. - Tasks left core and live in an official extension, next to MCP Apps and skills over MCP. HTTP auth is optional OAuth 2.1. STDIO servers should take credentials from the environment. Dynamic Client Registration is deprecated in favour of Client ID Metadata Documents, and clients must validate a present
iss(RFC 9207) before redeeming a code.
Stateless means the connection, not the agent. A server that forgets the session does not remember the user. That design is separate: AI agent memory.
When to use which
Function calling when the tools are your product, only your agent calls them, the tenant comes from your session, or results have to trigger side effects in the same request.
MCP when several hosts need the same tools, a vendor already ships a server, another team should ship tools without redeploying every agent, or you are exposing your product to other people's agents.
Either way, allowlist, keep identity out of the model's arguments, and cap the loop. One loop with a short tool list is the usual shape. A pile of subagents is a different decision, and usually the wrong default: single agent vs multi-agent.
FAQ
What is the difference between MCP and function calling?
Function calling is a model API feature. You send tool definitions, the model replies with a tool name and JSON arguments, and some code runs the tool. Claude's docs call this tool use. MCP (Model Context Protocol) is an open client-server protocol, current revision 2026-07-28, that lets a separate server publish tools (tools/list) and run them (tools/call). An MCP client still passes those tools to the model through function calling, so MCP sits above it rather than replacing it.
What is the difference between Claude tool use and MCP?
Claude tool use is a tool you declare on the Messages API with name, description, and input_schema. Claude returns a tool_use block and your code runs it, then sends a tool_result. The MCP connector is different: you pass mcp_servers and an mcp_toolset, with beta header mcp-client-2025-11-20 or mcp-client-2026-09-15, and the API calls a public HTTPS MCP server for you. The connector supports tool calls only, not local stdio servers, resources, or prompts, and it is not covered by zero data retention.
How does OpenAI function calling compare with MCP?
An OpenAI function tool is a tools entry with type: "function", a name, a description, and a parameters JSON schema. The model returns a function_call and your code returns function_call_output. Remote MCP is a separate tools entry with type: "mcp" on the Responses API: server_url for a public server, or tunnel_id for Secure MCP Tunnel. You can filter with allowed_tools. By default OpenAI asks for approval before data is shared with the server. There is no extra per-call fee beyond the tokens for imported definitions and calls.
Should a SaaS integration use MCP or function calling?
Use function calling for tools that belong to your product and only your agent calls, and keep tenant or account ids out of the model's arguments. Use remote MCP when a vendor already publishes a server for a system your customer uses, or when the same tools must work in several hosts such as Claude, ChatGPT, and Cursor. Pass the customer's token, allowlist the tools, and require approval on anything that writes. Most production agents end up with mostly function calling and a few MCP servers.
Does MCP replace function calling?
No. MCP standardises how tools are packaged, discovered, authorised, and executed. The model still selects a tool through the provider's function-calling mechanism. Anthropic's MCP connector returns mcp_tool_use blocks from the Messages API. OpenAI's mcp tool type imports server tools into the Responses API. In both cases the model is doing ordinary tool use underneath.