Skip to main content
Glama

Hearth: x402 Pay-Safety & Discovery

evm_block

Read-only

Latest block or block by number. Block number, timestamp, hash, tx count, gas used/limit and base fee for the latest (or given) block on Base, Ethereum, Arbitrum or Optimism. Deterministic, no LLM. Example output: {"chain":"base","number":1,"hash":"0x…","timestamp":1700000000,"iso":"2026-01-01T00:00:00.000Z","txCount":100,"gasUsed":"1","gasLimit":"1","baseFeeGwei":"0.01"}. Price: $0.001 USDC on Base via x402 (pass the payment in _meta["x402/payment"]).

Input Schema

NameRequiredDescriptionDefault
chainNoChain: base (default), ethereum, arbitrum, optimism
numberNoBlock number (default latest)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, the description adds materially new behavior: deterministic output with no LLM involvement, a concrete price ($0.001 USDC on Base), and the exact payment plumbing (_meta["x402/payment"]). These are things an agent must know before calling and cannot get from annotations or schema. It does not cover failure behavior for invalid block numbers.

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?

Purpose is front-loaded in the first sentence, followed by return fields, then payment terms. The embedded example JSON is verbose but justified since there is no output schema. Every sentence carries information; no filler.

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, including a full sample response object (chain, number, hash, timestamp, iso, txCount, gasUsed, gasLimit, baseFeeGwei) is the right compensation, and the paid-call mechanics are spelled out. Minor gaps remain around error handling and what 'deterministic, no LLM' implies for caching, but nothing blocking prevents a correct call.

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%, so both parameters (chain enum, block number) are already fully documented in the schema. The description restates the chain list and the 'latest' default without adding format or edge-case meaning. Baseline 3 applies.

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?

Opening sentence states a specific resource and retrieval mode (latest block or by number), and the second sentence enumerates exactly what is returned across four named chains. It reads clearly as a block-fetch tool, though it never explicitly distinguishes itself from the sibling evm_gas, which covers overlapping gas/base-fee territory.

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?

Usage is only implied: 'latest block or block by number' plus the default of 'latest'. There is no statement of when to prefer this over evm_gas, base_tx_status, or ai_tx_explain, and no exclusion conditions. An agent must infer the routing decision from sibling names alone.

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