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?
- AA JSON Schema object describing the tool's arguments (types, required fields, enums, defaults)
- BThe tool's return value
- CA regex for the tool name
- DA free-text description of the tool
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
mcpjson-schematoolscontract-testing