TMCP006 get_requirement errors on unknown ID

The user shall receive a tool execution error when requesting a requirement ID that does not exist in the loaded specifications.

Is a test for
Automated in
Source

Source file: specs/mcp/test_03.yaml

Loaded from: speky_mcp

Initial state

The expected state is the final state of TMCP003 Initialize the MCP server

Procedure

Step 1

The client sends a get_requirement request for non-existent requirement NOTFOUND

{
  "id": 2,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "get_requirement",
    "arguments": {"id": "NOTFOUND"}
  }
}

Step 2

Verify response contains a tool execution error (not a protocol error). The error message indicates the requirement was not found.

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "isError": true,
    "structuredContent": {
      "error": "Requirement NOTFOUND not found"
    }
  }
}