TMCP004 get_requirement with minimal fields

Query a requirement with minimal fields and verify the response

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

Call get_requirement tool with ID RF01

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

Step 2

Verify response contains requirement details:

  • id: RF01

  • category: functional

  • long: “The first requirement”

  • tested_by: T01

  • comments: a single comment

  • Empty or absent short, tags, properties, client_statement, ref and referenced_by fields

{
  "id": 2,
  "jsonrpc": "2.0",
  "result": {
    "structuredContent": {
      "category": "functional",
      "comments": [
        {
          "date": "01/01/2025",
          "external": false,
          "from": "Some Person",
          "text": "The first comment"
        }
      ],
      "id": "RF01",
      "long": "The first requirement",
      "tested_by": [{"id": "T01"}]
    }
  }
}