MCP & Protocol Testing / Quiz

Resources, Templates, Prompts

@mcp.resource URIs, {placeholder} templates that map to function parameters, @mcp.prompt, and the tool-vs-resource judgment call.

Difficulty
Easy
Format
Quiz
Points
100
Estimate
8 min

// MISSION BRIEF

Your Mission

Tools get the headlines, but MCP servers ship two more primitives: resources (URI-addressed data) and prompts (reusable message templates). FastMCP wraps both in decorators, and choosing the right primitive is an API-design decision testers should be able to defend.

Six questions. Speed bonus active.

// FIRST CONTACT

Battle teaser

@mcp.resource('config://app') registers:

  1. AA cron job that runs on a schedule
  2. BA REST endpoint at /config/app
  3. CA write handler for the app's config file
  4. DRead-only data addressed by a URI, computed by the function when a client reads that resource, not invoked as an action like a tool
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

fastmcpresourcespromptsmcp