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:

FeatureToolsResourcesPrompts
Who decides to use itThe model, with a human able to denyThe application, through its own UI or heuristicsThe user, often as a slash command
Discoverytools/listresources/list, resources/templates/listprompts/list
Invocationtools/call with argumentsresources/read with a URIprompts/get with arguments
IdentifierTool nameURIPrompt name
ResultText, image, audio, or structured contentText or binary contentsMessages with role user or assistant
Typical exampleRun a query, create a ticketA schema file at a file:// URIA 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

  1. 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.
  2. 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: true and a message that names the fix, such as the expected date format.
  3. Empty responses for missing resources. The resources spec says a missing URI must return error -32602, not an empty contents array, because an empty array is ambiguous. Test a bad URI and confirm the error.
  4. 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, two search tools collide, so prefix names with a server identifier.
  5. 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.

Platform Score is our assessment under a published method. It is not a safety guarantee.

Terms this guide uses

This item is a worked example in the AI glossary for:

Next steps

  1. What Is an MCP Server? Tools, Resources and Prompts Read next.
  2. Debug an MCP Server with MCP Inspector Read next.
  3. All guides by topic Browse everything.

Sources

This page is not offered to search engines yet: The content file does not mark this page indexable yet.