Skip to content

Commit 5732219

Browse files
committed
Invalid tool name should be "invalid params," not "method not found"
1 parent 3eefd6d commit 5732219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/spec/tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ Example protocol error response for an unknown tool:
305305
"jsonrpc": "2.0",
306306
"id": 4,
307307
"error": {
308-
"code": -32601,
309-
"message": "Method not found",
308+
"code": -32602,
309+
"message": "Invalid params",
310310
"data": {
311311
"reason": "Unknown tool: invalid_tool_name"
312312
}

0 commit comments

Comments
 (0)