Skip to main content
Glama

SoFinance

submit_signed_transaction

Destructive

Submit a signed add-liquidity transaction. Re-verifies HMAC permit, re-reads on-chain state, re-simulates, then broadcasts. Pass signedTransaction plus every field of submitArgs from the prepare_transaction response, unchanged. Failure modes: permit mismatch, state changed (liquidity, balance, NFT), expired (time or blockhash), simulation failure. Returns transaction signature on success.

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": {
      "signedTransaction": "<signedTransaction>",
      "permit": "<permit>",
      "wallet": "<wallet>",
      "selection": "<selection>",
      "requested": "<requested>",
      "expectedLiquidity": "<expectedLiquidity>",
      "startingLiquidity": "<startingLiquidity>",
      "floorBps": "<floorBps>",
      "expiresAt": "<expiresAt>",
      "lastValidBlockHeight": "<lastValidBlockHeight>",
      "rangeSide": "<rangeSide>",
      "startingBalances": "<startingBalances>"
    },
    "name": "submit_signed_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
permitYesHMAC permit from prepare_transaction
walletYesWallet public key
floorBpsYesResale floor basis points
expiresAtYesExpiry timestamp (ms) from summary
rangeSideYesPosition range side from summary
requestedYesRequested amount from summary
selectionYes
startingBalancesYes
expectedLiquidityYesExpected liquidity from summary
signedTransactionYesBase64-encoded signed transaction
startingLiquidityYesStarting liquidity from summary
unsignedTransactionNoBase64 prepared transaction from prepare_transaction. Pass this when the wallet rewrote the message (Phantom Lighthouse / ComputeBudget).
lastValidBlockHeightYesBlock height from summary

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark this as a destructive, non-idempotent, open-world write, but the description adds substantial behavior beyond that: HMAC permit re-verification, on-chain state re-read, re-simulation before broadcast, an enumerated set of failure modes (permit mismatch, state change, expiry, simulation failure), and the success return value. This is exactly the pre-call risk context an agent needs before broadcasting.

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?

Four tight sentences: action, execution sequence, failure modes, return value. The sequencing constraint is front-loaded and no sentence is filler.

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?

For a 13-parameter destructive write with no output schema, the description covers execution flow, sourcing of arguments, failure conditions, and the success return. It stops short of addressing retry safety after a failed simulation or what a partial-broadcast state would look like, which matters for a non-idempotent tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 85%, so most parameters are already documented, but the description adds the crucial constraint that all submitArgs fields must be echoed unchanged from the prepare_transaction response rather than constructed by the agent. It does not explain the optional unsignedTransaction path beyond what the schema already says.

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 ('Submit a signed add-liquidity transaction') and immediately ties it to the prepare_transaction step, which separates it from siblings like submit_open_position and submit_compound_transaction that handle different transaction types. An agent can identify the correct tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells the agent to pass signedTransaction plus every field of submitArgs from the prepare_transaction response, unchanged — a clear prerequisite and ordering rule. It does not explicitly state when not to use it (e.g. for open/withdraw/compound flows), relying on the name for that exclusion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources