JSON-RPC · troubleshooting record
JSON-RPC -32602 Invalid params
-32602The method exists but its parameters are missing, of the wrong type, or outside the accepted range. For MCP tool calls, this is usually a schema mismatch between the model's arguments and the tool's inputSchema.
Symptoms
- Tool call fails with -32602 Invalid params.
- The model retries with a different argument shape but still fails.
- Some calls to a tool succeed while one optional or nested field fails.
Confirmed causes
These causes have a documented basis. They may not be the cause of your specific failure.
An argument does not match the tool's JSON Schema
MCP tool calls carry arguments that the server validates against its declared input schema.
A required field is absent or null
Required properties are not optional; null is not a substitute for a missing string.
The client serializes numbers or booleans as strings
A schema with a number or boolean type rejects a string value.
Possible causes
- The tool schema changed but the client cached an old version.
- A nested object is flattened incorrectly by the model.
- The server's validation is stricter than the schema it advertises.
What still needs verification
- The exact input schema returned by tools/list.
- The raw arguments in the failing request.
- Whether the server and client agree on the tool schema version.
Affected environments
Fixes
Compare arguments with the schema
- Inspect the schema for required fields, types, enums, and nested objects.
- Fix the request shape rather than silently coercing values on the server.
- Make the tool description name the required fields and units.
Refresh tool discovery
- Restart the client or reconnect the server to refresh the tool list.
- Remove stale cached schemas if the client supports it.
- Retest with a minimal valid argument set.
Verify the fix
- The raw arguments validate against the current input schema.
- The same tool call returns a normal result.
- Invalid input produces a clear error that names the offending field.
Paste the configuration into the Config Doctor. It runs in your browser, never uploads the file, and can show structural issues and safe fixes.
Why we believe this
- modelcontextprotocol.io/specification/2026-07-28/basic/index#error-codesOfficial documentation · checked Oct 23, 2026 · documented
The specification defines JSON-RPC error codes and MCP-specific error codes for the 2026-07-28 protocol version.