Skip to main content
Glama

EVM block

evm_block
Read-onlyIdempotent

Use when you need a block header on Base, Ethereum, Arbitrum, Polygon or Optimism: latest or a given number, with hash, parent, timestamp, miner, gas used/limit. Returns the paid x402 request for your input (GET /evm/block, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Block header only; for one transaction use evm_transaction or evm_receipt. First call each day returns the data itself, free; later calls return the paid request.

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": "evm_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain; default basebase
numberNoDecimal or 0x-hex block number, or latest (default); a block the node does not have yet is refused before any chargelatest

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / number / description
      Previous value: -"Block number (decimal or 0x hex) or latest"New value: +"Decimal or 0x-hex block number, or latest (default); a block the node does not have yet is refused before any charge"
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare safety properties (readOnly, idempotent, non-destructive); the description adds the non-obvious economics and flow: it returns a paid x402 request at $0.001 per call, the first call each day is free and returns data directly, and invalid input is refused before any charge. These are behavioral facts an agent cannot infer from structured fields and that materially change how it invokes the tool.

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 primary use case is front-loaded and every sentence carries information (scope, output fields, payment flow, exclusions, free-first-call rule). It is dense and slightly packed with pricing/flow detail in the middle, but nothing is redundant or purely decorative.

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 read-only lookup with no output schema, the description covers the returned fields, the invocation mechanism (call the x402/MPP URL), cost and free-tier behavior, and the failure mode. Nothing an agent needs to call it correctly and understand the paywall flow 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%, so the baseline is 3. The description still adds meaning: 'latest or a given number' clarifies the number parameter's accepted forms at a high level, and 'a block the node does not have yet is refused before any charge' explains an edge case the schema only hints at. It does not restate the enum default, which is fine since the schema covers that.

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 ('a block header on Base, Ethereum, Arbitrum, Polygon or Optimism') plus the returned fields (hash, parent, timestamp, miner, gas used/limit). It explicitly distinguishes itself from evm_transaction and evm_receipt ('Block header only; for one transaction use...'), so an agent can separate it from 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 'Use when you need a block header...' and names the alternatives for the transaction-level case, giving both inclusion and exclusion conditions. The agent knows both when to pick this tool and when to pick another.

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