Prompts in an MCP server are reusable message templates that the server offers to a client, so the user can pick one and fill in a few values instead of writing a request from scratch. Many people assume prompts are just text you paste into a chat window. In Model Context Protocol, a prompt is a named, structured item that a server exposes over the protocol, alongside tools and resources, and the client fetches the full text only when it is needed.
What a prompt actually is inside an MCP server
A server exposes three kinds of things: tools (actions the model can call), resources (data the client can read) and prompts (templates the user can choose). A prompt is identified by a name and can declare arguments, which are the blanks the user fills in. When a client requests a prompt by name with those arguments, the server returns a list of messages ready to send to the model.
Each returned message has a role, such as user or assistant, and content. Content can be plain text or an embedded resource, so a prompt can carry a document into the conversation rather than describing it in words. This is the important difference: a prompt is not a single string you copy. It is a small function that builds a conversation, and the server decides how it is shaped.
Prompts are read-only from the model's point of view. The model does not call a prompt the way it calls a tool. A person, or the client on their behalf, selects a prompt and supplies the arguments. A rule of thumb: tools are for the model to act, resources are for the client to read, prompts are for the user to choose.
How prompts differ from tools and resources
It helps to place the three side by side, because most confusion about prompts comes from treating them as tools.
- Who starts it. A tool call is initiated by the model during a turn. A prompt is initiated by the user or the interface, usually through a menu or a slash-style command.
- What it returns. A tool returns a result the model then reasons about. A prompt returns messages that start or extend a conversation.
- What changes on the server. A tool can have side effects. Requesting a prompt only builds text; nothing on the server should change.
- How it is discovered. Clients list prompts and tools separately, and they are usually shown in different parts of the interface.
If a template needs to look something up first, the clean design is a prompt that asks the model to use a tool, with the tool declared separately. Mixing lookup logic into a prompt makes it hard to test and hard to reuse.
How a client requests a prompt, step by step
The flow is short, and knowing the order helps you debug a prompt that seems not to appear.
- Connect. The client connects to the server and completes the handshake, which announces what the server supports.
- List. The client asks the server for its prompts and receives names, descriptions and argument definitions. Only prompts with clear descriptions tend to be shown well.
- Choose. The user picks a prompt. The client may show a form built from the declared arguments so the user can fill in each blank.
- Get. The client requests that prompt by name, passing the argument values.
- Render. The server returns the messages. The client inserts them into the conversation and the user sends them, or edits them first.
Labels and menu positions differ between clients and change between versions, so do not rely on an exact path. Look for a prompt picker, a template list or an attachment menu. If nothing appears, the usual cause is a server that declares prompts but returns an empty list, or a client that does not surface prompts at all.
What the argument definitions do for you
Arguments are declared with a name, a description and whether they are required. That declaration is the contract. A well-written one tells the user what to type, for example a topic, a tone or a length. The server should validate what it receives and return a clear error if a required argument is missing, rather than filling in a silent default. When a prompt misbehaves, check the argument names first: a typo in a name is the most common reason for an empty or malformed result.
Writing a prompt that is worth exposing
A prompt becomes useful when it saves the user real effort and produces a predictable shape of answer. Keep the following in mind.
- Name it by task. A name like summarize-notes or draft-reply tells the user at a glance what will happen.
- Describe the outcome, not the mechanics. Say what the user gets, in one sentence.
- Keep arguments few. Two or three blanks are easy to fill; eight is a form nobody finishes.
- Put the instructions in the server. The whole point is that the wording lives in one place, so every user gets the same quality without copying text.
- Include one example of the expected output when the format matters, so the model has a shape to follow.
Test a prompt with the shortest possible argument values and the longest realistic ones. A template that works with a single sentence often breaks when someone pastes a full page of text, usually because the instruction gets buried. Put the task instruction before the pasted content, not after it.
Embedding a resource inside a prompt
Because message content can include an embedded resource, a prompt can attach a file the server already holds. This keeps the user from uploading the same document each time. Keep the embedded content small and focused; a prompt that drags in a long document leaves less room for the conversation itself. If the material is large, have the prompt refer to a resource and let the user pull it in deliberately.
Where prompts in an MCP server go wrong
Most failures fall into a few patterns, and each has a simple check.
- The prompt never shows up. The client may not support prompts, or the list request is failing. Check the server log for the list call.
- The result is empty. A required argument was missing or misspelled. Confirm the names match the declared schema exactly.
- Arguments are ignored. The server is returning static text and never reads the values. The template must place each argument where it belongs.
- The output drifts between runs. Instructions are vague or contradictory. Tighten the wording and remove duplicate directions.
- The model calls a tool instead. A prompt should not compete with a tool for the same job. If the prompt is meant to trigger work, say so plainly in its text.
Keep prompts small and single-purpose. One prompt that does five things is harder to fix than five prompts that each do one. When you change a prompt, change its description too, since the description is what the user reads before choosing.
Deciding between a prompt, a tool and a resource
Ask one question: who should begin this? If the user should pick it from a list and fill in a blank, it is a prompt. If the model should decide during a turn and act, it is a tool. If the client should read data without starting a conversation, it is a resource. That single test settles most design arguments.
For a first server, expose one or two prompts with clear names and one argument each. Run the list step, request each prompt with real values, and read the returned messages as a user would. Fixing wording at that stage is quick. Reworking an interface after dozens of prompts depend on it is not.