# MCP vs function calling: two contracts, not rivals

Function calling is how a model emits a structured request; MCP is how an application publishes tools and context to any AI client.

> MCP vs function calling: what is the difference?

## Short answer

Function calling and MCP solve different problems at different layers. **Function calling** is the model-level contract that lets a model emit a structured request — a named function plus JSON arguments — that the host application executes; **MCP** is an application-level protocol that lets a server publish tools, resources, and prompts to any compliant AI client over JSON-RPC. They stack: MCP handles discovery and reuse, function calling handles the model's turn.

The practical consequence is that MCP does not remove function calling from your stack. A host still needs a way to hand tool definitions to the model and to receive a structured call back. What MCP changes is where those definitions come from and who holds the credentials — a separate server process rather than the agent's own code.

- **Function calling layer**: Model output format
- **MCP layer**: Client-server protocol over JSON-RPC
- **Relationship**: Stacked, not competing

## Two layers, not two competitors

Function calling is not a protocol between machines; it is a shape the model's output can take. The host declares tools — name, description, JSON Schema parameters — inside the request, and the model may reply with a `tool_calls` array carrying an id, a function name, and arguments encoded as a JSON string . That is the whole of it. Nothing in the mechanism says where the tool lives, who authorizes it, or how a different application could ever discover it.

MCP answers those three questions. It defines a client–server protocol built on JSON-RPC 2.0, with a lifecycle (`initialize`, `ping`), discovery (`tools/list`, `resources/list`, `prompts/list`), and invocation (`tools/call`, `resources/read`, `prompts/get`) . The server is a process — often local, sometimes remote — that holds the credentials and implements the capability. The client is whichever AI application is talking to it.

The layering follows from that. **MCP describes capabilities; function calling describes a turn.** A model cannot speak MCP any more than it can speak HTTP; the host translates in both directions. An MCP client lists a server's tools, converts their schemas into the model's tool definitions, and when the model emits a call, routes it to `tools/call`.

Two consequences matter. MCP is portable across models because translation happens host-side, while function-calling payload shapes are provider-specific in their details — the OpenAI shape carries `type: "function"` with `name` and `arguments` fields . And MCP is not a replacement: remove function calling and the model has no way to request anything at all.

> MCP describes capabilities; function calling describes a turn.

> Note: A model never implements MCP. The host is the only component that speaks both.

## Schema, model output, host execution, result

Trace one call end to end. The host sends the conversation plus a tool list. The model returns either prose or a structured call: an `id`, a `function.name`, and `function.arguments` as a JSON-encoded string . The host parses those arguments, validates them, runs the real function, and submits the output keyed to that same call id . The model then continues with the result in context.

MCP inserts a second hop on both ends. Before the model sees anything, the client calls `tools/list` and receives names, descriptions, and input schemas . When a call comes back, the client sends `tools/call` with the tool name and arguments, and the server returns a result. The same logical action therefore crosses **two contracts**: model→host (function calling) and host→server (MCP).

Three details carry practical weight. First, arguments are model-generated JSON and are not guaranteed valid — the API documentation warns explicitly that models may hallucinate parameters not defined by the schema, so validation is the host's job . Second, tool choice is steerable through settings like `auto` and `required` , which governs whether the model must call something, not whether the call is safe. Third, an MCP result is just a payload; the host still decides what to do with it.

On latency, discovery round-trips happen per session rather than per call, so per-call cost is usually dominated by model inference.

> Note: The `tool_calls` id is the join key. Lose it and the result cannot be attributed to the request.

## One produces structure, the other produces reuse

Function calling solves a narrow, hard problem: extracting structured data from a stochastic generator. Before it, hosts parsed free text and hoped. Now the model emits a named call with typed arguments, and the host can force or forbid invocation with `tool_choice` . What function calling does not solve is reuse. Ten applications wanting the same issue-tracker integration each write their own schema, their own auth flow, and their own argument validation.

MCP solves reuse and distribution. One server exposes a capability once; any MCP client can list and call it. The primitives split the surface deliberately: **tools** are actions the model may invoke, **resources** are readable context, **prompts** are reusable templates . That split matters because a resource is fetched rather than called, which keeps read-only context out of the action path where authorization is heaviest.

The boundary conditions are where the argument usually gets decided. Function calling alone is sufficient when the tools are few, first-party, and embedded in one application: a calculator, a database query, a local file write. Wrapping three tools in an MCP server buys ceremony and a process to supervise. MCP earns its complexity when capabilities must be shared across hosts, when credentials should live outside the AI application, or when outside teams should plug in without shipping code into your runtime.

One honest asymmetry: the two are not equally mature. Function calling is a stable, widely implemented API surface. MCP is a younger specification with an uneven server ecosystem, and the evidence retrieved here shows protocol type definitions rather than a deployed survey .

> Function calling makes output structured. MCP makes integrations reusable.

## A coding assistant with one foot on each layer

Take a coding assistant that searches a repository, files issues, and edits local files. Two of those belong on different layers, and the split is legible.

Repository and issue-tracker access sit behind an MCP server. It holds the Git token and the tracker API key, exposes `search_code`, `get_issue`, and `create_issue` as tools, and publishes the conventions file as a resource . The host never learns the tracker's REST API. A CLI, an editor plugin, and a batch agent can all point at the same server and get identical capability under identical permissions.

Local file edits and test execution stay on function calling, in-process. `write_file(path, content)` and `run_tests(suite)` need no network hop, no separate lifecycle, and no credential story. Their schemas ride along in the agent's own request .

Now remove each layer and watch what fails. Without function calling the model cannot request the local edit at all — MCP does not supply an output format, so the host still needs one. Without MCP, the agent must embed Git and tracker clients, duplicate schemas per host, and distribute credentials to every place that runs it. The first failure is mechanical and immediate; the second is an N×M integration problem that compounds quietly.

The seam between them is where the translation lives: the host converts MCP tool schemas into model tool definitions and maps returned calls back to `tools/call`. That adapter is also the natural policy point, because it is the only component that sees both the model's stated intent and the server's actual capability.

> Note: Anything that needs human confirmation before running belongs in the adapter, not in the tool description.

## Neither layer is a security boundary

The strongest caveat is that neither mechanism authorizes anything. Function calling gives you a schema, not a permission check. The model can emit a perfectly well-formed call for a destructive action, and the host must still decide whether to run it — the API documentation is blunt that generated arguments may be invalid or invented, making validation mandatory .

MCP relocates risk rather than removing it. A third-party server is code you now trust with credentials, and its tool descriptions enter the model's context. That means text the host did not write can influence which tool the model selects — a **prompt-injection** surface that a function-calling-only design did not have, because there the tool list came from the same team that wrote the host. The architectural inference is sound and follows directly from the client-server model . Treat the specific prevalence of exploitation as unquantified: the retrieved evidence contains protocol types, not a threat model or incident record.

Maturity cuts both ways. A standard transport and discovery mechanism reduces per-integration work, but a young ecosystem means uneven server quality, inconsistent permission models, and specification churn that can invalidate assumptions between versions. Human confirmation before destructive actions remains the host's responsibility under both designs.

The calibrated conclusion is to stack them and concentrate trust decisions in the adapter between them. Arriving over a standard protocol is not evidence of having been vetted.

> Arriving over a standard protocol is not evidence of having been vetted.

> Note: Least privilege lives in the host adapter: allowlists, dry runs, scoped tokens, confirmation prompts.

## Common misconceptions

- **Myth:** MCP replaces function calling. **Reality:** MCP supplies the tool catalogue and the execution channel; the model still needs a structured output format to request a tool at all. Removing function calling leaves the model unable to ask for anything.
- **Myth:** Function calling is a way to connect tools to an application. **Reality:** It is an output contract for the model turn. The host declares the tools, parses the call, validates arguments, and runs or routes the work itself.
- **Myth:** A tool served over MCP has been vetted by someone. **Reality:** A standard protocol says nothing about server quality or permission scoping. The host must still decide which tools to expose and which calls to allow.

## FAQ

### A model returns a well-formed tool call with valid JSON for a tool you registered. What has been established?

Function calling only establishes the output shape. The documentation warns that arguments may be invalid or invented, so parsing, validation, and authorization all remain host responsibilities.

### Which situation actually justifies moving an integration into an MCP server?

MCP pays off when capabilities and credentials must be reused across hosts. A single app with a few first-party tools gains little beyond a process to supervise.

### Where should the decision to run a destructive tool be made?

The adapter is the only component that sees both the model's intent and the actual capability being invoked, so approval, allowlisting, and dry runs belong there.

### How much of the MCP server ecosystem enforces scoped permissions rather than broad tokens?

The reuse benefit and the blast radius scale together; a catalog of servers with over-broad credentials would change the risk calculus.

### Will providers converge on a shared tool-declaration schema, shrinking the translation layer?

If they do, the host adapter shrinks and the portability argument for MCP weakens at the model boundary.

### What is the measured accuracy cost of many MCP tools in context versus a curated list?

Tool-selection errors, not transport, may be the binding constraint on how many servers are practical.

---

Delve Editorial · https://delve.prisflow.com/p/mcp-vs-function-calling
