Skip to main content
Glama

evm block by time

evm_block_by_time
Read-only

Which block was the chain on at a given moment: give a date-time or unix timestamp and get the last block mined at or before it, with its exact time and hash and the first block after it. Use it to turn "balance on 1 November" or "events since yesterday" into block numbers for other calls. Base, Ethereum, Arbitrum, Optimism, Polygon. $0.003. Costs $0.003 USDC per call (x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "time": "<time>"
    },
    "name": "evm_block_by_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeYesISO date-time or unix seconds
chainNobase (default), ethereum, arbitrum, optimism, polygon

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses the inclusive 'at or before' boundary rule, what each result contains, the supported chains, and a per-call price with the x402 payment mechanism. That is exactly the extra context an agent needs before spending money on a call.

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 core behavior is front-loaded and vivid in the first sentence, and the chain list and use case follow logically. The pricing is stated twice ('$0.003' and 'Costs $0.003 USDC per call'), which is one redundant fragment in an otherwise tight definition.

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 carries the return-shape burden and does so by naming the block, its time and hash, and the following block. Minor gaps remain, such as behavior for timestamps before a chain's genesis block, but nothing essential for correct invocation is missing.

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 are already documented in the input schema, including the default chain. The description adds the semantic of the 'at or before' block choice, but that is return-shape semantics rather than new meaning for the time or chain inputs; baseline 3 is appropriate.

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?

The description opens with a concrete framing question and then states the exact operation: give a date-time or unix timestamp, get the last block mined at or before it. It also names the output (exact time, hash, and the first block after it), which makes the tool distinguishable from plain time-conversion siblings like `time` or `timestamp`.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives a clear when-to-use rationale: converting 'balance on 1 November' or 'events since yesterday' into block numbers for other calls. There is no explicit when-not or named alternative, but the chaining intent is unambiguous.

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