Core Primitives in Model Context Protocol
Lessons in this section
- Tools
How to define MCP tools well: name, title, description, JSON Schema 2020-12 input schemas, atomic single-verb design, strict types, and annotations for side effects.
- Resources
The MCP resource model: URIs, names and MIME types, text and base64 blob contents, resource templates, common kinds of resources, and why reads must be read-only and deterministic.
- Prompts
MCP prompts: names, titles, descriptions and arguments; prompts/get messages with embedded resources; argument completion; safe interpolation; and prompts versus server instructions.