Function calling governs LLM to host communication; MCP governs host to tool communication. They are complementary layers, not alternatives.
Imagine ordering food at a restaurant. You tell the waiter what you want by filling out a slip with the dish name and how you want it cooked. That slip is function calling: a standard way for the customer (the model) to communicate an order to the waiter (the host). Now the waiter walks to the kitchen. The kitchen might be in house or it might be an outside caterer. MCP is the standard form the waiter uses to talk to any kitchen, whether it is next door or across town. The waiter still needs the customer's slip to know what to order, and the waiter still needs the kitchen form to actually get food made. Neither replaces the other. They sit on different sides of the waiter, solving different problems. In the AI world, the model fills out the slip (function calling), the host carries it, and the host hands it to the right MCP server (kitchen) to get the actual work done.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: name the two boundaries, identify which protocol owns each, walk one turn of a real agent end to end, explain the portability win, and close with the failure mode contrast that proves the layers are distinct.
Real products, models, and research that use this idea.
- Claude Desktop uses Anthropic tool_use (function calling) on the model side and MCP on the tool side. Adding a new MCP server to the config gives the model access to new tools without any prompt changes.
- Cursor advertises MCP servers as tools to whichever LLM the user selects (Claude, GPT, Gemini, or a local open weight model). Each model uses its own function calling API while the integration layer stays MCP.
- The official MCP servers repo plus the broader ecosystem of over eight thousand servers demonstrates the write once payoff: a server for GitHub, Slack, or Postgres works across every MCP capable host with zero host specific code.
- VS Code Copilot Agents and Cline both consume MCP servers, and developers do not rewrite servers per editor because MCP is the shared integration protocol.
What an interviewer would ask next. Try answering before peeking at the approach.
QTrace one turn of a 2026 agent end to end. Where does function calling stop and MCP begin?
QIf function calling already gives structured JSON, why do we also need MCP?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating MCP as a replacement for function calling. They solve different problems on opposite sides of the host process and a modern agent depends on both simultaneously.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.