Skip to main content
Glama

chain_block_by_time

Read-only

Block number at a date or timestamp — Find the block at a point in time on Ethereum, Base, Arbitrum, Optimism or Polygon: the last block with timestamp <= the requested time, plus the next block and the closest block. Pass timestamp (unix seconds) or date (ISO 8601). Interpolation search over public JSON-RPC (typically 5-16 lookups). Params: chain (ethereum|base|arbitrum|optimism|polygon), timestamp or date. Price: $0.002 USDC (Base, via 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": {
      "chain": "<chain>",
      "timestamp": "<timestamp>"
    },
    "name": "chain_block_by_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesethereum
timestampYes1704067200

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/non-destructive annotations: it discloses the exact return semantics (last block <= time, plus next block and closest block), the algorithm and load profile (interpolation search over public JSON-RPC, typically 5-16 lookups), and the payment requirement and price ($0.002 USDC on Base via x402), which is critical for an agent to avoid unexpected billing.

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 the core purpose, then inputs, then mechanics, then price — a sensible ordering for an agent scanning quickly. The single dense paragraph is efficient, though the return-value sentence and the pricing parenthetical make it slightly crowded.

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 does the necessary work by explaining what is returned (last, next, closest block), and it covers cost, chains, and input formats. The only completeness defect is the documented 'date' input that the schema does not expose.

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?

The schema descriptions are only bare examples ('ethereum', '1704067200'), so the description carries real weight by enumerating the five valid chains and specifying unix seconds for timestamp. It loses a point because it advertises a 'date (ISO 8601)' alternative that has no corresponding property in the schema, which could lead an agent to pass a nonexistent 'date' key.

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?

States a specific verb and resource ('Find the block at a point in time') with explicit chains and the exact semantic (last block with timestamp <= requested). It implicitly distinguishes itself from chain_block / chain_block_number by being time-based rather than number-based, but never names an alternative, so the differentiation is left to inference.

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 implied by 'at a date or timestamp' and by the input instructions ('Pass timestamp ... or date ...'), which tells the agent how to call it, but there is no explicit when-to-use vs when-to-use-something-else guidance, no exclusions, and no prerequisites beyond the price note.

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