Skip to main content
Glama
stellar-mcp

stellar-mcp

by ijele-don

get_transaction

Fetch a Stellar transaction by 64-character hash via Soroban RPC with Horizon fallback, and decode its envelope, return value, and events for debugging or inspection.

Instructions

Fetch a transaction by 64-char hex hash via Soroban RPC (with Horizon fallback) and decode its envelope, return value, and events.

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": {
      "tx_hash": "<tx_hash>"
    },
    "name": "get_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
networkNoOptional network override (defaults to configured STELLAR_NETWORK).
tx_hashYes64-character hex transaction hash

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose genuinely non-obvious behavior: the primary Soroban RPC path with a Horizon fallback, plus the fact that decoding happens automatically rather than requiring a separate call. It stops short of stating what happens when the hash is unknown or the RPC fails, which matters for a fetch tool with no annotations.

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 dense sentence with the core action front-loaded and no filler. Every clause (hash format, data source, fallback, decoded payload) carries distinct information.

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 only two parameters, one required, and no output schema, the description compensates by naming the payload components returned (envelope, return value, events), so the agent knows what comes back. The remaining gap is failure semantics for a missing or invalid hash.

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 100%, and the description's only parameter detail (64-char hex hash) simply restates the schema. The network override, including its default and enum values, is left entirely to the schema, which is acceptable at full coverage but adds no extra meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (fetch a transaction by hash) plus the exact identifier format, the data source (Soroban RPC with Horizon fallback), and what is decoded (envelope, return value, events). An agent can distinguish this from siblings like get_contract_events or decode_xdr without opening any schema.

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: it is the tool to use when you already have a 64-char tx hash. There is no explicit when-to-use or when-not-to-use guidance, and no mention of how it relates to siblings such as decode_xdr (for raw blobs) or diagnose_soroban_error (for failed transactions).

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