Skip to main content
Glama

chain_block_number

Read-only

Latest block number — Latest block number, hash and timestamp for an EVM chain (head freshness check). Chains: base (default), ethereum, arbitrum, optimism, polygon via chain=. Price: $0.001 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chain": "<chain>"
    },
    "name": "chain_block_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely new operational context: it is a paid call costing $0.001 USDC on Base via x402, which the agent must know before invoking. It also enumerates what is returned, which annotations do not cover.

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?

The definition is compact and front-loads the capability before the chain list and price. The opening 'Latest block number — Latest block number, hash and timestamp' redundantly restates the tool name, costing a few words, but the rest earns its place.

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 burden of describing returns, and it does so (number, hash, timestamp). It also discloses the payment requirement. The only residual gap is that it does not reconcile the schema's required chain field with its claim that base is the default.

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%, but the schema's only hint for the chain parameter is the literal string 'base', which reads like a default value rather than an enumeration. The description compensates by listing the five valid chains (base default, ethereum, arbitrum, optimism, polygon) and the chain= syntax, adding real meaning beyond the schema.

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 states a specific verb and resource: it returns the latest block number, hash and timestamp for an EVM chain. The parenthetical 'head freshness check' clarifies the intent, which distinguishes it from the sibling chain_block (block lookup). It does not explicitly name that sibling, so it falls just 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?

The phrase '(head freshness check)' implies the use case: confirm the chain tip is current. There is no explicit when-not guidance and no named alternative such as chain_block for querying a specific historical block, so selection still requires inference from sibling names.

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