Skip to main content
Glama

EVM block height

evm_block

Use when an agent has to decide whether what it just read on-chain is fresh, or whether a node is behind: the latest block height, its timestamp and how many seconds old the chain head is. Do not use for one transaction's outcome (/v1/evm/tx) or to compare several chains at once (/v1/evm/chains does all of them in one call). Flat price, no rate limits, no API key, no account. $0.005 per call, paid over x402 (USDC).

Input Schema

NameRequiredDescriptionDefault
chainNobase | ethereum | polygon | arbitrum | optimism.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

No annotations exist, so the description must carry the whole burden — and it does disclose cost ($0.005/call), payment rail (x402/USDC), absence of rate limits, API keys, and accounts, which is exactly the operational context an agent needs before calling. It stops short of saying what happens when 'chain' is omitted (default chain?) and gives no indication of failure behavior for an unsupported chain.

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 decision context and the returned values, then the exclusions, then the commercial terms — a sensible ordering with no filler sentences. The pricing/payment sentence is dense but earns its place for an agent that must budget calls.

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 usefully names the three returned values (height, timestamp, head age). For a one-optional-param read tool that is nearly sufficient; the only real gap is the default-chain behavior when 'chain' is omitted.

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?

Schema coverage is 100% and the enum-like value list is already in the schema, so the description adds little on the single optional 'chain' parameter. It implies single-chain scope via the contrast with evm_chains but never states the default chain when the argument is left out.

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 resource and returns: latest block height, its timestamp, and chain-head age. It also draws an explicit boundary against evm_tx (single transaction outcome) and evm_chains (multi-chain comparison), so an agent can separate it from its closest siblings 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with the decision it supports ('decide whether what it just read on-chain is fresh, or whether a node is behind') and then names two alternatives with the conditions that select them. Both when-to-use and when-not-to-use are stated explicitly.

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