cast_call
Executes a read-only call to a deployed smart contract, returning function results without spending gas or changing state. Use it to query contract data via RPC.
Instructions
Read-only call to a deployed contract — no gas spent, no state change (cast call).
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": {
"to": "<to>",
"signature": "<signature>",
"rpcUrl": "<rpcUrl>"
},
"name": "cast_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Address of the contract to call | |
| args | No | Function arguments in order | |
| from | No | Sender address for the call | |
| rpcUrl | Yes | RPC URL of the network | |
| blockTag | No | Block to query at, e.g. "latest", "pending", or a number | |
| signature | Yes | Function signature, e.g. "balanceOf(address)(uint256)" |