Skip to main content
Glama

Transaction hex

get_tx_hex
Read-onlyIdempotent

Hex-encoded serialized transaction.

Mempool.space docs

REST operation: GET /api/tx/{txid}/hex.

Input Schema

NameRequiredDescriptionDefault
txidYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $defs / Txid / description
      Previous value: -"Transaction ID (hash)"New value: +"A transaction ID: its hash."
    • addedInput schema / $defs / Txid / pattern
      Added value: +"^[0-9a-f]{64}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Hex": {
      +      "pattern": "^([0-9a-f]{2})*$",
      +      "type": "string"
      +    }
      +  },
      +  "$ref": "#/$defs/Hex",
      +  "$schema": "https://json-schema.org/draft/2020-12/schema"
      +}
  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 readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is fully covered elsewhere. The description adds only the REST endpoint mapping and a documentation link, which is modest added value; it says nothing about error behavior for unknown or unconfirmed txids, which matters for a lookup keyed on a 64-hex txid.

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?

Three short lines, front-loaded with the return content before the doc link and endpoint. Nothing is padded, though the leading sentence is a fragment rather than a complete statement of action, which slightly weakens the front-loading.

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?

With an output schema present, return values need not be explained, and annotations cover the safety profile, so the core is adequate for a one-parameter lookup. What is missing is the sibling relationship to get_tx and whether unconfirmed (mempool) transactions are valid inputs, both of which bear directly on correct invocation.

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?

Schema description coverage is reported as 0%, but the single parameter is a $ref to a Txid definition that carries its own description ('A transaction ID: its hash'), a strict 64-hex pattern, and three examples. The description's URL template '{txid}' reinforces placement but adds no format or validation detail beyond the schema; the schema effectively carries the semantics, so a middle score 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?

The noun phrase 'Hex-encoded serialized transaction' combined with the explicit REST operation 'GET /api/tx/{txid}/hex' makes clear this fetches the raw serialized hex of a single transaction. It is distinguishable from get_tx (parsed JSON) only by inference from the word 'hex', not by any explicit comparison to a sibling.

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 statement of when to choose this over get_tx, get_tx_status, or get_tx_merkle_proof, nor any mention of prerequisites or when it is unsuitable. The agent must infer the use case purely from the phrase 'hex-encoded', which is the definition of no guidance.

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.