Skip to main content
Glama

EVM Latest Block Lookup

evm_latest_block_lookup
Read-only

Get latest Ethereum or Base block number via one eth_blockNumber JSON-RPC call; live state may change between calls. USE WHEN: needing chain height for sync, sequencing, or tx context. DO NOT USE WHEN: needing block data, transactions, wallet balances, gas prices, history, confirmations, or finality. For chain, use exactly ethereum or base (case-sensitive). Returns chain, block_number (decimal int), and observed_at (UTC timestamp).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chain": "ethereum"
    },
    "name": "evm_latest_block_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM network to query for the latest block number.

Output Schema

NameRequiredDescriptionDefault
chainYesEVM network queried.
observed_atYesUTC timestamp of the query.
block_numberYesLatest block number as a decimal integer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "chain": "ethereum"
      +  }
      +]
  2. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, open-world, and idempotentHint=false; the description reinforces the non-idempotency with a reason ('live state may change between calls') and discloses the cost profile of a single JSON-RPC call. It does not cover error/failure behavior or rate limits, so it stops short of a 5.

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

Conciseness5/5

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

Front-loaded with the verb and resource, then usage gating, then the chain constraint, then the return shape. Every clause carries information; no filler or restatement of the title.

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?

Though an output schema exists, the description briefly names the returned fields (chain, block_number, observed_at), which is compact and consistent rather than redundant. For a one-parameter read, nothing an agent needs to invoke it correctly is missing.

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% and the single enum parameter is already documented, so baseline would be 3. The description adds a constraint the schema does not state explicitly in prose: values must be exactly 'ethereum' or 'base' and are case-sensitive, which prevents a real failure mode.

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 verb and resource ('Get latest Ethereum or Base block number') plus the exact mechanism ('one eth_blockNumber JSON-RPC call'), which no sibling provides. The DO NOT USE list (block data, transactions, balances, gas prices, history, confirmations, finality) actively carves it apart from the neighboring lookup tools.

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?

Explicit USE WHEN (chain height for sync, sequencing, tx context) and DO NOT USE WHEN sections give both the positive trigger and the exclusion set. An agent can route between this and evm_gas_price_lookup or evm_transaction_hash_lookup without opening either schema.

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