Skip to main content
Glama

Parallax Protocol

Call contract (read-only)

call_contract
Read-onlyIdempotent

Runs a read-only eth_call against a contract and decodes the result. Nothing is signed or sent: state changes are discarded. Give either raw "data" (0x-hex calldata), or "function" plus "args":

  • function is a name ("balanceOf") resolved against "abi" (a JSON ABI you pass) or, when abi is omitted, the contract's verified ABI from the explorer; or a full signature such as "balanceOf(address) returns (uint256)", which needs no ABI.

  • args is a JSON array: integers as decimal strings (or 0x-hex), addresses and bytes as 0x-hex, arrays as arrays, tuples as objects or arrays. Optional: from, value_wei, and block (number or hash, for historical state on an archive node). Returns the raw return data and, when an ABI is known, the decoded values. A revert returns its reason (untrusted) instead. Example: {"to": "0xd106…a214", "function": "balanceOf(address) returns (uint256)", "args": ["0x45a1…0248"]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYescontract address
abiNocontract ABI as a JSON string; when omitted the explorer's verified ABI is used
argsNofunction arguments as a JSON array; big integers as decimal strings
dataNoraw 0x-hex calldata; alternative to function+args
fromNosender address (optional)
blockNoblock number, hash or "latest" (default)
functionNofunction name resolved via abi or the verified ABI, or a full signature such as "balanceOf(address) returns (uint256)"
value_weiNoLAX to send with the call, in wei (decimal)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.