Skip to main content
Glama

EVM Latest Block Lookup

evm_latest_block_lookup
Read-only

Retrieve the latest block number for Ethereum or Base using a single eth_blockNumber JSON-RPC call; live chain state may change between calls. USE WHEN: an agent needs the current chain height for Ethereum or Base as a synchronization, sequencing, or transaction-context reference. DO NOT USE WHEN: the agent needs block contents, transactions, wallet balances, gas prices, historical blocks, confirmations, or finality. Parameter semantics: chain accepts exactly ethereum or base and is case-sensitive. Returns chain, block_number as a decimal integer, and observed_at as a UTC timestamp.

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. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly=true, openWorld=true, idempotent=false; the description adds the reason behind non-idempotency ('live chain state may change between calls') and the single-RPC cost profile, which is real added context. It stops short of disclosing rate limits, error/failure behavior, or authentication requirements, so it is strong but not exhaustive.

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 purpose, then cleanly segmented into USE WHEN / DO NOT USE WHEN / parameter semantics, so an agent can scan it quickly. The closing sentence restating chain, block_number, and observed_at duplicates the existing output schema and is the one piece that does not earn its place.

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?

For a single-parameter read tool with full annotation coverage and an output schema, the description supplies everything else an agent needs: scope, exclusions, case sensitivity, volatility of the returned value. No material gap remains.

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 enum is already constrained, so the baseline is 3; the description goes further by stating the values are case-sensitive, a constraint the schema does not express. The only gap is that it does not say what happens on a case mismatch or invalid value.

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 ('Retrieve the latest block number') plus the exact mechanism ('single eth_blockNumber JSON-RPC call') and the supported chains. It is clearly distinguishable from siblings like evm_gas_price_lookup, evm_wallet_balance_lookup, and evm_transaction_hash_lookup.

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?

Provides an explicit USE WHEN clause (synchronization, sequencing, transaction-context reference) and an explicit DO NOT USE WHEN clause enumerating the alternatives' territory: block contents, transactions, balances, gas prices, historical blocks, confirmations, finality. Nothing is left to inference.

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