What if the biggest bottleneck in building AI agents isn’t the model at all, but how you wire it to the outside world? That’s the question teams hit the moment they move past a demo and try to ship something real. Two names keep coming up in that conversation: function calling and the Model Context Protocol (MCP). They get compared constantly, sometimes pitched as rivals, and often confused for each other. The truth is more useful than the hype. This guide breaks down what each one does, where they overlap, where they don’t, and how to decide which belongs in your project.
The Short Answer: They Solve Different Problems
Function calling is a model-level ability. You hand the model a description of available tools, and it replies with structured arguments telling your code what to run. MCP is an application-level protocol. It defines how an AI app discovers and connects to external tools, data, and prompts through a standard interface.
Put simply: function calling is how a model decides to make a call. MCP is how an app finds and connects to the thing being called. An MCP client almost always still leans on the model’s tool-calling ability underneath. They stack rather than compete.
That framing matters because a lot of teams waste time picking a “winner” when the real question is architectural. Are you building one app with a fixed set of tools? Function calling is probably enough. Are you building a platform where many tools and many clients need to interoperate? That’s where MCP starts earning its keep.
What Function Calling Actually Does

Function calling, sometimes called tool use, lets a model return a structured request instead of plain prose. You describe your functions in a schema, the model picks one and fills in the arguments, and your host application executes the call and feeds the result back. OpenAI introduced the feature in a June 2023 API update that reshaped how developers built assistants.
The mechanics are straightforward:
- You define each tool with a name, description, and parameter schema, usually in JSON Schema.
- The model receives those definitions alongside the user’s message.
- The model returns a structured call with arguments, or a normal text reply.
- Your application runs the function and sends the result back.
- The model uses that result to continue the conversation.
The important limitation: function calling is not a standard. Each provider defines its own request and response format. Tool definitions written for one vendor don’t port to another without translation work. That’s a widely noted pain point, and it’s exactly the gap MCP was designed to close.
In practice, this is where most teams start. It’s simple, it’s well documented, and it keeps tool execution inside your own application, which makes security easier to reason about. If you want to see how vendor-specific implementations differ, the OpenAI function calling guide walks through the schema and response flow in detail.
What MCP Adds to the Picture
Anthropic announced the Model Context Protocol on November 25, 2024, as an open protocol for connecting AI applications to external data and tools. It builds on JSON-RPC 2.0 and defines clear client and server roles. The official MCP specification covers the architecture, transport options, and message format if you want the technical depth.
The architecture has three moving parts:
| Role | What it is | Example |
|---|---|---|
| Host | The AI application the user interacts with | A desktop assistant or IDE plugin |
| Client | The connector inside the host that talks to one server | A per-server connection manager |
| Server | The thing exposing tools, resources, or prompts | A local file-system server or a remote database server |
Servers can run locally over stdio or remotely over HTTP-based transports. Those transport details shifted during 2025, so check the current spec revision rather than assuming an older tutorial still applies.
The payoff is portability. Write one MCP server, and any MCP-compatible host can use it. That’s a very different value proposition from writing a bespoke integration for every app and every model. It’s also why adoption broadened quickly: OpenAI added MCP support across its Agents SDK and API in March 2025, and Google followed with support in its SDKs in April 2025. The agent-interoperability landscape around MCP has its own adjacent standards too, which is worth tracking if you’re building multi-agent systems.
Head-to-Head Comparison
Here’s where the differences become concrete. Neither column is “better” in the abstract; each reflects a design trade-off.
| Dimension | Function Calling | MCP |
|---|---|---|
| Layer | Model capability | Application protocol |
| Standardization | Vendor-specific formats | Open, shared specification |
| Portability | Low across providers | High across compatible hosts |
| Setup effort | Low for a single app | Higher; requires running servers |
| Tool discovery | Hard-coded in your app | Dynamic via protocol |
| Execution location | Inside your host app | Often in a separate server process |
| Best fit | One app, fixed toolset | Many tools, many clients |
| Main risk | Prompt injection | Prompt injection plus supply-chain risk |
Notice the risk row. Both approaches face prompt injection, where malicious text tricks the model into taking unintended actions. MCP adds a second surface: third-party servers you didn’t write. A compromised or careless server can expose dangerous tools, and tool descriptions themselves can carry injected instructions. That’s a supply-chain problem, and it deserves real attention rather than a checkbox.
The Practical Trade-Off Nobody Mentions Early
Here’s the part that trips up teams in the real world. Function calling looks cheaper, and for a single app it usually is. You define tools, you ship, you’re done. No servers to host, no transport to debug, no version skew between client and server.
MCP looks heavier, and it is, at first. You’re running processes, managing connections, and thinking about authentication for remote servers. But the cost curve flips once you hit a certain scale. If you’ve got five apps that each need the same twelve tools, function calling means sixty integrations. MCP means twelve servers and five clients. The math gets ugly fast in the first model and stays clean in the second.
A few things that actually work in practice:
- Start with function calling. Don’t reach for MCP because it sounds more modern. Reach for it when you feel the duplication pain.
- Keep tool descriptions tight and unambiguous. Vague descriptions are the number one cause of the model picking the wrong tool, in both approaches.
- Treat tool output as untrusted input. Anything a tool returns can carry injected instructions. Sanitize before it goes back into context.
- Version your schemas. Changing a tool’s parameters silently breaks callers. This hurts more with MCP because servers and clients ship independently.
- Log every call and its arguments. When an agent does something strange, the call log is the only reliable trail.
The most common mistake is over-engineering early. Teams adopt MCP for a two-tool prototype and spend a week on infrastructure that function calling would have handled in an afternoon. The second most common mistake is the opposite: hard-coding dozens of tools into one app and then discovering they need the same tools in three other products. (Blog)
Security: Where the Two Diverge Most
Function calling keeps execution inside your host application. That’s a meaningful advantage because you control the blast radius. If a tool is dangerous, you gate it in code. The model can request anything, but your app decides what actually runs.
MCP distributes that control. A server you didn’t write can expose tools you didn’t review. Tool poisoning, where a malicious server hides instructions in a tool description, is a genuine attack pattern. Remote servers add network exposure on top.
That doesn’t make MCP unsafe. It makes it a trust-boundary decision. Treat third-party servers the way you’d treat third-party dependencies: review them, pin versions, limit what credentials they can reach, and prefer servers you or your team control for anything sensitive. For teams thinking through cloud-hosted deployments and where these boundaries sit, the cloud section of 9481.org covers infrastructure angles worth reviewing. (Cloud)
When to Choose Which
Decision time. Use this as a rough filter rather than a rulebook.
Choose function calling when you have one application, a stable toolset, tight latency requirements, and no immediate need to share tools across products. It’s simpler, it’s well understood, and it keeps your security surface small.
Choose MCP when you have multiple clients that need the same tools, when you want to swap models without rewriting integrations, or when you’re building a platform where third parties contribute tools. It’s also a strong fit when you want a clean separation between the AI app and the systems it touches.
Use both when you’re building anything serious. This is the most common real answer. The MCP client uses the model’s function-calling ability to decide when to invoke a tool. The protocol handles discovery and transport; the model handles the decision. They’re layers in the same stack, not alternatives on a menu.
If you’re tracking how this ecosystem evolves, the news section at 9481.org is a reasonable place to follow protocol updates and vendor announcements as they land. (News)
Conclusion
The MCP versus function calling debate mostly dissolves once you see the layers. Function calling is the model’s ability to say “run this function with these arguments.” MCP is the standard way an application finds out which functions exist and connects to them. One is a capability; the other is plumbing. You need the capability either way, and you only need the plumbing when the scale justifies it.
Start simple. Ship with function calling, keep your tool descriptions sharp, and log everything. When you notice yourself writing the same integration a third time, that’s your signal to look at MCP. And when you do adopt it, treat every third-party server as a dependency you’re accountable for, because that’s exactly what it is.
Frequently Asked Questions
Is MCP a replacement for function calling?
No. MCP is an application protocol for connecting AI apps to tools and data, while function calling is a model-level ability to emit structured tool requests. An MCP client typically still relies on the model’s tool-calling ability to decide when to invoke something. They work together rather than replacing each other.
Do I need MCP if I’m only using one AI provider?
Probably not at first. If you’re building a single app against a single provider with a fixed toolset, function calling handles it with less infrastructure. MCP’s main advantage is portability across providers and clients. That advantage only pays off when you actually need to move tools between systems.
Which one is more secure?
Function calling keeps tool execution inside your own application, so you control what runs. MCP adds a supply-chain surface because third-party servers can expose tools you didn’t write, and tool descriptions can carry injected instructions. Both face prompt injection. MCP just adds more trust boundaries to manage.
What is JSON-RPC 2.0 and why does MCP use it?
JSON-RPC 2.0 is a lightweight remote procedure call standard that encodes requests and responses as JSON. MCP builds on it because it’s simple, widely implemented, and works across both local and remote transports. It gives MCP a well-understood message format without inventing a new one. (Introducing JSON)
Can I use MCP with any AI model?
MCP is model-agnostic in principle, since it’s a protocol between an application and a server rather than between a model and a tool. In practice, the host application needs a model capable of tool use to decide when to call. Most major providers now support that capability in some form.
How much overhead does running MCP servers add?
It depends on the transport. Local stdio servers are lightweight and start with the host. Remote HTTP-based servers add hosting, authentication, and network latency. For small projects that overhead is often not worth it. For platforms sharing many tools across many clients, it usually is.
What should I build first if I’m unsure?
Build with function calling. It’s faster to set up, easier to debug, and keeps your security surface small. Watch for the moment you start duplicating the same integration across apps or providers. That duplication is the clearest signal that a shared protocol like MCP will save you more than it costs.







