Skip to main content
Glama
stellar-mcp

stellar-mcp

by ijele-don

decode_xdr

Decode base64-encoded Stellar XDR into readable JSON to inspect transactions, contract values, ledger data, and diagnostic events.

Instructions

Decode base64-encoded Stellar XDR (TransactionEnvelope, ScVal, LedgerKey, LedgerEntryData, DiagnosticEvent, or SorobanTransactionData) into readable JSON.

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": {
      "xdr": "<xdr>",
      "type": "<type>"
    },
    "name": "decode_xdr"
  }
}

Input Schema

NameRequiredDescriptionDefault
xdrYesBase64-encoded XDR string
typeYesXDR type to decode
networkNoOptional network override (defaults to configured STELLAR_NETWORK).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/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. It does disclose the output form ("readable JSON"), which is useful, but says nothing about failure behavior on malformed XDR, whether decoding is purely local/read-only, or what the `network` override actually changes in the result. For a low-risk deterministic decoder these are minor, but they are unstated.

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?

A single front-loaded sentence with the verb first and the type enumeration second; nothing is redundant. It could have spent a few more words on the missing operational details without becoming bloated, but as written it is efficient and readable.

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?

There is no output schema, and "readable JSON" is the only characterization of the return value — an agent cannot tell the shape or whether nested fields are expanded. Combined with the silence on error handling for invalid XDR, the definition is adequate but leaves real questions open for a three-parameter tool.

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%, with both enums fully documented inline, so the schema already does the heavy lifting. The description's type list merely restates the enum values rather than explaining consequences (e.g., which type to pick when the payload is a full envelope vs. an inner ScVal). Baseline 3 applies.

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?

Uses a specific verb ("Decode") on a specific resource (base64-encoded Stellar XDR) and enumerates the exact supported type variants, so an agent knows precisely what comes out. It does not, however, differentiate itself from the similarly named sibling `inspect_xdr`, leaving the boundary between the two for the agent to guess.

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?

The description only implies usage ("you have base64 XDR you want as JSON"). It states no conditions, prerequisites, or exclusions, and never names an alternative for cases where raw inspection rather than full JSON decoding is wanted. With a close-sounding sibling present, the absence of any routing guidance is a substantive gap.

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