TMCP022 list_references_to errors on unknown ID¶
The user shall receive a tool execution error when calling list_references_to with an ID that does not exist in the loaded specifications.
Is a test for
Automated in
Source
Source file: specs/mcp/test_07.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 calls list_references_to with a non-existent ID
{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "list_references_to",
"arguments": {"id": "NOTFOUND"}
}
}
Step 2¶
Verify a tool execution error is returned indicating the ID was not found
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"isError": true,
"structuredContent": {
"error": "Requirement NOTFOUND not found"
}
}
}