Skip to main content
Glama
stellar-mcp

stellar-mcp

by ijele-don

build_transaction

Build unsigned Stellar/Soroban transaction XDR for payments, trustline changes, and contract calls, with automatic sequence lookup and safety inspection.

Instructions

Build an unsigned Stellar/Soroban TransactionEnvelope XDR (payment, change_trust, or invoke_contract) with automatic sequence lookup and safety inspection.

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": {
      "source_account": "<source_account>",
      "operations": "<operations>"
    },
    "name": "build_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoOptional text memo (max 28 bytes)
networkNoOptional network override (defaults to configured STELLAR_NETWORK).
operationsYesArray of operations (payment, change_trust, invoke_contract)
fee_stroopsNoOptional fee in stroops (defaults to BASE_FEE)
source_accountYesSource account public key (G...)
timeout_secondsNoTransaction timeout in seconds (default 300)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 and does disclose useful traits: the output envelope is unsigned (no signing or broadcast), sequence numbers are looked up automatically, and a safety inspection is performed. It does not explain what the safety inspection checks, whether network access to a funded account is required, or how failures surface.

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 dense sentence with the primary output front-loaded and qualifiers trailing. Nothing is wasted, though the parenthetical operation list is slightly redundant with the schema.

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, so the description should describe what is returned (an XDR string alone, or envelope plus inspection report) and it only gestures at 'safety inspection'. For a six-parameter builder that produces a serialized artifact, that leaves a meaningful gap despite the strong schema coverage.

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 100%, so all six parameters are already documented in the schema, including defaults for network, fee_stroops, and timeout_seconds. The description adds no syntax, formatting, or ordering detail beyond restating the allowed operation kinds that the schema itself already lists.

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 ('Build') and resource ('unsigned Stellar/Soroban TransactionEnvelope XDR') and enumerates the supported operation types (payment, change_trust, invoke_contract). It does not explicitly contrast itself with the sibling tools simulate_transaction or submit_transaction, though 'unsigned' implicitly separates it from submission.

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 word 'unsigned' plus 'Build' suggests this is the construction step that precedes signing and submitting, but no alternative is named and no condition selects this tool over simulate_transaction or submit_transaction. There are no stated prerequisites such as a funded source account.

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