# MCP vs a Plain REST API

> What MCP is, what a plain REST API is, when each one fits, and the security catch, explained simply for your AI interview.

**In short:** MCP (the Model Context Protocol) is a standard way for an AI app to list its tools at run time and let the model pick one. A plain REST API is a web service with fixed addresses that your code calls in ways a developer set in advance. Use REST when the steps are known, and MCP when the model has to choose.

AI and LLM interview question Q167, Agents and tool use. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/mcp-vs-a-plain-rest-api

## Say it in 30 seconds

MCP is a standard that lets an AI app list tools at run time, so the model can pick the right one. A plain REST API is a web service whose fixed addresses my code calls in steps I set in advance. When the steps are known, I use REST, because it is simpler to test. When the model must choose across many systems, I use MCP, and I add a person's yes before any risky tool runs.

## Say it in 2 minutes

A REST API is a web service built around resources, each with its own web address, that a program calls to read or change data. For example, one address opens a card dispute case. A developer writes the code that knows each address and the fields to send. The model is not involved. That makes it simple, predictable and easy to test.

MCP, the Model Context Protocol, is an open standard for connecting AI apps to outside systems. An MCP server lists its tools, each with a name and the input fields it needs. The app gives that list to the model, and the model asks for a tool by name. The model chooses at run time, and that is the big difference.

I pick between them by asking whether the steps are known. A nightly job that always calls the same three addresses needs plain REST. A dispute assistant that must choose from many systems is a good case for MCP. An MCP server can be a thin layer in front of an existing REST API, so the two work together.

The catch is safety. The MCP tools page says a human should always be able to deny a tool call, and clients should ask for confirmation on sensitive operations. So a refund tool waits for a person, and my code checks every request before it runs.

## What are MCP and a REST API, in plain words?

A REST API is a web service built around resources, each with its own web address, that a program can call to read or change data. A bank might offer one address to open a card dispute case, and another to read its status. Your code knows the addresses and the fields to send, because a developer wrote that code in advance.

MCP, the Model Context Protocol, is an open standard for connecting AI applications to outside systems. Its own introduction compares it to a USB-C port for AI applications: one shared plug, so any app can use any server that speaks it. The part that matters in an interview is that the model can see the tools and choose one.

Think of a bank branch. A REST API is a direct phone line between two departments, where both staff know the number and the script before the call. MCP is more like a shared directory at the front desk. Any new assistant can read what each service does and what it needs, then decide who to ring. The real case below is a card dispute assistant at a mid-size bank.

- **Endpoint:** One web address a REST API answers on, such as a case status address.
- **MCP server:** A small program that offers tools, data or prompts to AI apps through MCP.
- **Tool:** A named action an MCP server offers, with the input fields it needs.
- **Schema:** The written list of input fields a tool takes, with their types.

## How does an MCP tool get found and used?

The model only ever asks. Your code and the server do the work. The tool list comes first, so the model knows what exists before it chooses.

1. **The app asks for the tool list:** It sends a tools/list request, and the server replies with each tool's name and input fields.
2. **The model picks one tool:** The app passes the list to the model. The model replies with a tool name and filled-in inputs, such as get_refund_status with a case number.
3. **Your code checks the call:** Before anything runs, code checks who is asking, which case it is, and whether the action is allowed.
4. **The server makes the call:** The MCP server calls the bank's REST API and returns the result, which the model reads before it answers.

*Diagram, How an MCP tool call travels: The model only asks for a tool and fills in its inputs. Your code checks the request, the MCP server makes the bank call, and the result goes back to the model.*
1. The agent's task goes to the model.
2. The model asks for one tool and fills in its inputs. It runs nothing itself.
3. If the request passes, it goes on to the MCP server.
4. The server makes the bank call, and the result goes back to the model.

Here is the case. A support agent types into the dispute tool: "Check case 4471 and show the merchant refund status." Over plain REST, a developer has already wired a call to the refund status address, so it runs the same way every time. Over MCP, the model sees a tool named get_refund_status with a case number field, and it picks that tool only when the request needs it.

## Which should you pick, REST or MCP?

Ask whether the steps are known in advance. If they are, plain REST is the simpler choice. If the model has to choose from many tools, MCP fits.

*Diagram, Same bank data, two ways in: Top: plain REST, where a developer fixes each call in advance. Bottom: MCP, where the server lists its tools and the model picks one at run time. Both reach the same bank data.*
1. The developer's code calls the one URL it was built for.
2. The server lists its tools, and the model picks one from that list.
3. The fixed call reaches the dispute system.
4. The chosen tool reaches the same dispute system.

- **Plain REST: Known steps, one app.** A nightly job that always calls the same three addresses needs no model choice. It is simple to test and easy to check and log.
- **MCP: Many tools, many apps.** When several assistants need the same systems, and the model picks the tool, a remote MCP server can serve them all.
- **Cost: Tool lists take space.** Every tool's name and inputs, and any description, take up room in what the model reads on each request. Anthropic warns that "Too many tools or overlapping tools can also distract agents from pursuing efficient strategies."

An MCP server can be a thin layer in front of an existing REST API, so the two work together. The bank keeps its systems and adds one standard way in.

> **Tip:** Asked which to choose? Give the rule first: known steps, REST; model-chosen tools across many systems, MCP. Then name the cost of each.

## What is the security risk with MCP tools?

MCP tools are model-controlled. The model can find and call them on its own, based on its contextual understanding and the user's prompts. The MCP tools page says a human should always be able to deny a tool call.

> "Tools in MCP are designed to be model-controlled, meaning that the language model can discover and invoke tools automatically based on its contextual understanding and the user's prompts." (Model Context Protocol, tools page)
>
> "For trust & safety and security, there SHOULD always be a human in the loop with the ability to deny tool invocations." (Model Context Protocol, tools page)
>
> "The model ingests content from an external source (a web page, a document, an email, a tool response, a retrieved RAG passage, an image, an MCP server's output, a database row, or an issue title) that contains data which acts as prompt injection." (OWASP, LLM01:2026)

OWASP lists an MCP server's output as one way that outside text can carry hidden orders into the model. So a tool result is untrusted input too, and your code should treat it that way.

Example: a line hidden in a case note asks the dispute bot to issue_refund for the full amount. Without a person's yes and a check on the amount, the refund goes through.

1. **Show the tools:** Let the user see which tools the app can use, so nothing runs in secret.
2. **Confirm the sensitive ones:** A refund, a payment or a deletion waits for a person's yes. The MCP tools page asks clients to prompt for confirmation on sensitive operations.
3. **Check inputs in code:** Check the case number, amount and recipient before the server acts. Never trust the model to have checked them.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] MCP is a standard way for an app to list tools and call them, and the model picks which one. Plain REST calls are fixed in advance.
- [ ] When to use each one, by asking whether the steps are known.
- [ ] MCP is a standard for connecting AI apps to outside systems. The calls underneath can still be REST.
- [ ] The model asks, and your code decides and checks.
- [ ] Tool lists take space, so keep them short and clearly named.
- [ ] A person's yes and input checks for risky tools.

**Common traps**

- Trap: "MCP is just a faster REST API." Better: It is a standard for connecting AI apps to tools, and the model picks one. The calls it makes can still be plain REST.
- Trap: "The model calls the API directly." Better: The model only asks. Your code checks the request, then the server makes the call.
- Trap: "MCP is always better, so use it everywhere." Better: Fixed steps are simpler with plain REST. Use MCP when the model must choose tools across many systems.

## Can you spot the weak tool design?

**Spot the weak design:** Which tool setup is the risky one?

A. The server lists get_refund_status, which reads one case and needs a case number.
B. The server lists issue_refund, which moves money, and runs as soon as the model asks.
C. A nightly job calls one fixed REST address with a fixed set of fields.
D. The app shows the user which tools are connected before each chat starts.

**Answer:** B. Moving money is the sensitive kind of action. The model can ask for it by mistake, or after reading a planted line, so a person should say yes and your code should check the amount first.

**Quick check:** The model keeps picking the wrong tool from a list of 60. Which change fixes it at the source?

A. Use a bigger model
B. Cut the list to fewer tools with clear names and inputs
C. Turn up its randomness so it explores more
D. Paste all 60 tool descriptions into the system prompt

**Answer:** B. Fewer tools with clear names and input fields are easier to choose correctly. Every tool takes room in what the model reads, so a long, vague list is harder to choose from. Anthropic warns that "Too many tools or overlapping tools can also distract agents from pursuing efficient strategies."

## Can you answer these from memory?

**Flash cards**

- **What is MCP?** An open standard for AI apps to find and use outside tools and data.
- **What is a plain REST API?** Fixed web addresses that your code calls in ways a developer set in advance.
- **Who picks the tool in MCP?** The model picks from the list the server gave. Your code checks the pick.
- **What does tools/list do?** Asks a server for its tools, with each name and its input fields.
- **When is plain REST enough?** When the steps are known in advance and the model does not need to choose.
- **What should a risky tool do?** Wait for a person's yes, and have your code check the inputs first.

## Likely follow-up questions

- Q164 What is the Model Context Protocol (MCP)? https://designervenkat.online/interview/ai/what-is-the-model-context-protocol
- Q165 MCP tools vs resources vs prompts? https://designervenkat.online/interview/ai/mcp-tools-vs-resources-vs-prompts
- Q177 What makes a good tool set? https://designervenkat.online/interview/ai/what-makes-a-good-tool-set
- Q179 Excessive agency and least privilege? https://designervenkat.online/interview/ai/excessive-agency-and-least-privilege
- Q186 What is tool-result poisoning? https://designervenkat.online/interview/ai/what-is-tool-result-poisoning

## Learn it in depth

- [MCP](https://designervenkat.online/learn/ai-engineering/mcp)
