Skip to main content
Glama

EVM block data

block_data__evm_block_data
Read-onlyIdempotent

Get EVM block details (Block Data product).

Actions: • get-block-by-height: Get block details by block height (number) • get-block-by-hash: Get block details by block hash • list-transactions-by-block-hash: List transactions in a block by block hash • list-transactions-by-block-height: List transactions in a block by block height • get-last-mined-block: Get the latest mined block details • list-latest-mined-blocks: List the latest mined blocks

Blockchain → Networks: • ethereum: mainnet, sepolia • ethereum-classic: mainnet, mordor • binance-smart-chain: mainnet, testnet • polygon: mainnet, amoy • tron: mainnet, nile • avalanche (C-Chain): mainnet, fuji • arbitrum: mainnet, sepolia • base: mainnet, sepolia • optimism: mainnet, sepolia

Credits by action (source: OpenAPI): • get-block-by-hash: arbitrum 48, avalanche 54, base 36, binance-smart-chain 75, ethereum 30, ethereum-classic 39, optimism 42, polygon 60, tron 45 • get-block-by-height: arbitrum 48, avalanche 54, base 36, binance-smart-chain 75, ethereum 30, ethereum-classic 39, optimism 42, polygon 60, tron 45 • get-last-mined-block: arbitrum 48, avalanche 54, base 36, binance-smart-chain 75, ethereum 30, ethereum-classic 39, optimism 42, polygon 60, tron 45 • list-latest-mined-blocks: arbitrum 48, avalanche 54, base 36, binance-smart-chain 75, ethereum 30, ethereum-classic 39, optimism 42, polygon 60, tron 45 • list-transactions-by-block-hash: arbitrum 48, avalanche 54, base 36, binance-smart-chain 75, ethereum 30, ethereum-classic 39, optimism 42, polygon 60, tron 45 • list-transactions-by-block-height: arbitrum 48, avalanche 54, base 36, binance-smart-chain 75, ethereum 30, ethereum-classic 39, optimism 42, polygon 60, tron 45

Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.

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": {
      "action": "<action>",
      "blockchain": "<blockchain>",
      "network": "<network>"
    },
    "name": "block_data__evm_block_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoNumber of blocks to return (for list-latest-mined-blocks)
limitNoNumber of items to return (max 50)
actionYesAction to perform
offsetNoPagination offset
contextNoOptional context for the request - echoed back in response
networkYesNetwork name
blockHashNoBlock hash (required for get-block-by-hash, list-transactions-by-block-hash)
blockchainYesBlockchain protocol
blockHeightNoBlock height (required for get-block-by-height, list-transactions-by-block-height)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. Beyond that, the description adds real behavioral context the annotations do not: credit cost per action per blockchain, and the caveat that displayed credits are indicative with actual spend returned in response headers. It omits pagination/capacity behavior and does not describe what a returned block or transaction actually contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action list and network map are front-loaded and easy to scan. However, the credit table is repeated verbatim across all six actions even though the numbers are identical for every action, which is pure redundancy and inflates the definition substantially. The closing caveat about credits is fine but could have been stated once with a single shared cost line.

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?

For a nine-parameter, multi-action router with no output schema, this is unusually complete: it covers every action, the conditional parameter for each, the valid blockchain/network pairings, and the cost profile. The remaining gaps (return payload shape, how count vs. limit differ in practice) are minor relative to how much guidance is already supplied.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 adds meaning the schema cannot express: it states the validity constraint that network must be paired with the matching blockchain (e.g. tron only supports mainnet/nile), which prevents an agent from submitting a plausible-but-invalid combination. It also links each conditional parameter to the action that requires it, which the schema only hints at in per-field descriptions.

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 specific verb+resource ('Get EVM block details') and then enumerates all six distinct actions with their own verbs and scoping parameter (by height, by hash, transactions vs. block). An agent can tell this is the EVM chain block reader as opposed to utxo_block_data or xrp_block_data, because the scope is pinned to EVM networks and the 'Block Data product' label.

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 usable selection guidance: each action is spelled out, and the description plus schema identify which parameter drives each action (blockHash for get-block-by-hash / list-transactions-by-block-hash, blockHeight for the height variants). The blockchain→networks map is genuinely useful routing guidance. It stops short of naming sibling tools or stating when NOT to use this tool (e.g. pointing to transactions_data__transactions_data_evm for broader transaction queries).

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.