AI Hints
Home›MCP Tutorial›Building Blocks
MCP · Lesson 4 of 120

Tools, Resources and Prompts

Three building blocks.

⏱ 2 min read▶ Video at 2:50🎓 Free
Watch this lesson in the MCP courseWatch on YouTube ↗Full MCP course

An MCP server can offer three kinds of things. Tools, which do things. Resources, which are data to read. And prompts, which are ready made templates.

Tools, Resources and Prompts
From the video: Tools, Resources and Prompts
  • Tools do
  • Resources are read
  • Prompts are templates

The three primitives

Tools are called by the model, like look up an order. Resources are chosen by the app, like the returns policy. Prompts are picked by the user, like a reply template. Each one has a different owner.

PrimitiveExampleWho chooses
Toollook up an orderthe model
Resourcereturns policythe app
Promptreply templatethe user

A Northwind server

Northwind's server could offer an order status tool, a returns policy resource, and a support reply prompt. We'll build exactly that, step by step.

keyvalue
Toolorder_status
Resourcepolicy://returns
Promptsupport_reply
Builtin this course

Summary

Servers offer tools for actions, resources for data, and prompts for templates. Next, the messages underneath.

Key takeaways
  • Tools
  • Resources
  • Prompts
Next up: Messages Underneath — JSON-RPC