Skip to main content
Glama
stellar-mcp

stellar-mcp

by ijele-don

submit_transaction

Submits a base64-encoded transaction XDR to Soroban RPC with Horizon fallback, optionally signing and polling for confirmation; mainnet writes remain blocked unless explicitly allowed.

Instructions

Submit a transaction XDR to Soroban RPC (with Horizon fallback). Mainnet writes are BLOCKED by default unless ALLOW_MAINNET_WRITES=true.

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": "submit_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
xdrYesBase64-encoded TransactionEnvelope XDR
signNoSign in-process using STELLAR_SECRET_KEY before submitting (non-mainnet only by default)
networkNoOptional network override (defaults to configured STELLAR_NETWORK).
wait_for_resultNoPoll until confirmed or timed out (default true)
wait_timeout_msNoPolling timeout in ms (1000-60000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/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 two meaningful traits: automatic Horizon fallback if Soroban RPC fails, and a hard mainnet write guard controlled by an environment flag. It omits other behavioral facts an agent would want — idempotency of resubmission, error/timeout semantics, and whether the response reports a hash or status.

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?

Two short sentences with zero waste; the operation and the safety constraint are both front-loaded and immediately actionable.

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 mutating, no-annotation, no-output-schema tool, the description covers the critical gating constraint but leaves gaps: what a successful return looks like (hash, confirmation status), what happens on timeout, and whether resubmitting is safe. Adequate but not complete for a transaction-broadcast 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 description coverage is 100%, with defaults and enum values documented in the schema itself, so the baseline is 3. The description adds no parameter-level detail beyond the schema (e.g., how wait_for_result and wait_timeout_ms interact with failure reporting).

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?

States a specific verb and resource ('Submit a transaction XDR to Soroban RPC') plus an internal routing detail (Horizon fallback). It does not distinguish itself from siblings like build_transaction or simulate_transaction, so an agent must infer that this is the actual broadcast step rather than a dry run.

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?

The description gives one important precondition — mainnet writes are blocked unless ALLOW_MAINNET_WRITES=true — which tells the agent when the call will fail. However, it never says when to choose this tool over simulate_transaction (dry run) or build_transaction (constructs the XDR), leaving the core workflow routing implicit.

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