MCP vs Function calling
41 sourced facts · updatedMCP vs function calling (tool use): what is the difference?
They sit at different levels, so they are not rivals. Function calling (tool use) is how a model asks for work: it reads the tool definitions and writes a function name and arguments, and the developer's code runs the call. MCP is a protocol for where tools come from: an MCP server exposes tools to an agent app, and sign-in can sit outside the agent. In the sources MCP servers sit in the same tool catalog as other tools, and both share one cost: every tool definition competes for the context window. [1][2][3][4][5][6]
In the knowledge graph: A tool call is what the model asks for; this district is what happens to it on the way.
The difference between MCP and Function calling
| MCP | Function calling | |
|---|---|---|
| What it is | A protocol with more than tools in it: server instructions, resources, elicitation and long-running tasks. Clients support these unevenly: Figma found that in many clients only tools worked. [7][8][9][10][11] | The model reads one or more function definitions and the user input, then returns which function to call and with which arguments. It does not run anything itself. [1][2] |
| Who runs the tool | The tool lives on a server. Curn's mcpc connects to local stdio servers directly and to remote servers after a browser login. Lopez says a hosted server is always current, while a CLI needs versioning and package updates. [12][13] | The developer's code: in the AI SDK a tool has a description, an input schema and an execute function that runs each time the agent uses it. Provider-executed tools such as web search run on the provider's servers, at the cost of being tied to one provider. [14][15] |
| What it costs in context | Curn says ten MCP servers can mean about a hundred tools, with maybe a third of the context gone before any work, because naive clients register all of them. Anthropic's Soria Parra calls this a fair criticism of how clients are built, not of the protocol. [4][16] | In one talk's benchmark, 741 tool definitions took 127,000 tokens in every request. Tool-selection accuracy was 13.6% with all of them in the prompt, about 40% near 100 tools and 78% at 10. [17][18] |
| How a big catalog is tamed | Hide tools behind a few meta tools. LinkedIn says MCP cannot scale beyond about 30-40 tools without degrading, so three meta tools front 600+ playbooks. Cloudflare's server exposes two tools, search and execute, cutting about 1.2 million tokens to about 1,000 (the speaker's figure). [19][5] | Route before the call. A router that embeds each tool's description and injects only the 3 to 5 closest schemas cut tool context to about 1,000 tokens, as the talk reports. It can miss the tool the model needs, and with fewer than 20 tools it may be unnecessary. [20][21][22] |
| Sign-in and checks on a call | An MCP client can run per-user OAuth and scoped tool permissions outside the sandbox, so the agent never holds the raw credential (Schmid's case). One limit: the server usually sees only the user's token, so it cannot tell whether a user or an agent made the request. [3][23] | Checks sit in the harness around the call: Claude Code fires a pre-tool event before every call and a post-tool event after it, so a hook can check or block a call without changing the agent's code. [24] |
| How it goes wrong | Mirroring an API: Reducto gave its first server one tool per endpoint. It demoed well, but the agent confidently built whole document workflows that neither users nor the agent could explain. [25] | Bad arguments: one open model sent an empty object or null where an optional argument should be left out. The strict validator returned its error and the model sent the same call again, on average 56 repeats in a billion tokens. [26] |
| Where big results go | A normal MCP tool result goes through the agent's context window. Claude Managed Agents spill any MCP tool output over 100k characters to a file in the sandbox and give the model a truncated preview and the path. [27][28] | Large results are treated as files: the harness truncates inside the JSON, keeps a pointer, and lets the agent find the rest by writing code, for example with jq. [29][30] |
When to use MCP
- The agent has to reach a remote service on a user's behalf. Schmid says CLIs and raw curl put API keys on disk or in environment variables, while an MCP client runs per-user OAuth and scoped permissions outside the sandbox. [3]
- You want a server that stays current without package updates: Lopez says a hosted MCP server is always current while a CLI needs versioning and package updates, though Claude imposes limits such as tool-run duration. [13]
- A result should go to the user and not through the model: an MCP App sends HTML, CSS and JavaScript to the user and bypasses the context window. Lowin says uploading a megabyte through a normal tool makes the agent retype it character by character. [27][31]
When to use Function calling
- The function lives in your own code and you want the plain loop: define a description, an input schema and an execute function. The model returns the function name and arguments, and your code runs the call. [14][2]
- You want the tools a model provider trained its models on: providers post-train models on their own tools, OpenAI has said its models are trained on apply_patch, and LangChain swapped in that tool for Codex. [32][33][34]
- The catalog is small: in one benchmark, selection accuracy was 78% at 10 definitions, and one talk says a router may be unnecessary under 20 tools. [18][20]
Using MCP and Function calling together
In the sources, MCP servers feed the same tool catalog as other tools. Schmid's account of tool catalogs runs from a handful of tools, to dozens of tools or MCP servers that hit context limits, to tool search and loading on demand. In NVIDIA's case an enterprise assistant connected over MCP drafted a message and also called send_message without asking. The fix was to the harness instructions and how the tool was executed, and the same tasks then passed 6 of 6 runs instead of 3 of 6. Anthropic's Soria Parra says tool search loads the five tools needed, and programmatic tool calling lets the model compose calls in a code block so intermediate values never enter context. [6][35][16]
Can a model call tools without MCP?
Yes. In the AI SDK a tool is a description, an input schema and an execute function. In Qwen3 a tool call is plain text in the token stream: the definitions sit between tool tags in the prompt, the model writes the call between tool_call tags, and the harness parses and runs it. [14][36]
Why do MCP servers use so much context?
Curn and Anthropic's Soria Parra both put it on the client: the spec says nothing about how clients present tools, and most clients dump every tool into context, giving 50-plus tools. Tool search, which loads only the tools needed, is one fix. [37][16]
Should an MCP server have one tool per API endpoint?
Reducto and Schmid both moved away from one tool per endpoint, and speakers disagree on how few tools to ship. Reducto deleted its endpoint-per-tool server and shipped fewer tools. Schmid's example replaces get_user_by_email, list_orders and get_order_status with one track_order(email) tool. Lopez argues for two tools (describe and execute), while Mihalik prefers several small composable tools with simple descriptions. [38][39][40][41]