Core Primitives in Model Context Protocol

Lessons in this section

  1. 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.

  2. 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.

  3. Prompts

    MCP prompts: names, titles, descriptions and arguments; prompts/get messages with embedded resources; argument completion; safe interpolation; and prompts versus server instructions.