Skip to main content
Glama

x420_chain_block

Read-onlyIdempotent

Multichain block header: Block header by number or tag (latest, finalized, safe) on base, ethereum, arbitrum, optimism, polygon, avalanche, bsc, base-sepolia: hash, time, miner, gas used and limit, base fee, transaction count. Source: publicnode JSON-RPC. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.001 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: number, hash, time, gas_used, base_fee_gwei, transaction_count.

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

Input Schema

NameRequiredDescriptionDefault
blockNolatest, finalized, safe, or a block number (default latest)
networkNoone of base, ethereum, arbitrum, optimism, polygon, avalanche, bsc, base-sepolia (default base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds material behavior beyond that: it names the data source (publicnode JSON-RPC), the price ($0.001 USDC per call via x402 on Base), and the critical fact that the hosted tool does NOT return the deliverable but only payment instructions. That said, it omits failure behavior for unsupported chains/blocks, so it is not perfect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose, source, pricing, and payment flow are usefully front-loaded, but the sentence 'Not professional, legal, insurance, engineering, medical, financial or tax advice' is boilerplate that does not help invoke the tool. The payment paragraph and the deliverable field list are both justified, but the entry is long and mixes purpose, commerce, and protocol mechanics in one unsegmented block.

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?

For a paid, network-bound read tool with no output schema, the description covers the source, the price and network of payment, the exact x402 handshake, the fallback local server, and the delivered JSON fields. An agent has enough to call it, interpret the 402 response, and know what it will receive.

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?

Both parameters have 100% schema description coverage (block: latest/finalized/safe/number; network: the chain list with default base). The description restates those same tags and chains and adds nothing new, such as what happens with an invalid network or a pruned/unknown block.

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?

The description gives a specific verb and resource ('Block header by number or tag') plus the exact scope: supported chains (base, ethereum, arbitrum, ...), accepted tags (latest, finalized, safe), and returned fields (hash, time, miner, gas used/limit, base fee, tx count). An agent can distinguish this from sibling x420_chain_tx or x420_chain_rpc without opening any schema.

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?

The description gives strong operational guidance on how to complete a paid call (GET the url, read PAYMENT-REQUIRED from the 402, retry with PAYMENT-SIGNATURE, or run the local x420-mcp server). But it never says when to prefer this over the sibling tools (e.g. x420_chain_rpc for raw RPC or x420_chain_tx for a transaction), and it gives no selection criteria beyond the resource it returns.

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