Skip to main content
Glama

Block (v1)

get_block_v1
Read-onlyIdempotent

Returns block details with extras by hash.

Mempool.space docs

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

Input Schema

NameRequiredDescriptionDefault
hashYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed60 schema fields changed
    • addedInput schema / $defs / BlockHash / pattern
      Added value: +"^[0-9a-f]{64}$"
    • addedOutput schema / $defs / Address
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / $defs / BlockExtras / properties / avgTxSize / format
      Removed value: -"double"
    • addedOutput schema / $defs / BlockExtras / properties / coinbaseAddress / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Address"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / $defs / BlockExtras / properties / coinbaseAddress / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / $defs / BlockExtras / properties / coinbaseAddresses / items / $ref
      Added value: +"#/$defs/Address"
    • removedOutput schema / $defs / BlockExtras / properties / coinbaseAddresses / items / type
      Removed value: -"string"
    • addedOutput schema / $defs / BlockExtras / properties / coinbaseBip54
      Added value: +{
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedOutput schema / $defs / BlockExtras / properties / coinbaseRaw / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Hex"
      +  }
      +]
    • removedOutput schema / $defs / BlockExtras / properties / coinbaseRaw / type
      Removed value: -"string"
    • addedOutput schema / $defs / BlockExtras / properties / expectedFees
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/Sats"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / $defs / BlockExtras / properties / expectedWeight
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/Weight"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / $defs / BlockExtras / properties / firstSeen / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Timestamp"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / $defs / BlockExtras / properties / firstSeen / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / BlockExtras / properties / firstSeen / minimum
      Removed value: -0
    • removedOutput schema / $defs / BlockExtras / properties / firstSeen / type
      Removed value: -[
      -  "integer",
      -  "null"
      -]
    • addedOutput schema / $defs / BlockExtras / properties / header / allOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/Hex"
      +  }
      +]
    • removedOutput schema / $defs / BlockExtras / properties / header / type
      Removed value: -"string"
    • addedOutput schema / $defs / BlockExtras / properties / matchRate
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / $defs / BlockExtras / properties / orphans / items / $ref
      Added value: +"#/$defs/BlockOrphan"
    • removedOutput schema / $defs / BlockExtras / properties / orphans / items / type
      Removed value: -"string"
    • addedOutput schema / $defs / BlockExtras / properties / pool / $ref
      Added value: +"#/$defs/BlockPool"
    • removedOutput schema / $defs / BlockExtras / properties / pool / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/BlockPool"
      -  }
      -]
    • removedOutput schema / $defs / BlockExtras / properties / segwitTotalSize / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / BlockExtras / properties / segwitTotalTxs / format
      Removed value: -"uint32"
    • addedOutput schema / $defs / BlockExtras / properties / segwitTotalWeight / $ref
      Added value: +"#/$defs/Weight"
    • removedOutput schema / $defs / BlockExtras / properties / segwitTotalWeight / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Weight"
      -  }
      -]
    • removedOutput schema / $defs / BlockExtras / properties / totalInputs / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / BlockExtras / properties / totalOutputs / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / BlockExtras / properties / utxoSetChange / format
      Removed value: -"int64"
    • removedOutput schema / $defs / BlockExtras / properties / utxoSetSize / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / BlockExtras / properties / virtualSize / format
      Removed value: -"double"
    • addedOutput schema / $defs / BlockHash / pattern
      Added value: +"^[0-9a-f]{64}$"
    • removedOutput schema / $defs / BlockInfoV1 / properties / bits / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / BlockInfoV1 / properties / difficulty / format
      Removed value: -"double"
    • addedOutput schema / $defs / BlockInfoV1 / properties / extras / $ref
      Added value: +"#/$defs/BlockExtras"
    • removedOutput schema / $defs / BlockInfoV1 / properties / extras / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/BlockExtras"
      -  }
      -]
    • addedOutput schema / $defs / BlockInfoV1 / properties / height / $ref
      Added value: +"#/$defs/Height"
    • removedOutput schema / $defs / BlockInfoV1 / properties / height / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Height"
      -  }
      -]
    • addedOutput schema / $defs / BlockInfoV1 / properties / merkle_root / $ref
      Added value: +"#/$defs/MerkleNode"
    • removedOutput schema / $defs / BlockInfoV1 / properties / merkle_root / type
      Removed value: -"string"
    • removedOutput schema / $defs / BlockInfoV1 / properties / nonce / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / BlockInfoV1 / properties / previousblockhash / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/BlockHash"
      -  }
      -]
    • addedOutput schema / $defs / BlockInfoV1 / properties / previousblockhash / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/BlockHash"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / $defs / BlockInfoV1 / properties / size / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / BlockInfoV1 / properties / tx_count / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / BlockInfoV1 / properties / version / format
      Removed value: -"uint32"
    • changedOutput schema / $defs / BlockInfoV1 / required
      Previous value: -[
      -  "id",
      -  "height",
      -  "version",
      -  "timestamp",
      -  "bits",
      -  "nonce",
      -  "difficulty",
      -  "merkle_root",
      -  "tx_count",
      -  "size",
      -  "weight",
      -  "previousblockhash",
      -  "mediantime",
      -  "extras"
      -]New value: +[
      +  "id",
      +  "height",
      +  "version",
      +  "timestamp",
      +  "bits",
      +  "nonce",
      +  "difficulty",
      +  "merkle_root",
      +  "tx_count",
      +  "size",
      +  "weight",
      +  "mediantime",
      +  "extras"
      +]
    • addedOutput schema / $defs / BlockOrphan
      Added value: +{
      +  "properties": {
      +    "branchlen": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "hash": {
      +      "$ref": "#/$defs/BlockHash"
      +    },
      +    "height": {
      +      "$ref": "#/$defs/Height"
      +    },
      +    "prevhash": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/BlockHash"
      +        }
      +      ]
      +    },
      +    "status": {
      +      "$ref": "#/$defs/BlockOrphanStatus"
      +    }
      +  },
      +  "required": [
      +    "height",
      +    "hash",
      +    "branchlen",
      +    "status",
      +    "prevhash"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / BlockOrphanStatus
      Added value: +{
      +  "oneOf": [
      +    {
      +      "const": "invalid",
      +      "type": "string"
      +    },
      +    {
      +      "const": "headers-only",
      +      "type": "string"
      +    },
      +    {
      +      "const": "valid-headers",
      +      "type": "string"
      +    },
      +    {
      +      "const": "valid-fork",
      +      "type": "string"
      +    }
      +  ]
      +}
    • removedOutput schema / $defs / BlockPool / properties / blockNumber / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / BlockPool / properties / id / format
      Removed value: -"uint8"
    • removedOutput schema / $defs / Dollars / format
      Removed value: -"double"
    • removedOutput schema / $defs / FeeRate / format
      Removed value: -"double"
    • removedOutput schema / $defs / Height / format
      Removed value: -"uint32"
    • addedOutput schema / $defs / Hex
      Added value: +{
      +  "pattern": "^([0-9a-f]{2})*$",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / MerkleNode
      Added value: +{
      +  "pattern": "^[0-9a-f]{64}$",
      +  "type": "string"
      +}
    • removedOutput schema / $defs / Sats / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / Timestamp / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / Weight / format
      Removed value: -"uint32"
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds the REST endpoint and docs reference, but leaves “extras” unexplained and gives no behavioral detail about rate limits or response shape.

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

Conciseness5/5

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

The description is short, front-loaded with the core purpose, and contains no filler. The docs link and REST operation are compact and useful.

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?

An output schema exists, so return values need not be documented, and annotations cover safety. However, the description does not clarify what “extras” includes or how this tool differs from closely related block tools, leaving meaningful ambiguity for an agent choosing among siblings.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description only says “by hash,” which identifies the parameter name but adds little semantic meaning. The context signal reports 0% schema description coverage, so the description should compensate by explaining the expected hash format, but it does not.

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 states a clear verb and resource: returns block details for a given hash. It is more specific than a tautology, but it does not explain what “extras” means or distinguish this tool from the sibling get_block / get_blocks_v1 tools.

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?

It provides no guidance on when to use this tool instead of get_block, get_block_header, get_block_status, or the other block-related siblings. The docs link and REST path identify the operation but do not tell an agent when this variant is appropriate.

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.