Skip to main content
Glama
cryptoapis-mcp-block-data

cryptoapis-mcp-block-data

Official

EVM block data

evm_block_data
Read-onlyIdempotent

Fetch EVM block details and transaction lists by block height or hash, plus recent mined block data across supported networks.

Instructions

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": "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 observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive and open-world, so the description does not need to restate safety. It instead adds genuinely non-obvious operational context: per-action, per-chain credit costs and the note that actual credits are returned in response headers, plus the exact blockchain→network pairing matrix. It stops short of describing error conditions for invalid chain/network combinations or pagination semantics.

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 lead sentence and the Actions bullet list are well front-loaded and scannable. However, the credit section repeats six near-identical rows with identical numbers for every action, which is pure redundancy, and the full network enumeration is verbose for what it conveys.

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?

For a 9-parameter, 6-action multiplexed tool with no output schema, the definition covers what the actions do, which chains and networks are valid, and what each call costs. Gaps are the response shape per action and how pagination behaves across list actions, but an agent can invoke the tool correctly from what is stated.

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 description coverage is 100%, so every parameter is already documented, including which actions require blockHash or blockHeight. The blockchain→network mapping is the one piece of meaning added beyond the schema, since the enum alone does not reveal which networks pair with which chain. The rest, including the count/limit/offset roles, is already in the schema.

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?

Names a specific verb and resource ("Get EVM block details") and then enumerates all six concrete operations, so an agent knows exactly what the tool can do. The "EVM" scoping combined with the supported-chain list makes it distinguishable from non-EVM siblings like utxo_block_data and xrp_block_data without opening any schema.

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?

The action list effectively documents the decision surface: height vs hash vs latest-mined vs transaction listing, which tells an agent which action to pick for a given intent. What is missing is any explicit when-not guidance, such as error behavior when the action-required parameter is absent, or whether an agent should prefer a different tool for token/NFT data.

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