AI Hints
Home›MCP Tutorial›Using Resources
MCP · Lesson 36 of 120

Resources or Tools

How to choose.

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

Some data could be a resource or a tool. The returns policy could be either. How do we choose? Think about who decides when it's used.

Resources or Tools
From the video: Resources or Tools
  • Resource or tool?
  • Who decides?
  • Choose by use

How to choose

If the user or app picks it as context, make it a resource. If the model should fetch it when needed, make it a tool. If it needs complex inputs, or changes anything, it must be a tool.

SituationUse
User attaches itresource
Model fetches when neededtool
Complex inputstool
Changes anythingtool
Large, stable referenceresource

Both is fine

Many servers expose the same data both ways. A resource for the user to attach, and a search tool for the model. Not every host supports resources well, so tools are the safer default for model access.

keyvalue
Both wayscommon
Resourcesuser context
Toolsmodel access
Defaulttools for models

Summary

Use resources for context the user or app chooses, and tools for anything the model fetches or changes. Next, resource updates.

Key takeaways
  • User picks: resource
  • Model fetches: tool
  • Changes: tool
Next up: Resource Updates — changed notifications