The Model Context Protocol
Agentic AI Foundations · Lesson 6 of 20 · 39:34
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Oracle Agentic AI Foundations Associate exam (1Z0-1157-26). In this lesson: why MCP exists, hosts, clients, and servers, the three server primitives (tools, resources, and prompts) and who controls each one, and how a client discovers what a server offers. Includes three original practice questions, with Fairhaven Furniture, a fictional furniture seller, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
One integration per framework?
Fairhaven's order tools now work inside its LangChain prototype. But the developers also want them in their coding assistant, and another team is building an agent with a different framework. Writing the same integration again for every application does not scale.
Why MCP
Without a standard, every AI application needs its own integration with every tool: with N applications and M tools, that's N times M integrations. The Model Context Protocol, MCP for short, is an open protocol that standardizes how AI applications connect to tools and data. Anthropic introduced it at the end of 2024, and many vendors now support it. A tool built once as an MCP server works with every compatible client, so N times M becomes N plus M. That's why it's often called the USB-C port of AI agents.
Hosts, clients, and servers
MCP has three roles. The host is the AI application that the user works with: an IDE, a desktop assistant, or your own agent. Inside the host, a client manages the connection to one server, so a host that uses three servers runs three clients. The server is a program that exposes capabilities, either locally or over the network. And the host coordinates its clients, and decides what reaches the model.
Tools, resources, and prompts
A server offers three kinds of capabilities, called primitives. Tools are actions that the model can call, like looking up an order or booking a slot, and the model decides when to use them. Resources are data that the application can read and give to the model as context, like the return policy, and the application decides which ones to include. Prompts are reusable templates, like a damaged delivery report, and the user chooses them, often from a menu. So tools are controlled by the model, resources by the application, and prompts by the user.
Discovery
A client does not need to know a server's tools in advance: it asks the server to list them, with their names, descriptions, and input schemas, and passes them on to the model. So when Fairhaven adds a tool to its orders server, every connected agent can discover it, with no change to the agents' code. Lesson seven shows the messages behind this. And because a server can run actions, hosts should ask the user before sensitive calls, and only connect to servers that they trust.
Recap
Let's recap. MCP is an open protocol that standardizes how AI applications connect to tools and data, turning N times M integrations into N plus M. The host is the AI application, it runs one client per server, and servers expose capabilities. Servers offer tools, resources, and prompts, controlled by the model, the application, and the user. And clients discover a server's capabilities by asking for them.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Through MCP, Fairhaven’s support agent connects to an orders server and to a warehouse server. In MCP terms, what is the support agent?
- A server, because it calls tools
- A resource, because it reads data
- The host, which runs the clients
- A prompt, because the user starts it
Show the answer
The host, which runs the clients
The host is the AI application, and it runs one client for each server that it connects to. “A server, because it calls tools” is the other side: servers expose the capabilities that the agent uses. “A resource, because it reads data” is a kind of data that a server exposes, not an application. And “A prompt, because the user starts it” is a template that a server offers, not the application itself.
Fairhaven wants its assembly guides available as context that the application attaches to a conversation, without the model triggering any action. Which primitive fits?
- Resources, read by the app
- Tools, called by the model
- Prompts, picked by the user
- Clients, run by the server
Show the answer
Resources, read by the app
Resources are data that the application reads and gives to the model as context, and they trigger no action. “Tools, called by the model” is for actions, and the model decides when to call them. “Prompts, picked by the user” is a reusable template that the user chooses. And “Clients, run by the server” is not a primitive: clients run in the host, not in the server.
Fairhaven adds a tool to reschedule deliveries on its MCP server. What must change in the agents that already connect to that server?
- Each agent’s code, to add the tool by hand
- The JSON-RPC version of every client
- Each agent’s model, to a newer one
- Nothing: clients list the tools
Show the answer
Nothing: clients list the tools
A client asks the server for its list of tools, with their descriptions and schemas, so a new tool is discovered without code changes. “Each agent’s code, to add the tool by hand” is the N times M problem that MCP removes. “The JSON-RPC version of every client” is unrelated: adding a tool does not change the message format. And “Each agent’s model, to a newer one” is not needed, since any model that supports tool calling can use the new tool.