Skip to main content
Glama

Block information

get_block
Read-onlyIdempotent

Mempool.space docs

REST operation: GET /api/block/{hash}.

Input Schema

NameRequiredDescriptionDefault
hashYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • addedInput schema / $defs / BlockHash / pattern
      Added value: +"^[0-9a-f]{64}$"
    • addedOutput schema / $defs / BlockHash / pattern
      Added value: +"^[0-9a-f]{64}$"
    • removedOutput schema / $defs / BlockInfo / properties / bits / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / BlockInfo / properties / difficulty / format
      Removed value: -"double"
    • addedOutput schema / $defs / BlockInfo / properties / height / $ref
      Added value: +"#/$defs/Height"
    • removedOutput schema / $defs / BlockInfo / properties / height / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Height"
      -  }
      -]
    • addedOutput schema / $defs / BlockInfo / properties / merkle_root / $ref
      Added value: +"#/$defs/MerkleNode"
    • removedOutput schema / $defs / BlockInfo / properties / merkle_root / type
      Removed value: -"string"
    • removedOutput schema / $defs / BlockInfo / properties / nonce / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / BlockInfo / properties / previousblockhash / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/BlockHash"
      -  }
      -]
    • addedOutput schema / $defs / BlockInfo / properties / previousblockhash / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/BlockHash"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / $defs / BlockInfo / properties / size / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / BlockInfo / properties / tx_count / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / BlockInfo / properties / version / format
      Removed value: -"uint32"
    • changedOutput schema / $defs / BlockInfo / required
      Previous value: -[
      -  "id",
      -  "height",
      -  "version",
      -  "timestamp",
      -  "bits",
      -  "nonce",
      -  "difficulty",
      -  "merkle_root",
      -  "tx_count",
      -  "size",
      -  "weight",
      -  "previousblockhash",
      -  "mediantime"
      -]New value: +[
      +  "id",
      +  "height",
      +  "version",
      +  "timestamp",
      +  "bits",
      +  "nonce",
      +  "difficulty",
      +  "merkle_root",
      +  "tx_count",
      +  "size",
      +  "weight",
      +  "mediantime"
      +]
    • removedOutput schema / $defs / Height / format
      Removed value: -"uint32"
    • addedOutput schema / $defs / MerkleNode
      Added value: +{
      +  "pattern": "^[0-9a-f]{64}$",
      +  "type": "string"
      +}
    • removedOutput schema / $defs / Timestamp / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / Weight / format
      Removed value: -"uint32"
  2. First observed

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered by structured data. The description contributes nothing beyond that: it does not say how an unknown hash is handled, what the response contains, or note that this appears to be the v0/deprecated-style endpoint versus get_block_v1. With annotations carrying the safety burden, this is acceptable but adds no value.

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?

Two short lines with zero waste, so it is concise. However, it is front-loaded with a documentation URL rather than a plain-language statement of what the call returns, which is the wrong lead for an agent deciding whether to invoke it. Brevity here reflects under-specification rather than disciplined editing.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but the tool sits among dozens of block-related siblings and the description does nothing to disambiguate selection. For a public blockchain API wrapper, the absence of any note on network scope, deprecation status relative to get_block_v1, or error behavior leaves the agent guessing.

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?

There is a single required parameter whose schema (via $defs.BlockHash) already supplies a 64-hex regex pattern, two live examples, and a description of byte order, so the parameter is well specified without the description's help. The description adds no formatting, casing, or encoding guidance beyond the schema. Baseline 3 is appropriate when the schema does the work and the prose adds nothing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The title 'Block information' is close to a restatement of the name, and the only concrete content is the REST path `GET /api/block/{hash}`, from which an agent must infer that this fetches a single block by hash. That inference is correct but nothing in the text distinguishes it from near-identical siblings such as get_block_v1, get_block_header, get_block_status, get_block_txid, or get_blocks. Purpose is implied by the endpoint, not stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance and no alternatives are named, despite at least six sibling tools that operate on blocks. The only hint that a hash (not a height or timestamp) is the selector comes from the URL template, which the agent must reverse-engineer. No exclusions, no prerequisites, no indication of which chain/network applies.

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.