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

mcp-server-hyperledger-fabric

by rene-dekart

Get block by number

get_block
Read-onlyIdempotent

Read a Hyperledger Fabric block by channel and block number to retrieve its number, hashes, and transactions for ledger inspection and auditing.

Instructions

Read a block from the Fabric ledger by block number and return a summary (number, hashes, transactions).

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>",
      "number": "<number>"
    },
    "name": "get_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesBlock number (0 = genesis)
channelYesFabric channel name
timeoutMsNo

Output Schema

NameRequiredDescriptionDefault
txIdsYes
numberNo
txCountYes
dataHashNo
previousHashNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety and idempotency profile is covered without the description. The description adds a hint at the returned summary fields, but says nothing about failure modes (unknown block number, invalid channel) or the timeout behavior implied by timeoutMs, which would be the genuinely useful additions.

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?

A single front-loaded sentence with the resource, the lookup key and the return shape in that order. 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?

This is a simple read tool with full annotations and an output schema in place, so return-value documentation is largely unnecessary and the description is close to sufficient. The remaining gap is the undescribed timeoutMs parameter and any mention of error behavior for a missing block.

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 coverage is 67%: number (with "0 = genesis") and channel are documented, while timeoutMs carries no description anywhere. The description adds no parameter-level meaning beyond the schema, so the baseline 3 for mid coverage is appropriate rather than a penalty.

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 description names a specific verb and resource ("Read a block from the Fabric ledger") and pins the lookup key as "by block number", which implicitly contrasts with the sibling get_block_by_hash. It stops short of naming that alternative explicitly, so the differentiation is inferable rather than stated.

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: an agent can infer this is the right tool when it has a numeric block height rather than a hash. There is no explicit when-to-use, no exclusion of get_block_by_hash or get_transaction, and no note on required preconditions such as a valid channel.

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