Skip to main content
Glama

defillama_block

Read-only

Fetch the block height closest to a UNIX timestamp on one chain and return the height and timestamp fields. Use it to align on-chain events with a wall-clock time or with the price series from defillama_coin_prices.

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

Input Schema

NameRequiredDescriptionDefault
chainYesChain identifier such as ethereum.
timestampYesUNIX timestamp in seconds.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

The statement that the tool returns the nearest available block adds real semantics beyond the schema, since the exact timestamp may not correspond to a block. The annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The idempotentHint:false is never explained, and neither are multi-chain limits or rate limits, which are noticeable gaps.

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?

Two sentences, purpose first, usage second, with no filler. The phrase about returning the height and timestamp fields is largely redundant given the output schema, which slightly weakens the otherwise efficient structure.

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?

Both parameters are fully documented in the schema and an output schema exists, so the description need not explain return values. It covers purpose, the closest-block semantics, and the main integration use case, so 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.

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 adds almost nothing beyond the schema, only that the chain argument is a single chain. Saying that the output height is the closest available one is contextual rather than parameter-level detail.

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 names a specific verb and resource: fetch the block height closest to a UNIX timestamp on one chain. That is precise enough that an agent can tell it apart from the price, TVL, and chart siblings, but it never explicitly contrasts itself with them, so it does not reach the top band.

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?

It gives a concrete use case (aligning on-chain events with wall-clock time or joining with defillama_coin_prices), which is genuine when-to-use guidance. It is less clear, however, whether any exclusions or alternatives exist, and the reasoning behind the example use case is left implicit.

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.