Skip to main content
Glama

chain_multicall

Read-only

Batch contract reads (multicall) — Run up to 20 read-only eth_calls in one request: calls = to:calldata items separated by commas; optional block (latest or a number). Returns raw hex per call plus best-effort uint/address/bool/string decoding and revert reasons. Chains: base, ethereum, arbitrum, optimism, polygon. Price: $0.003 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>",
      "calls": "<calls>"
    },
    "name": "chain_multicall"
  }
}

Input Schema

NameRequiredDescriptionDefault
callsYes0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913:0x95d89b41,0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913:0x313ce567
chainYesbase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the 20-call cap, the exact calls encoding (to:calldata comma-separated), the block parameter options, the return shape (raw hex plus best-effort decoding and revert reasons), supported chains, and even the per-call price ($0.003 USDC on Base via x402). The readOnly/openWorld annotations only confirm safety; the description adds the operational detail an agent needs.

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?

A single dense paragraph that front-loads the core purpose and cap before moving into format, return values, chains, and price. Every clause carries information, though the semicolon-chained packing of five distinct facts makes it slightly harder to scan than a short bulleted structure would be.

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?

There is no output schema, and the description compensates by describing both raw hex output and the best-effort decoding plus revert reasons. Combined with the allowed chains and the batching cap, nothing an agent needs in order to invoke this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains that calls is a comma-separated list of to:calldata pairs and that block accepts "latest" or a number, which the schema only illustrates by example. No further syntax edge cases (e.g. malformed entries) are covered.

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 ("Batch contract reads (multicall)") and quantifies scope ("up to 20 read-only eth_calls in one request"), which immediately distinguishes it from the single-call sibling chain_call. An agent knows exactly what the tool does without opening the schema.

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?

Clear usage context: use it to batch multiple read-only calls, with a stated cap of 20 and a note that block is optional. It stops short of explicitly naming chain_call as the alternative for single reads or stating when not to batch, so it is strong but not fully routable guidance.

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