Skip to main content
Glama

chain_block_header

Read-only

$0.005 via x402: the full header of any block — timestamp and age, transaction count, gas used vs limit with a utilization ratio and congested flag, base fee in gwei, miner and parent hash. /chain/block-number says WHERE the chain is; this says WHEN that block happened and how contested it was. Accepts a height or latest/finalized/safe. Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis.

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

Input Schema

NameRequiredDescriptionDefault
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis (default base)
numberNoBlock height (decimal or 0x hex) or latest|finalized|safe|earliest (default latest)
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
Behavior4/5

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

Annotations already declare read-only and open-world, and the description adds genuinely non-obvious behavior: a $0.005 x402 charge, the two-step payment handshake where the first call without x_payment returns terms, and the derived fields (utilization ratio, congested flag) that are computed rather than raw chain data. It does not discuss rate limits, failure modes, or what happens if payment is rejected, keeping it at 4.

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 dense sentences plus a chain list; the sibling differentiation and return-field enumeration are front-loaded after the price tag. Leading with '$0.005 via x402' spends the most prominent position on billing rather than on what the tool does, a minor structural choice, but no sentence is wasted.

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 carries the return-value burden and does so by naming every header field and its units (gwei, ratio, flag). For a 3-optional-parameter, read-only tool, that covers what an agent needs to call and interpret it; only error/payment-failure behavior is unaddressed.

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; the description goes beyond by noting the accepted selector forms (height or latest/finalized/safe) and listing the supported chains inline. The most valuable addition is the x_payment semantics (omit to receive price and terms), which the schema states more cryptically. Defaults are left to the schema, so it isn't a full 5.

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+resource ('the full header of any block') and enumerates exactly what is returned: timestamp/age, tx count, gas used vs limit with utilization and congested flag, base fee in gwei, miner and parent hash. It also explicitly separates itself from get_chain_block_number ('says WHERE the chain is; this says WHEN that block happened'), so an agent can distinguish it from the nearest sibling without opening schemas.

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?

Names the neighboring tool and gives a crisp decision rule (block-number for chain tip, this for header detail/contestedness). It also explains the payment workflow: omit x_payment to get price and terms on the first call. It stops short of explicitly stating when-not-to-use cases such as bulk reads (chain_batch_reads) or fee trend analysis (chain_fee_history), which would have earned a 5.

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.