MCP and Function Calling
In this article
- Explain what function calling is, what MCP adds around it, and why they are not two names for one thing.
- Trace one tool call from the model through the host and its MCP client to the server, naming the schema in use at each step.
- Say which part runs the tool's code, and what changes when the model provider calls an MCP server itself.
- Explain why security checks stay in the host and the server, whatever the provider or the protocol.
Overview
You already know that a model can ask your application to run a function: it names the function, fills in the arguments, and your code does the work. Now MCP also talks about tools and tool calls. Is MCP a new name for the same feature, or something else?
It is something else, and the difference decides where your code runs and where your checks belong. The made-up shop's support chat lets a customer ask about order O-1042 through the orders server and its get_order tool. Behind that one question sit two conversations: app and model, app and server. Afterwards you can trace a tool call across both, name the schema at each step, and say who runs the code.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Function calling, from the model's side
- MCP, on a different wire
- Two schemas for one tool
- One call, three boundaries
- One tool list, two kinds of tools
- When the provider is the client
- Where the checks live
- Sources
- Check yourself, 13 questions