Skip to content

Validation Rules and Exit Codes

Andrew Paolucci edited this page Nov 27, 2026 · 1 revision

Validation Rules and Exit Codes

CLI Exit Codes

Exit Code Meaning
0 Command succeeded
1 Runtime, policy refusal, or downstream execution error
2 Invalid CLI flag or argument syntax
130 Interrupted by Ctrl+C (SIGINT)

MCP JSON-RPC Error Codes

  • -32700: Parse error
  • -32600: Invalid JSON-RPC 2.0 request
  • -32601: Unknown tool or method
  • -32602: Invalid parameters
  • -32003: Policy refusal (e.g., attempting to call a mutating tool via guap_call_readonly)

Clone this wiki locally