MCP & Protocol Testing / Quiz

Tool Definitions & JSON Schema

A tool's inputSchema is a JSON Schema and a promise. Test that the server keeps the promise, or the model will send garbage it accepts.

Difficulty
Medium
Format
Quiz
Points
150
Estimate
11 min

// MISSION BRIEF

Your Mission

Each MCP tool ships an inputSchema (JSON Schema) that declares its arguments. That schema is the contract between the model and the tool. This quiz covers reading it, validating against it, and the tests that catch a schema the server does not actually enforce.

Scoring: equal weight per question.

// FIRST CONTACT

Battle teaser

In a tool definition, what is inputSchema?

  1. AA JSON Schema object describing the tool's arguments (types, required fields, enums, defaults)
  2. BThe tool's return value
  3. CA regex for the tool name
  4. DA free-text description of the tool
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

mcpjson-schematoolscontract-testing