Skip to main content
Glama

Address information

get_address
Read-onlyIdempotent

Balance and transaction counts. Supports P2PKH, P2SH, P2WPKH, P2WSH, P2TR and P2A addresses, and P2PK public keys in hex (33 or 65 bytes).

Mempool.space docs

REST operation: GET /api/address/{address}.

Input Schema

NameRequiredDescriptionDefault
addressYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • removedInput schema / $defs / Addr
      Removed value: -{
      -  "description": "Bitcoin address string",
      -  "examples": [
      -    "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f",
      -    "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
      -    "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / $defs / Address
      Added value: +{
      +  "description": "Bitcoin address, or the hex public key of a P2PK output.",
      +  "examples": [
      +    "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f",
      +    "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
      +    "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / address / $ref
      Previous value: -"#/$defs/Addr"New value: +"#/$defs/Address"
    • removedOutput schema / $defs / Addr
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / $defs / AddrChainStats
      Removed value: -{
      -  "properties": {
      -    "balance": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/Sats"
      -        }
      -      ]
      -    },
      -    "funded_txo_count": {
      -      "format": "uint32",
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "funded_txo_sum": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/Sats"
      -        }
      -      ]
      -    },
      -    "realized_price": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/Dollars"
      -        }
      -      ]
      -    },
      -    "spent_txo_count": {
      -      "format": "uint32",
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "spent_txo_sum": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/Sats"
      -        }
      -      ]
      -    },
      -    "tx_count": {
      -      "format": "uint32",
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "type_index": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/TypeIndex"
      -        }
      -      ]
      -    }
      -  },
      -  "required": [
      -    "balance",
      -    "funded_txo_count",
      -    "funded_txo_sum",
      -    "spent_txo_count",
      -    "spent_txo_sum",
      -    "tx_count",
      -    "type_index",
      -    "realized_price"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / AddrMempoolStats
      Removed value: -{
      -  "properties": {
      -    "balance_delta": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/SatsSigned"
      -        }
      -      ]
      -    },
      -    "funded_txo_count": {
      -      "format": "uint32",
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "funded_txo_sum": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/Sats"
      -        }
      -      ]
      -    },
      -    "spent_txo_count": {
      -      "format": "uint32",
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "spent_txo_sum": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/Sats"
      -        }
      -      ]
      -    },
      -    "tx_count": {
      -      "format": "uint32",
      -      "minimum": 0,
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "balance_delta",
      -    "funded_txo_count",
      -    "funded_txo_sum",
      -    "spent_txo_count",
      -    "spent_txo_sum",
      -    "tx_count"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / AddrStats
      Removed value: -{
      -  "properties": {
      -    "addr_type": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/OutputType"
      -        }
      -      ]
      -    },
      -    "address": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/Addr"
      -        }
      -      ]
      -    },
      -    "balance": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/Sats"
      -        }
      -      ]
      -    },
      -    "chain_stats": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/AddrChainStats"
      -        }
      -      ]
      -    },
      -    "mempool_stats": {
      -      "allOf": [
      -        {
      -          "$ref": "#/$defs/AddrMempoolStats"
      -        }
      -      ]
      -    }
      -  },
      -  "required": [
      -    "address",
      -    "addr_type",
      -    "chain_stats",
      -    "mempool_stats",
      -    "balance"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / $defs / Address
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / $defs / AddressChainStats
      Added value: +{
      +  "properties": {
      +    "balance": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/Sats"
      +        }
      +      ]
      +    },
      +    "funded_txo_count": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "funded_txo_sum": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/Sats"
      +        }
      +      ]
      +    },
      +    "realized_price": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/Dollars"
      +        }
      +      ]
      +    },
      +    "spent_txo_count": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "spent_txo_sum": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/Sats"
      +        }
      +      ]
      +    },
      +    "tx_count": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "type_index": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/TypeIndex"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "balance",
      +    "funded_txo_count",
      +    "funded_txo_sum",
      +    "spent_txo_count",
      +    "spent_txo_sum",
      +    "tx_count",
      +    "realized_price"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / AddressMempoolStats
      Added value: +{
      +  "properties": {
      +    "balance_delta": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/SatsSigned"
      +        }
      +      ]
      +    },
      +    "funded_txo_count": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "funded_txo_sum": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/Sats"
      +        }
      +      ]
      +    },
      +    "spent_txo_count": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "spent_txo_sum": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/Sats"
      +        }
      +      ]
      +    },
      +    "tx_count": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "balance_delta",
      +    "funded_txo_count",
      +    "funded_txo_sum",
      +    "spent_txo_count",
      +    "spent_txo_sum",
      +    "tx_count"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / AddressStats
      Added value: +{
      +  "properties": {
      +    "address": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/Address"
      +        }
      +      ]
      +    },
      +    "address_type": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/OutputType"
      +        }
      +      ]
      +    },
      +    "balance": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/Sats"
      +        }
      +      ]
      +    },
      +    "chain_stats": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/AddressChainStats"
      +        }
      +      ]
      +    },
      +    "mempool_stats": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/AddressMempoolStats"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "address",
      +    "address_type",
      +    "chain_stats",
      +    "mempool_stats",
      +    "balance"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / $defs / Dollars / format
      Removed value: -"double"
    • changedOutput schema / $defs / OutputType / enum
      Previous value: -[
      -  "p2pk65",
      -  "p2pk33",
      -  "p2pkh",
      -  "p2ms",
      -  "p2sh",
      -  "opreturn",
      -  "p2wpkh",
      -  "p2wsh",
      -  "p2tr",
      -  "p2a",
      -  "empty",
      -  "unknown"
      -]New value: +[
      +  "p2pk65",
      +  "p2pk33",
      +  "p2pkh",
      +  "p2ms",
      +  "p2sh",
      +  "op_return",
      +  "p2wpkh",
      +  "p2wsh",
      +  "p2tr",
      +  "p2a",
      +  "empty_script",
      +  "unknown_script"
      +]
    • removedOutput schema / $defs / Sats / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / SatsSigned / format
      Removed value: -"int64"
    • removedOutput schema / $defs / TypeIndex / format
      Removed value: -"uint32"
    • changedOutput schema / $ref
      Previous value: -"#/$defs/AddrStats"New value: +"#/$defs/AddressStats"
  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 readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description adds accepted input formats and the underlying REST route, but says nothing about error behavior for malformed or unknown addresses, or about rate limits — the gaps that matter for an open-world read.

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?

Front-loaded with the payload summary, then format support, then a docs link and the REST route. The REST operation line is mild filler given the docs link, but everything else earns its place.

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 an output schema covering return values and annotations covering safety, the description only needed to nail input formats and scope, which it does. The remaining hole is routing relative to validate_address and the address tx/utxo 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?

Schema description coverage is reported at 0% (the real text sits behind a $ref), so the description has to carry the burden — and it does, enumerating P2PKH, P2SH, P2WPKH, P2WSH, P2TR, P2A and P2PK hex keys at 33 or 65 bytes. That is materially more than the terse schema text, though it doesn't clarify invalid-address handling.

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 opening sentence names the resource payload ('Balance and transaction counts') for an address lookup, which is specific enough to distinguish it from the list-style siblings (get_address_txs, get_address_utxos) by implication. It stops short of explicitly naming those alternatives, so differentiation relies on inference rather than statement.

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?

There is no when-to-use or when-not-to-use guidance and no mention of the many address-related siblings, notably validate_address or the tx/utxo list endpoints. An agent must infer from the phrase 'balance and transaction counts' that this is the summary endpoint rather than the detailed one.

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.