MCP Tools, Resources, and Prompts: Which to Use
Pick between MCP tools, resources, and prompts by who triggers each one, what it returns, and whether the model or the user decides when it runs.
Updated · Markdown version
MCP defines three things a server can expose: tools, resources, and prompts. They differ mainly in who decides when each one runs and what the client does with the result.
The three primitives side by side
As of 2026-11-21, the MCP documentation describes these differences:
| Feature | Tools | Resources | Prompts |
|---|---|---|---|
| Who decides to use it | The model, with a human able to deny | The application, through its own UI or heuristics | The user, often as a slash command |
| Discovery | tools/list | resources/list, resources/templates/list | prompts/list |
| Invocation | tools/call with arguments | resources/read with a URI | prompts/get with arguments |
| Identifier | Tool name | URI | Prompt name |
| Result | Text, image, audio, or structured content | Text or binary contents | Messages with role user or assistant |
| Typical example | Run a query, create a ticket | A schema file at a file:// URI | A code review template |
How to choose
Use this rule: choose a tool when the operation takes parameters that the model fills in, or when it changes something. Choose a resource when the content is read-only and can be addressed by URI, and the client should decide whether to attach it. Choose a prompt when a person should start a workflow on purpose and the server supplies the instructions.
Worked example: a server for a release team. A CHANGELOG file is a resource at file:///repo/CHANGELOG.md, so a client can attach it. A create_release_draft action is a tool with a version parameter, because it writes to an external system. A release-notes prompt takes a version argument and returns the instructions a person runs on purpose from a slash command. Splitting the three this way keeps writes out of the read path.
What the primitives are not: a resource read returns stored content for a URI, not the result of an action. A prompt is not inserted into a conversation on its own, since the spec places its use under user control. A tool is not a skill: it is a function the server exposes over the protocol.
Tool definitions have a fixed shape: name, title, description, an inputSchema written in JSON Schema, and optional outputSchema and annotations. The spec says clients should treat annotations as untrusted unless they come from a trusted server, so do not rely on a hint like "read-only" for safety.
Pitfalls
- Actions hidden in resources. If reading a URI changes data, a client that prefetches resources will trigger writes. Notice this by checking which reads have side effects. Move those operations to tools.
- Errors the model cannot fix. Returning a protocol error for a bad date means the model never sees why the call failed. Return input and business errors as tool results with
isError: trueand a message that names the fix, such as the expected date format. - Empty responses for missing resources. The resources spec says a missing URI must return error
-32602, not an emptycontentsarray, because an empty array is ambiguous. Test a bad URI and confirm the error. - Tool names that collide. The spec suggests names of letters, digits,
_,-, and., up to 128 characters, unique within a server. When a client merges several servers, twosearchtools collide, so prefix names with a server identifier. - Expecting a prompt to run automatically. If you need the model to call the workflow itself, expose it as a tool. A prompt only runs when the user selects it.
When to use a skill instead
If the job is to tell Claude how to work, not to connect it to a live system, a skill is usually the lighter choice. An Agent Skill is a folder with a SKILL.md file, and Claude loads it when the description matches the request, so only the name and description sit in context until then. For designing the server side of this choice, mcp-server-builder covers tool design, JSON Schema inputs, error contracts, and the tool versus resource versus prompt decision for a server you are writing. Use a skill for reusable instructions and an MCP server when the action needs an external system or live data.
FAQ
MCP vs skills vs tools: what is the difference? MCP is the protocol that connects a client to a server. Tools are one of the three primitives a server can expose through it. A skill is a set of instructions that Claude loads from disk, not something a server serves.
What error should a server return for a missing resource? The resources spec says a non-existent URI must produce a JSON-RPC error with code -32602 (Invalid Params), and it forbids an empty contents array for that case. Servers should use -32603 for internal failures, and clients should also accept the older -32002.
How do prompt arguments reach the server? A client calls prompts/get with the prompt name and an arguments object, and the server returns messages built from those values. For a release-notes prompt, that means one version argument goes in and the filled-in instructions come out, so the version string must be passed exactly as the server expects.
Related skills in this catalog
Platform Score is our assessment under a published method. It is not a safety guarantee.
Related guides
Terms this guide uses
This item is a worked example in the AI glossary for:
Sources
- https://modelcontextprotocol.io/docs/concepts/tools (accessed 2026-11-21)
- https://modelcontextprotocol.io/docs/concepts/resources (accessed 2026-11-21)
- https://modelcontextprotocol.io/docs/concepts/prompts (accessed 2026-11-21)
- https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview (accessed 2026-11-21)
This page is not offered to search engines yet: The content file does not mark this page indexable yet.