Skip to main content
Glama

On-chain reads on Base or Arc (paid, $0.002 flat)

rpc_read
Read-only

PAID over x402 inside this tool call ($0.002 USDC flat on Base, Polygon or Arc): latest block, native or ERC-20 balance, or a transaction's details. No key, no account. Call once without payment to get the x402 PaymentRequired, then call again with the signed payment in _meta["x402/payment"].

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": {
      "op": "<op>"
    },
    "name": "rpc_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYesWhat to read: block, balance, or tx.
hashNoTransaction hash (tx op).
chainNoChain to read (default base).
tokenNoOptional ERC-20 token address (balance op); omit for native.
addressNoWallet address (balance op).

Output Schema

NameRequiredDescriptionDefault
opNoblock, balance, or tx
_paidNox402 receipt
chainNoChain read: base or arc
symbolNoToken symbol, when op=balance
balanceNoBalance in smallest units, when op=balance
chainIdNoChain id
balanceFormattedNoBalance in whole units, when op=balance

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, but the description adds information they cannot carry: the call is paid at a flat $0.002 USDC via x402, requires no key or account, and needs a two-call handshake with the signed payment in _meta["x402/payment"]. That is real behavioral value for an agent deciding whether to spend money. It omits what happens if the second call fails or whether a failed read is still charged.

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?

Two sentences, front-loaded with the paid/cost qualifier and the list of readable resources, then the procedural handshake. Dense but every clause carries operational weight; the only weak spot is the run-on parenthetical bundling cost, chains, and the description of what can be read.

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

Completeness4/5

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

With an output schema present, the description need not explain return shapes, and it adequately covers the non-obvious part of this tool: the payment protocol and its cost. The remaining gaps are the chain-list mismatch with the schema enum and no statement of payment failure/refund behavior, which matter for a tool that charges per call.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter (op, hash, chain, token, address) is already documented with patterns and enum values, and the description adds little beyond restating the three readable resources. Worse, it says payment is available on 'Base, Polygon or Arc' while the schema's chain enum only permits base and arc, creating ambiguity about a supported chain on the money-handling dimension.

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

Purpose4/5

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

The description names three concrete read operations (latest block, native or ERC-20 balance, transaction details) and the resource domain (Base/Arc on-chain data), so an agent can immediately tell this is a chain-state reader rather than a bridge, gas, or leads tool. It stops short of naming a sibling such as chain_logs to draw the boundary for log queries, so differentiation is only partial.

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

Usage Guidelines3/5

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

Usage guidance exists only for the payment handshake: 'call once without payment to get the x402 PaymentRequired, then call again with the signed payment.' There is no statement of when to prefer this tool over chain_logs or payment_readiness, and no guidance on which op to pick given a goal. The correct invocation flow is implied but tool selection is left to inference.

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.