# `TMCP046` least_tested_requirements filtered by category Call least_tested_requirements with a category filter and verify only requirements from that category appear :::{dropdown} Is a test for :open: :icon: check-circle-fill :color: primary [`MCP012` List requirements sorted by test coverage](/requirements/MCP012) ::: :::{dropdown} Automated in :open: :icon: check-circle-fill :color: success {fab}`python` [`test_filter_by_category`](https://github.com/agagniere/speky/blob/master/tests/test_mcp_server.py#L849) ::: :::{dropdown} Source :icon: file-code :color: info __Source file__: [`specs/mcp/test_12.yaml`](https://github.com/agagniere/speky/blob/master/specs/mcp/test_12.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 calls `least_tested_requirements` with category `non-functional` ```json { "id": 2, "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "least_tested_requirements", "arguments": {"category": "non-functional"} } } ``` ### Step 2 Verify only non-functional requirements appear, RF04 before RF03 ```json { "id": 2, "jsonrpc": "2.0", "result": { "structuredContent": { "requirements": [ {"id": "RF04", "category": "non-functional", "test_plans": 0, "automated_test_plans": 0}, {"id": "RF03", "category": "non-functional", "short": "Number 3", "test_plans": 2, "automated_test_plans": 1} ] } } } ```