Skip to main content
Glama

eth_call

Read-onlyIdempotent

chainpeek: Call a smart contract function read-only on Ethereum, Base or Robinhood Chain. For gas units use estimate_gas; for a raw storage slot use get_storage_at. Returns the raw ABI-encoded return data (result, result_bytes) of eth_call against to with your calldata at latest, pending, finalized or a block number; nothing is signed or sent. The result is not decoded (decode_calldata decodes calldata; the ABI is yours). A call that reverts is a 422 reverted (not charged); results over 32 kB are a 502. Old blocks need an archive node and may fail. Ethereum, Base and Robinhood only; read-only: nothing is signed or sent. RPC reads are cached up to 30 s. A bad address, hash, hex string, block or range is a 422 before any payment (not charged). Typically under 1 s. Price: USD 0.002. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/ethereum-rpc-reads-api.html

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": {
      "chain": "<chain>",
      "to": "<to>",
      "data": "<data>"
    },
    "name": "eth_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesContract (or account) to call.
dataYesABI-encoded calldata, 0x-hex with an even number of digits, at most 8 kB (4-byte selector + arguments; 0x18160ddd is totalSupply()).
blockNolatest (default), pending, finalized or a block number (older blocks need an archive node and may fail).
chainYesethereum, base or robinhood (Robinhood Chain, chain id 4663).

Output Schema

NameRequiredDescriptionDefault
toNo
noteNo
blockNo
chainNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
resultNo
is_emptyNo
selectorNo
result_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / block / default
      Removed value: -null
    • removedInput schema / properties / block / title
      Removed value: -"Block"
    • removedInput schema / properties / chain / title
      Removed value: -"Chain"
    • removedInput schema / properties / data / title
      Removed value: -"Data"
    • removedInput schema / properties / to / title
      Removed value: -"To"
    • removedInput schema / title
      Removed value: -"eth_callArguments"
  2. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"ethereum or base."New value: +"ethereum, base or robinhood (Robinhood Chain, chain id 4663)."
    • changedInput schema / properties / chain / enum
      Previous value: -[
      -  "ethereum",
      -  "base"
      -]New value: +[
      +  "ethereum",
      +  "base",
      +  "robinhood"
      +]
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources