Commit c7df85c
committed
[Server] Return invalid-params for unknown tool in tools/call
An unknown tool name is an invalid parameter of the tools/call request, not a missing JSON-RPC method: the tools/call method exists, only its `name` argument does not resolve. Return -32602 (Invalid params) to match the argument-validation path in the same handler, which already reports invalid input for tools/call as -32602.1 parent 43815e3 commit c7df85c
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- src/Server/Handler/Request
- tests/Unit/Server/Handler/Request
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments