Skip to main content
Glama

chain_rpc

Read-only

EVM JSON-RPC read proxy (5 chains) — Run any read-only Ethereum JSON-RPC method on base, ethereum, arbitrum, optimism or polygon without an RPC key or account: eth_getBalance, eth_call, eth_getBlockByNumber, eth_getTransactionReceipt, eth_getTransactionByHash, eth_getProof, eth_feeHistory, eth_getStorageAt, eth_estimateGas and 15 more. chain = name or chain id (default base); method = JSON-RPC method (required); params = JSON array or a simple comma list (e.g. 0xADDRESS,latest). Decimal block numbers are hex-encoded for you, the block tag defaults to latest, and quantities also come back as decimal (balances formatted in ETH/POL, gas prices in gwei). Automatic fallback across publicnode, dRPC and 1RPC. Write methods (eth_sendRawTransaction, signing) and eth_getLogs are refused. RPC errors such as execution reverted return 422 and null results 404 - not charged. Price: $0.002 USDC (Base, via x402).

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>",
      "method": "<method>",
      "params": "<params>"
    },
    "name": "chain_rpc"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
methodYeseth_getBalance
paramsYes0x4200000000000000000000000000000000000006,latest

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/openWorld/non-destructive annotations, it discloses the provider fallback chain (publicnode, dRPC, 1RPC), the refusal of write and eth_getLogs calls, the 422-on-revert / 404-on-null error model, that failures are not charged, and the $0.002 x402 price. The only gap is that it does not describe rate limits, per-chain differences, or response envelope shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and constraints, then parameter and pricing details; nearly every clause adds information. It is a single dense run-on paragraph, and the ten-method enumeration followed by 'and 15 more' is slightly padded, but nothing is genuinely wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by explaining return formatting — decimal quantities, balances in ETH/POL, gas prices in gwei — plus the error contract and cost model, which is what an agent needs to call and interpret results correctly. The minor tension between 'default base' and chain being a required schema field is the only loose end.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only contains placeholder example values ('base', 'eth_getBalance', '0x...,latest'), so the description carries the real semantics: chain accepts a name or chain id with a base default, method is required, and params is either a JSON array or comma list. It further documents automatic hex encoding of decimal block numbers and the latest block-tag default, which is meaning the schema does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — a read-only EVM JSON-RPC proxy across five named chains — and enumerates representative methods (eth_getBalance, eth_call, eth_getProof, etc.), which makes it immediately distinguishable from siblings like chain_call, chain_balances, or chain_block that wrap a single method.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operating context: no RPC key or account needed, chain defaults to base, write/signing methods and eth_getLogs are refused, and errors are surfaced as 422/404 rather than silently charged. It does not explicitly route the agent to a specialized sibling (e.g. use chain_balances instead of eth_getBalance), so guidance on alternatives is implicit rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources