You're designing an MCP server. How do you decide whether something should be a tool, a resource, or a prompt?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
The rule is about who controls the invocation, not about what the code does.
Full worked answer with diagram
The rule is about who controls the invocation, not about what the code does.
- Tool = model-controlled. The model decides to call it during reasoning, based on the description you wrote. Use for anything with a side effect, and for reads where the model must choose the arguments (a search query, a record ID it inferred).
- Resource = application-controlled. The host decides when to fetch it and place it in context. Read-only by definition, identified by URI. Use for data the app already knows is relevant: the open file, the selected database schema, a config document.
- Prompt = user-controlled. A parameterised template the user explicitly invokes, usually surfaced as a slash command or menu item. Use for workflows a human should trigger deliberately, like "review this PR against our style guide".
Two shortcuts resolve most cases. If it creates, modifies, or deletes anything, it is a tool, never a resource. If the model needs to decide whether to look at it, it is a tool; if the app already knows it is relevant, it is a resource.
Going further: follow-up territory
The practical complication worth raising unprompted: host support for resources and prompts is uneven. Plenty of hosts implement tools and stop. A server that exposes its data purely as resources can look empty in a client that ignores them. The common workaround is to expose data both ways: a resource for hosts that support it, plus a read_document(uri) tool as fallback. That is duplication, but it is the difference between your server working everywhere and working in one client.
A related failure mode interviewers probe: resources are fetched by the host at some point and then sit in context. If the underlying data changes, the agent acts on stale content unless the server sends a resource-updated notification and the host honours it. That is usually the answer to "why does my agent keep using the old version of the file".
Worth sketching. Drawing it as a question about who invokes, not what the code does, is the whole answer in one branch.
flowchart TD
A["Capability to expose"] --> B{"Creates, modifies<br/>or deletes anything?"}
B -->|"yes"| C["Tool<br/>model-controlled"]
B -->|"no"| D{"Who decides<br/>it is relevant?"}
D -->|"the model, mid-reasoning"| C
D -->|"the app, already knows"| E["Resource<br/>app-controlled, by URI"]
D -->|"the user, deliberately"| F["Prompt<br/>user-invoked template"]
What a good answer covers
- The rule is about who controls the invocation, not about what the code does
- Tool = model-controlled
- Resource = application-controlled
- Prompt = user-controlled
- If it creates, modifies, or deletes anything, it is a tool, never a resource
Key terms: Tool · Resource · Prompt
In the glossary: Workflow
Interviewer follow-ups to expect
Your server exposes a 500 MB log file as a resource. What goes wrong, and how do you restructure it?
When would you use resource templates rather than fixed URIs?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep