Skip to main content
Glama

chain_batch_reads

Read-only

$0.005 via x402: up to TEN on-chain reads for ONE payment, run in parallel — native balance, nonce, contract-code check, ERC-20 balance, block number and gas price in any combination. Reconciling a wallet normally costs one payment per read; this is the same data for a fraction of the calls and the latency. Per-read failures are reported individually with a partial flag, so a batch never claims success it did not have.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chain_batch_reads"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis (default base)
readsNoComma-separated ops, max 10: balance:0xADDR | nonce:0xADDR | code:0xADDR | erc20:0xTOKEN:0xWALLET | blocknumber | gas
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnly and openWorld; the description goes well beyond by disclosing the price point ($0.005 via x402), the hard cap of ten reads, parallel execution, and — critically — that per-read failures are reported individually with a partial flag so a batch never overstates success. That partial-success contract is exactly the kind of behavior an agent cannot get from the annotations.

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?

Three sentences, front-loaded with price, batch limit, and parallelism, so the key constraints appear first. The middle sentence leans slightly promotional ('a fraction of the calls and the latency') where a plain statement of the cost tradeoff would carry the same information.

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 no output schema, the description still covers the failure semantics (per-read reporting plus a partial flag), which is the most important return-value contract for a batch tool. It does not describe the shape of successful results — ordering, or per-read value formatting — leaving a modest gap for a no-output-schema tool.

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 all three parameters including the comma-separated op syntax and x_payment handshake are already documented in the schema. The description adds only the 'in any combination' framing and the per-batch rather than per-read pricing model, which is mildly useful for deciding how to pack reads but largely restates the schema.

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 ('up to TEN on-chain reads for ONE payment, run in parallel') and enumerates exactly which reads are included (native balance, nonce, code check, ERC-20 balance, block number, gas price). This enumeration effectively separates it from the single-purpose siblings like chain_native_balance and get_chain_nonce without needing to name them.

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?

The cost comparison ('reconciling a wallet normally costs one payment per read; this is the same data for a fraction of the calls and the latency') gives clear context for when batching pays off. It stops short of an explicit exclusion such as 'use the single-read tools when you need only one value,' so the agent must infer the when-not case.

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.