Skip to content

MCP tools, resources and prompts: which one to use for what

An MCP server can expose tools, resources and prompts. The difference, who controls each, and which one fits an action, a document or a template.

Published by Contextingo.

MCP servers expose three kinds of things. They look similar and are controlled by different parties, which is the easiest way to tell them apart.

KindWhat it isWho decides to use it
ToolAn action with inputs and a result, such as “save a finding”The model
ResourceData identified by a URI that a client can readThe application or the user
PromptA reusable message template with argumentsThe user

Tools

Tools are the most used part. The server describes each tool with a name, a description and an input schema. The model reads the descriptions and decides when to call one, so a clear description matters as much as the code.

Resources

A resource is something to read, not something to do: a file, a database row, a document. The client decides what to attach to the conversation.

Prompts

A prompt is a template that the user starts on purpose, for example from a menu. It can take arguments and produce a set of messages.

Which to choose

  • It changes something or looks something up on demand: a tool.
  • It is content that gets attached for context: a resource.
  • It is a workflow a person starts: a prompt.

Coding-agent integrations are mostly tools. Contextingo’s server is made of tools such as context_get, context_upsert and review_submit. See what MCP is.

Questions

Good to know.

Can a server offer only tools?

Yes. Many servers offer tools only.

Why do tool descriptions matter?

The model chooses tools from their descriptions. A vague description leads to the wrong call or none.

Nothing learned is lost. Nothing unchecked is done.