Read Contract
read_contractCall any read-only contract function without a transaction or ABI file: give the signature with return types, e.g. balanceOf(address)(uint256) or getReserves()(uint112,uint112,uint32), plus arguments; returns decoded values.
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": {
"address": "<address>",
"signature": "<signature>"
},
"name": "read_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| block | No | latest | |
| chain | No | ethereum | |
| address | Yes | ||
| signature | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |