Skip to main content
Glama

Block at a time

at
Read-only

Map Unix seconds UTC to the indexed EVM block not later than that time, returning the next block and exact/final flags for correct historical state queries.

Instructions

Map a time (unix seconds UTC) to a block of the indexed EVM chain: block, the newest block at or before it the nest holds a timestamp for, and next_block, the oldest after it. The nest's state at the time is its state at block. exact is true when the two are adjacent, final when next_block is sealed. Refused for a time the nest has not indexed past.

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

Input Schema

NameRequiredDescriptionDefault
timeYesUnix seconds, UTC.

Output Schema

NameRequiredDescriptionDefault
blockNoThe newest block at or before the time that the nest holds a timestamp for.
exactNoWhether the two blocks are adjacent.
finalNoWhether `next_block` is sealed.
next_blockNoThe oldest block after the time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv5.23.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false, so the safety profile is covered; the description adds real behavioral detail on top — the refusal condition for unindexed times and the meaning of `exact` (adjacency) and `final` (sealed successor). It is consistent with the read-only annotation and never contradicts it.

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?

Three tight sentences, front-loaded with the mapping and then the return semantics and failure case; no filler. It loses a point only because claims like 'the nest' and 'sealed' are used without definition, which forces a reader to infer domain terminology.

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 one required parameter, read-only annotations, and an output schema in place, the description covers purpose, return semantics, and the failure mode, which is enough to call it correctly. The only residual gap is that it does not clarify what the 'nest' is for an agent encountering this tool cold.

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 description coverage is 100%, so the baseline is 3, but the description earns the extra point by bounding the accepted domain of `time`: values the nest has not indexed past are refused. That is a validity constraint absent from the schema, which only says 'Unix seconds, UTC.'

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?

The description gives a concrete verb-and-resource pair: map a unix-seconds UTC time to a block of the indexed EVM chain, and names the returned fields (`block`, `next_block`). The opaque tool name 'at' is fully recovered by the description, and no sibling in the catalog performs an equivalent time-to-block lookup, so explicit differentiation is unnecessary rather than missing.

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 states the operating context ('the nest's state at the time is its state at `block`') and an explicit when-not: refusal for times the nest has not indexed past. What it does not do is name an alternative tool for cases it won't serve, so it falls short of the full when/when-not/alternatives bar.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.