Skip to main content
Glama

Agent Data Hub

Latest block number (Base, Ethereum, L2s)

chain_block_number
Read-onlyIdempotent

Latest block number, block hash, timestamp, age in seconds and tx count for one EVM chain or several at once (Base, Ethereum, Arbitrum, Optimism, Polygon, BSC, Avalanche, Gnosis, Base Sepolia; 'all' = 6 main chains). Use as a chain-head / liveness check or to anchor block ranges. 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_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain name, comma-separated list, or 'all' (default all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds real behavioral context beyond them: per-call pricing ($0.001 USDC on Base via x402), a 10-calls-per-day free tier, and the fact that 'all' resolves to 6 main chains rather than the 9 listed.

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 sentences, front-loaded with the returned fields and followed by the usage cue and cost. The chain enumeration is long but each name earns its place by preventing a wrong chain string; nothing is redundant.

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 only one optional parameter, no annotations gaps and no output schema, the description usefully compensates by enumerating the returned fields and the billing model. The only omission is any explicit routing rule against the sibling block-retrieval tools.

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 schema already documents the single 'chain' parameter, making 3 the baseline. The description earns above baseline by clarifying that the parameter accepts a comma-separated list and that 'all' means 6 named main chains, a detail the schema does not state.

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?

The description names a specific resource and its returned fields ('Latest block number, block hash, timestamp, age in seconds and tx count') and scopes it to 'one EVM chain or several at once'. That is clearly distinct from a block-lookup-by-number tool, though it never explicitly contrasts itself with the sibling chain_block.

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?

It gives concrete usage contexts: 'Use as a chain-head / liveness check or to anchor block ranges.' That is clear when-to-use guidance, but there are no explicit exclusions or named alternatives for the adjacent block-fetching tools.

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