Skip to main content
Glama

SiteCheck Crypto & Finance

zkSync Era rollup batches from the public block explorer

crypto_zksync_era_batches
Read-only

zkSync Era rollup batches from the public block explorer API: the newest N batches (1 to 20) with batch number, time, status (sealed, committed, proven, executed), L1 and L2 transaction counts, and the chain ids where each step was posted. Hyperchain (other zkSync chains) data is not included. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": "crypto_zksync_era_batches"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many of the newest batches, 1 to 20 (default 5)

Output Schema

NameRequiredDescriptionDefault
countNo
sourceNo
batchesNo
checkedAtNo
l2TxTotalNo
latestBatchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond readOnlyHint/openWorldHint by disclosing the data source (public block explorer API), the enumeration of possible status values, the coverage limit (Hyperchain excluded), and the commercial terms: $0.002 per successful call via x402 USDC payment and no charge on failure. Cost and payment/auth requirements are exactly the context annotations cannot convey.

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-loads the resource and scope, then the returned fields, then pricing — a sensible order with no filler sentences. The field enumeration is dense but each item tells the agent something about the payload, and the price clause is short and clearly separated.

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 an output schema present, the description need not explain return values, and it still covers the essentials an agent needs: chain scope, exclusions, limit bounds, status vocabulary, and per-call cost. Nothing material is missing for a single-optional-parameter read 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 description coverage is 100% and the single parameter already documents '1 to 20 (default 5)'; the description restates the same range and default without adding syntax, ordering, or edge-case behavior. Baseline 3 is appropriate since the schema does all the work here.

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?

Names the specific resource (zkSync Era rollup batches) and enumerates exactly what each record carries (batch number, time, status, L1/L2 tx counts, chain ids), so the agent knows this is a chain-scoped batch listing rather than a generic block tool. It also draws a boundary by excluding Hyperchain data. It stops short of naming a sibling (e.g. an Arbitrum batch tool) that would complete the differentiation.

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?

Implies usage via 'newest N batches (1 to 20)' and explicitly excludes Hyperchain/other zkSync chains, which is a useful scope restriction. However, there is no explicit statement of when to pick this tool over the sibling batch/block tools, so routing must be inferred from the chain name alone.

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