Skip to main content
Glama

Recent blocks with extras

get_blocks_v1
Read-onlyIdempotent

Retrieve the last 15 blocks with extended data including pool identification and fee statistics.

Mempool.space docs

REST operation: GET /api/v1/blocks.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed59 schema fields changed
    • 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.4/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, open-world, and non-destructive behavior, so the safety profile is covered. The description adds the important behavioral scope of returning exactly the last 15 blocks and the content categories included, but it does not add further operational context such as ordering guarantees or limitations beyond that fixed window.

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

Conciseness4/5

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

The description is short and front-loads the key behavior: last 15 blocks with extended data. The documentation link and REST operation line are useful references but slightly redundant, keeping it just below maximally concise.

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?

Given the tool has no parameters, a rich output schema, and explicit annotations, the description provides enough context for correct invocation. It explains the block window and extended data fields, though it could more clearly distinguish this endpoint from other recent-block siblings.

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

Parameters4/5

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

The tool has zero parameters, so there is no parameter semantics for the description to compensate for. The 100% schema description coverage and empty input schema make the baseline score of 4 appropriate.

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 gives a specific verb and resource: retrieve the last 15 blocks with extended data including pool identification and fee statistics. It is clear what the tool returns, but it does not explicitly differentiate itself from sibling block-listing tools such as get_blocks or get_blocks_from_height.

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?

The description implies usage by saying it returns recent blocks with extended data, but it never states when to choose this over get_blocks, get_blocks_from_height, or get_blocks_v1_from_height. There are no exclusions or decision guidance for an agent selecting among many sibling block tools.

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.