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

cryptoapis-mcp-block-data

Official

XRP block data

xrp_block_data
Read-onlyIdempotent

Retrieve XRP block details by height or hash, list block transactions, and fetch latest mined blocks on mainnet or testnet to inspect ledger activity.

Instructions

Get XRP block details (Block Data product). Path uses network only (no blockchain). Networks: mainnet, testnet.

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-height: List transactions in a block by block height • list-transactions-by-block-hash: List transactions in a block by block hash • get-last-mined-block: Get the latest mined block details • list-latest-mined-blocks: List the latest mined blocks

Credits by action (source: OpenAPI): • get-block-by-hash: 20 • get-block-by-height: 20 • get-last-mined-block: 20 • list-latest-mined-blocks: 20 • list-transactions-by-block-hash: 20 • list-transactions-by-block-height: 20

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>",
      "network": "<network>"
    },
    "name": "xrp_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: mainnet or testnet
blockHashNoBlock hash (required for get-block-by-hash, list-transactions-by-block-hash)
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

A3.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new behavioral context: a per-action credit cost (20 each), the caveat that credits are indicative and the actual spend appears in response headers, and the note that the path uses network only. It stops short of describing rate limiting, pagination behavior, or error responses.

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 purpose sentence and the action bullet list are well front-loaded and easy to scan. However, the credits section lists all six actions at 20 credits each, which could be collapsed into a single sentence, and the disclaimer about indicative pricing runs long relative to its information content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, read-only, multi-action dispatcher with no output schema, the description covers what the actions are and their costs. It does not describe what each action returns (shape, transaction fields, ordering), how pagination interacts across actions, or how failures surface, which are the remaining gaps an agent would care about.

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 one of the eight parameters (count, limit, offset, blockHash, blockHeight, network, context, action) is already documented in the schema, including which selectors each action requires. The description's parentheticals ('by block height (number)') restate rather than extend that, so the baseline of 3 applies.

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 ('Get XRP block details') and then enumerates the six concrete actions with, in most cases, the resource each returns (block details, transactions, latest blocks). It is unambiguous what the tool does and that it is XRP-specific, which implicitly separates it from the evm_block_data and utxo_block_data siblings, though it never states that differentiation explicitly.

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 only implied: the action list tells an agent which action corresponds to which intent, and the required-parameter hints in the schema pick the selector (hash vs. height). There is no explicit when-to-use/when-not framing, no statement of prerequisites, and no pointer to the sibling tools for other chains.

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