diagnose_soroban_error
Decode Soroban host error strings into root cause, explanation, and suggested fix, optionally resolving custom contract error names.
Instructions
Decode a Soroban host error string (e.g. "HostError: Error(Contract, #4)" or "Error(Storage, MissingValue)") into root cause, explanation, and suggested fix. Optionally resolves custom contract error names.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"error_message": "<error_message>"
},
"name": "diagnose_soroban_error"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Optional network override (defaults to configured STELLAR_NETWORK). | |
| contract_id | No | Optional contract ID (C...) to look up #[contracterror] enum names | |
| error_message | Yes | Raw Soroban error string |