Skip to main content
Glama
stellar-mcp

stellar-mcp

by ijele-don

inspect_xdr

Decodes TransactionEnvelope XDR and audits it for account merges, signer/threshold changes, clawbacks, excessive fees, and Soroban host invocations to flag unsafe Stellar transactions before signing.

Instructions

Decode a TransactionEnvelope XDR and run a security/safety audit (detecting account merges, signer/threshold changes, clawbacks, excessive fees, and Soroban host invocations).

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

Input Schema

NameRequiredDescriptionDefault
xdrYesBase64-encoded TransactionEnvelope XDR
networkNoOptional network override (defaults to configured STELLAR_NETWORK).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the substantive audit behavior (account merges, signer/threshold changes, clawbacks, excessive fees, Soroban host invocations), which is real added context. However, it omits that this is a read-only/non-submitting inspection, what happens with malformed XDR, and whether any network call occurs when an override is given.

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 primary action first and the audit detail in a compact parenthetical; every clause adds information and nothing is padded.

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?

For a two-parameter, no-annotation tool this is serviceable, and the parenthetical hints at what findings appear. But with no output schema, the description does not say what the audit actually returns (findings list, severity, decoded fields), leaving the response shape to be discovered by calling it.

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%, so both the xdr and network parameters are fully documented in the schema, including the enum values and the configured-network default. The description adds nothing about parameter semantics, which is acceptable at this coverage level, so the baseline of 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?

The description states a specific verb and resource ('Decode a TransactionEnvelope XDR') and adds a second concrete function (a security/safety audit) with an enumerated list of checks. This distinguishes it from a bare decoder, though it never names sibling decode_xdr explicitly, so the agent must infer the boundary between the two.

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: the audit framing suggests 'use this when you want safety checks on an envelope,' but there is no explicit when-to-use, when-not-to-use, or reference to the overlapping decode_xdr sibling. An agent that just needs raw decoding gets no routing guidance.

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