Skip to main content
Glama

Mining pool blocks

get_pool_blocks
Read-onlyIdempotent

Get up to 100 recent blocks mined by a specific pool.

Mempool.space docs

REST operation: GET /api/v1/mining/pool/{slug}/blocks.

Input Schema

NameRequiredDescriptionDefault
slugYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed60 schema fields changed
    • changedInput schema / $defs / PoolSlug / description
      Previous value: -"URL-friendly mining pool identifier"New value: +"A mining pool's identifier, as written in URLs."
    • 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.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds one genuinely useful behavioral fact -- results are capped at 100 blocks -- but says nothing about ordering, whether the cap is silent truncation, or how an unknown slug behaves.

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?

One precise sentence front-loads the purpose and scope, followed by a short docs link and REST path. The citation lines are boilerplate but compact; nothing is padded.

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?

With full annotations and an output schema, the description need only cover selection and scope, and it does both for a single-parameter list tool. Minor gaps (ordering of the 100 blocks, truncation behavior) are secondary given the output schema defines the return shape.

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?

Only one required parameter exists and the schema's enum enumerates every valid slug, so the parameter is largely self-documenting even though stated coverage is 0%. The description's phrase "a specific pool" restates the obvious rather than explaining slug format or what happens for pool slugs not in the enum.

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?

States a specific verb and resource ("Get ... blocks mined by a specific pool") and adds a concrete scope limit of 100 results, so an agent knows exactly what it retrieves. It does not explicitly name the sibling get_pool_blocks_from_height to differentiate itself, which keeps it from a 5.

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 or when-not-to-use guidance is provided; the selection logic against siblings like get_pool_blocks_from_height or get_pool must be inferred from the word "recent" and the 100-block cap. The docs link and REST operation line supply no usage context.

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.