Skip to main content
Glama
mcp-server-hyperledger-fabric

mcp-server-hyperledger-fabric

by rene-dekart

Get transaction by ID

get_transaction
Read-onlyIdempotent

Locate a Hyperledger Fabric transaction by ID on a channel by scanning blocks forward from a chosen start block; returns the block summary containing it.

Instructions

Find a transaction by its ID by scanning blocks forward from startBlock. Returns the block summary containing the transaction.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "channel": "<channel>",
      "txid": "<txid>"
    },
    "name": "get_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
txidYesTransaction ID to find
channelYesFabric channel name
maxBlocksNoScan at most this many blocks
timeoutMsNo
startBlockNoScan from this block

Output Schema

NameRequiredDescriptionDefault
txidNo
foundYes
txIdsNo
numberNo
scannedNo
txCountNo
dataHashNo
previousHashNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and open-world semantics, and the description adds genuinely non-obvious behavior: this is a forward block scan from startBlock rather than a direct index lookup, and the return value is a block summary rather than a transaction object. It omits what happens on a failed scan (error vs empty result) and the practical cost of scanning large ranges.

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

Conciseness5/5

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

Two tight sentences with the search mechanism front-loaded and the return shape immediately after. No filler, no repetition of the title.

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?

An output schema exists, so return values need no further spelling out, and the description still notes the block-summary wrapper. For a five-parameter scan-based lookup the remaining gap is failure/not-found behavior and scan-cost expectations, which keeps it short of a 5.

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 80%, so baseline is 3. The description reinforces startBlock as the scan origin, which gives that parameter useful framing, but it adds nothing about maxBlocks or timeoutMs — the two parameters that bound the scan and are the most likely to be mis-set.

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 ('Find a transaction by its ID') and clarifies the lookup mechanism (block scan) plus the return shape ('block summary containing the transaction'). It is distinguishable from siblings like get_block_by_hash or get_blockchain_info, though it does not explicitly name an alternative.

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 implied: use this when you have a txid and need the block that contains it, and the mention of startBlock hints the caller should pick a plausible starting point. There is no explicit when-not guidance, no statement of behavior when the transaction is absent within the scan window, and no pointer to a cheaper alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.