Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Function calling is the LLM-to-host layer where the model emits a tool call; MCP is the host to server layer that discovers and exposes those tools. They compose.
Picture ordering at a restaurant. Function calling is you telling the waiter, in a clear structured way, 'I want the pasta with no garlic.' MCP is the standardized kitchen-supply system behind the scenes that lets the restaurant source ingredients from any vendor without redesigning the kitchen for each one. You still place your order no matter how the kitchen is stocked. And the supply system works the same whether you order pasta or pizza. They sit at different points in the flow: one is how the model voices a request, the other is how the host reaches out to tools and data. The correct answer is that they are different layers used together, not rivals replacing each other.
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.
4 min: name the two layers, eliminate the three replace/superset distractors, then add the three MCP primitives and the JSON-RPC transport.
| Concern | Function calling | MCP |
|---|---|---|
| Layer | LLM to host contract | Host to server protocol |
| Defined by | Each model vendor (OpenAI, Anthropic) | Open spec, vendor-neutral |
| Transport | Inside prompt and completion | JSON-RPC over stdio or HTTP |
| Primitives | Tool schemas, tool calls | Tools, resources, prompts |
| Reusable across apps | No, model-specific shape | Yes, one server runs in any host |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking the option that says MCP replaces or deprecates function calling. They sit at different layers, so the host speaks both at once.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.