Skip to main content
Glama

Agent Data Hub

Block details (by number, hash or 'latest')

chain_block
Read-onlyIdempotent

Read one EVM block: number, hash, parent hash, timestamp, age, miner/proposer, transaction count, gas used/limit and utilization %, base fee (gwei) and size. Pass a block number, a 0x block hash, or latest/finalized/safe. 404 (not charged) if the block does not exist yet. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain (default base)
numberNoBlock number, 0x block hash, or latest / finalized / safe (default latest)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, openWorld and non-destructive, so the bar is lower; the description still adds real value with cost ($0.001 per call via x402), the daily free tier, and the "404 not charged" error behavior for blocks that don't exist yet. It does not mention rate limits beyond the free quota or pagination/response shape, keeping it out of 5 territory.

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 front-loaded sentences: payload fields first, then invocation forms, then error and pricing. Dense and mostly waste-free, though the field enumeration partially duplicates the schema while the `chain` parameter is left unmentioned in prose.

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 carries the return-value burden and does so by naming the fields an agent will receive. It also covers error semantics and cost, so an agent has everything needed to call it correctly across the supported chains.

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%, so the schema already documents both `chain` (with its enum and default base) and `number`. The description mostly restates the schema's accepted identifier forms and defaults rather than adding new semantics, so the baseline 3 applies.

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?

Opens with a specific verb+resource ("Read one EVM block") and immediately enumerates the returned fields (number, hash, parent hash, timestamp, miner, tx count, gas, base fee, size), which implicitly separates it from the narrower chain_block_number sibling. It never names a sibling or explicitly contrasts with one, so it stops short of a 5.

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?

It tells the agent which values are acceptable for the block identifier (number, 0x hash, latest/finalized/safe), which is useful invocation guidance, but gives no when-to-use versus alternatives and no exclusions (e.g., when to prefer chain_tx or chain_block_number). Usage is implied rather than directed.

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