LearnThatStack Ace your next interview
Model Context Protocol (MCP) · question
Question 6 of 56

What are MCP prompts, and how do they show up in a host application?

beginner
← All Model Context Protocol (MCP) questions
Re-explain

Prompts are reusable message templates that a server exposes by name. They are user-controlled, so a person picks one and the model does not invoke it on its own.

A client lists them with prompts/list and fetches one with prompts/get, passing any declared arguments. The server returns a list of messages, each with a role and content, which the host puts into the conversation.

{
  "description": "Review a diff for bugs",
  "messages": [
    { "role": "user", "content": { "type": "text", "text": "Review this diff:\n..." } }
  ]
}

In hosts they appear as explicit user actions, such as slash commands namespaced by server in Claude Code and menu items in Claude Desktop. Message content can embed resources, so one pick pulls in files plus instructions.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for Model Context Protocol (MCP) One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

  • When would you expose a workflow as an MCP prompt rather than a tool? A prompt fits a task a person starts on purpose, like a code review. A tool fits an action the model picks mid-task. Tie it to who controls each.
  • How does a client find out that a server's set of prompts has changed? The server declares the prompts capability with listChanged, sends notifications/prompts/list_changed, and the client calls prompts/list again.
  • How does a host collect a prompt's arguments, and can it help the user fill them in? Each argument has a name, description and required flag. The host asks the user for values, and completion/complete can suggest them as they type.
  • What should a host check before it adds a third-party server's prompt messages to the conversation? The server wrote that text, so it is untrusted. Show the user what gets added, including embedded resources, and watch for injected instructions.
  • How does a prompt message embed a resource, and what does the host receive? A content item of type resource carries the uri, mimeType and text or blob inline, so the file arrives with the instructions.

What you can say

  1. MCP prompts are reusable message templates that a server exposes by name, and a person picks them, not the model.
  2. The client finds them with prompts/list, then calls prompts/get with the prompt's name and any arguments it declares.
  3. The server sends back a list of messages, each with a role and content, and the host puts those messages into the conversation.
  4. In hosts they show up as explicit user actions, like slash commands namespaced by server in Claude Code, or menu items in Claude Desktop.
  5. The message content can embed resources, so one pick can pull in files along with the instructions.
  6. The limit is that nothing happens until a person chooses one, so if the model should decide to act on its own, that belongs in a tool.

Weak answers to avoid

  • Confuses MCP prompts with system prompts MCP prompts are named templates a server exposes and the client fetches with prompts/get. Say that, not general advice on writing good prompts.
  • Says the model invokes prompts itself That describes tools. Prompts are user-controlled, so a person picks one and the host treats it as an explicit user action.
  • Skips how prompts appear in the host The question has two parts. Name the concrete UI, such as slash commands namespaced by server in Claude Code and menu items in Claude Desktop.
Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Model Context Protocol (MCP) cheatsheet.

← Back to all Model Context Protocol (MCP) questions
Pro · $10/mo

49 of 56 Model Context Protocol (MCP) answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime