Developer Troubleshooting EngineInstant OS Fixes
MCP Error Decoder
Search exact error strings and stack traces from Claude Desktop, Cursor, and OpenAI Codex CLI. Inspect root causes and copy verified terminal fixes.
Category:
Protocol & SerializationMedium
JSON-RPC error -32602: Invalid params
Symptom
Server rejects tool invocation stating arguments do not match schema.
Root Cause
The AI model passed arguments with incorrect data types (e.g. string instead of integer or array), or omitted a required parameter defined in inputSchema.
Remediation & Quick Fix
Inspect the tool's inputSchema with tools/list and ensure all required fields match their declared types.
OS Diagnostic Commands:
mac
# Inspect tool schema via MCP inspector:
npx @modelcontextprotocol/inspectorwindows
# Inspect tool schema via MCP inspector:
npx @modelcontextprotocol/inspectorlinux
# Inspect tool schema via MCP inspector:
npx @modelcontextprotocol/inspectorVerified Configuration Example:
// Ensure payload arguments match required properties
{
"jsonrpc": "2.0",
"id": 12,
"method": "tools/call",
"params": {
"name": "query_database",
"arguments": {
"limit": 10 // Number, not string "10"
}
}
}