esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

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.

11 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

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.

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.

Key words

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. 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. 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. 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. 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.

How an MCP tool call travels

Agent's task

a dispute to check

Model

picks a tool and fills its inputs

Your code checks it

allowed tool? allowed amount?

MCP server

calls the bank's REST API

Result to the model

the model reads it, then replies

  1. 1The agent's task goes to the model.
  2. 2The model asks for one tool and fills in its inputs. It runs nothing itself.
  3. 3If the request passes, it goes on to the MCP server.
  4. 4The server makes the bank call, and the result goes back to the model.
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.

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.

Same bank data, two ways in

Plain REST

Code calls one URL

a developer wired this in advance

MCP

Server lists its tools

name and input fields

Fixed call

the same call every time, by design

Model picks a tool

any listed tool, chosen at run time

Dispute system

same data either way

  1. 1The developer's code calls the one URL it was built for.
  2. 2The server lists its tools, and the model picks one from that list.
  3. 3The fixed call reaches the dispute system.
  4. 4The chosen tool reaches the same dispute system.
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.
  • 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. 1

    Show the tools

    Let the user see which tools the app can use, so nothing runs in secret.

  2. 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. 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."

    BetterIt 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."

    BetterThe model only asks. Your code checks the request, then the server makes the call.

  • Trap"MCP is always better, so use it everywhere."

    BetterFixed 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?

Quick check

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

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q164What is the Model Context Protocol (MCP)?12 min
  2. Q165MCP tools vs resources vs prompts?10 min
  3. Q177What makes a good tool set?13 min
  4. Q179Excessive agency and least privilege?11 min
  5. Q186What is tool-result poisoning?13 min

Learn it in depth

Last updated on 26 November 2026

Building an assistant that calls many internal systems?

I design and build AI agents and the tool layer behind them: which calls to expose, what needs a person's yes, and what stays plain REST. Book a short call and tell me which systems it must reach.