Quiz 4 Question 19 of 20

A workflow automation platform implements an MCP server that exposes tools to Claude for managing production infrastructure. The MCP tool schema for restart_service is: {"name": "restart_service", "description": "Restarts a production service", "inputSchema": {"service_name": {"type": "string"}}}. During an incident response, an operator prompts Claude to 'restart the payment service.' Claude calls restart_service({"service_name": "payment-service"}) correctly. Later, a different operator asks Claude to 'fix the slow database.' Claude calls restart_service({"service_name": "database"}) — a dangerous action that causes a production outage. What MCP schema design would have constrained Claude's tool use to safer choices?

Select an answer to reveal the explanation.

Motivation