Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Latest block and its age on five EVM chains ($0.003)

get_chain_head

Fetch the latest block head for Base, Ethereum, Arbitrum, Optimism, and Polygon in one call, returning number, hash, timestamp, age, tx count, gas, and base fee.

Instructions

Latest block on Base, Ethereum, Arbitrum, Optimism and Polygon in one call: number, hash, timestamp, age in seconds, transaction count, gas used and limit, base fee. Read live with RPC failover; per-chain status. Not charged for bad input or when every chain fails. No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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

Input Schema

NameRequiredDescriptionDefault
chainsNoComma list, any of: base,ethereum,arbitrum,optimism,polygon. Default: all five.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Substantial behavior is disclosed beyond the annotations: live RPC with failover, per-chain status reporting, no charge for bad input or total failure, no API key but x402 payment of $0.003 USDC from X402_PRIVATE_KEY on Base. This explains the non-read-only/non-idempotent annotations (the call moves funds) rather than contradicting them.

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-loaded with the resource and returned fields, and the payment/auth facts are packed in tightly. Minor redundancy: the no-charge-on-failure rule is stated twice, and the parenthetical price repetition at the end could be trimmed.

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?

For a one-optional-param tool with no output schema, the description covers return fields, default scope, failover behavior, and payment terms. It stops short of describing the response's per-chain structure or what 'per-chain status' looks like on partial failure, but nothing essential is missing for correct invocation.

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?

The only parameter (chains) is fully documented in the schema, including the allowed comma list and the all-five default. The description repeats the chain set but adds no syntax or edge-case detail (e.g. case sensitivity, unknown chain handling), so baseline 3 applies.

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 names a specific verb and resource ('Latest block on Base, Ethereum, Arbitrum, Optimism and Polygon in one call') and enumerates the returned fields (number, hash, timestamp, age, tx count, gas used/limit, base fee). An agent can tell immediately this is a multi-chain head-block reader, distinct from single-transaction or gas-price siblings.

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?

Usage is implied by the content ('latest block ... in one call'), and billing/auth context is given, but the description never says when to prefer this over siblings such as get_transaction or get_gas_prices, nor any when-not condition. An agent must infer the selection criteria itself.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.