Skip to main content
Glama

Transaction ID at index

get_block_txid
Read-onlyIdempotent

Retrieve a single transaction ID at a specific index within a block. Returns plain text txid.

Mempool.space docs

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

Input Schema

NameRequiredDescriptionDefault
hashYes
indexYesTransaction index within the block (0-based)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / $defs / BlockHash / pattern
      Added value: +"^[0-9a-f]{64}$"
    • removedInput schema / $defs / BlockTxIndex / format
      Removed value: -"uint32"
    • removedInput schema / properties / hash / description
      Removed value: -"Bitcoin block hash"
    • addedInput schema / properties / index / examples
      Added value: +[
      +  0
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Txid": {
      +      "pattern": "^[0-9a-f]{64}$",
      +      "type": "string"
      +    }
      +  },
      +  "$ref": "#/$defs/Txid",
      +  "$schema": "https://json-schema.org/draft/2020-12/schema"
      +}
  2. First observed

TDQS

A3.5/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 handled. The description adds only that the result is plain-text txid rather than JSON, which is mildly useful context but the output schema already covers the return shape.

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 action, then the return type, then a docs link and the REST path. Efficient, though the 'REST operation' line is largely redundant with the tool's purpose.

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?

For a two-parameter read tool with full annotations and an output schema, the description supplies everything needed to call it correctly. Nothing essential about errors, out-of-range indices, or block-not-found behavior is stated, but that is a minor gap.

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?

Both parameters are documented in the schema via $refs (BlockHash explains double-SHA256 byte order; BlockTxIndex explains 0-based position and that 0 is the coinbase), and the description adds no syntax, format, or range detail beyond that. With the schema doing the heavy lifting, baseline 3 is 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?

States a specific verb and resource (retrieve a single transaction ID) plus the scoping constraint 'within a block' and the index position, which distinguishes it from chain-wide index lookups like get_txid_by_index. It does not explicitly name any sibling, so it stops just short of 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 Guidelines3/5

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

Usage is only implied: the description tells you what it returns, from which you infer you need a block hash and index. There is no statement of when to prefer it over get_block_txs_from_index or get_txid_by_index, and no prerequisites or alternatives mentioned.

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.