debug_call
Simulate contract calls without sending a transaction to catch revert reasons, out-of-gas, and division-by-zero errors before spending gas.
Instructions
Simulate a contract call (eth_call) without sending a transaction. Surfaces revert reasons, out-of-gas, division-by-zero, and other errors BEFORE you spend gas. Great for debugging Beat() and other state-changing functions.
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": {
"contract": "<contract>",
"function_sig": "<function_sig>"
},
"name": "debug_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Function arguments as strings (will be auto-encoded) | |
| value | No | ETH/PLS value to send (in wei) | |
| contract | Yes | Contract name or address | |
| from_address | No | Simulate as if calling from this address | |
| function_sig | Yes | Function signature, e.g. 'Beat()' or 'transfer(address,uint256)' |