TMCP010 get_test errors on non-test ID

The user shall receive a tool execution error when requesting an ID that exists but is a requirement, not a test.

Is a test for
Automated in
Source

Source file: specs/mcp/test_04.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_test request for requirement RF01

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

Step 2

Verify response contains a tool execution error indicating that RF01 is a requirement, not a test.

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "isError": true,
    "structuredContent": {
      "error": "RF01 is a requirement, not a test"
    }
  }
}