# `TMCP007` get_test with minimal fields The user shall be able to query a test by ID using the get_test tool. The response shall include all fields present in the test definition. :::{dropdown} Is a test for :open: :icon: check-circle-fill :color: primary [`MCP004` Get test by ID](/requirements/MCP004) ::: :::{dropdown} Automated in :open: :icon: check-circle-fill :color: success {fab}`python` [`test_get_simple_test`](https://github.com/agagniere/speky/blob/master/tests/test_mcp_server.py#L228) ::: :::{dropdown} Source :icon: file-code :color: info __Source file__: [`specs/mcp/test_04.yaml`](https://github.com/agagniere/speky/blob/master/specs/mcp/test_04.yaml) __Loaded from__: [`speky_mcp`](https://github.com/agagniere/speky/blob/master/specs/mcp/mcp.toml) ::: ## Initial state The expected state is the final state of [`TMCP003` Initialize the MCP server](/tests/TMCP003) ## Procedure ### Step 1 The client sends a `get_test` request for test `T01` ```json { "id": 2, "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "get_test", "arguments": {"id": "T01"} } } ``` ### Step 2 Verify response contains test details with all fields. T01 is a minimal test with only mandatory fields. ```json { "id": 2, "jsonrpc": "2.0", "result": { "structuredContent": { "category": "functional", "id": "T01", "long": "The first test, that validates the first requirement", "ref": [{"id": "RF01"}], "steps": [ {"action": "The only step"} ] } } } ```