MCP Tools vs Resources vs Prompts: When to Use Each Primitive (SOLVED)
TL;DR — Quick Answer
Tools are model-invokable actions with side effects; resources are read-only contextual data the host can fetch; prompts are reusable templated instructions. Choose tools for mutations, resources for grounding, prompts for standardized workflows.
The Interview Question
In the Model Context Protocol, explain the difference between tools, resources, and prompts. When should an MCP server expose each, and how does a host typically consume them?
Deep Explanation
Sign in to unlock full answer
Get deep explanations, PDF export & all MCP questions
- 7 more sections of deep explanation
- Real-world examples
- Common mistakes
- Interviewer expectations
- Follow-up questions
MCPToolsResourcesPromptsAnthropicMicrosoft