Skip to main content
Glama

Submit add liquidity

lp_add_submit
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 lp_add_prepare 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": "lp_add_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
permitYesHMAC permit from lp_add_prepare
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 lp_add_prepare. Pass this when the wallet rewrote the message (Phantom Lighthouse / ComputeBudget).
lastValidBlockHeightYesBlock height from summary

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructive/non-idempotent annotations, it discloses the internal pipeline (re-verifies HMAC permit, re-reads on-chain state, re-simulates, broadcasts) and enumerates concrete failure modes — permit mismatch, changed state, expiry by time or blockhash, simulation failure. That materially changes how an agent should handle retries and errors on a destructive call.

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?

Five sentences in a deliberate order: action, mechanics, parameter provenance, failure modes, return value. No filler, and the critical constraint (pass fields unchanged) is front-loaded before the error list.

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 tool with no output schema, it covers the preconditions, failure taxonomy, and the success return ('transaction signature'). It stops short of saying the signature is not confirmation and that tx_status is needed to verify inclusion, which would have closed the remaining loop.

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 the schema already explains most fields; the description adds the provenance constraint that every submitArgs value must come from the prepare response and be passed unmodified, which the per-field descriptions do not state. It does not mention the optional unsignedTransaction escape hatch documented in the schema, leaving that one gap.

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?

The opening sentence names a specific verb and resource ('Submit a signed add-liquidity transaction') and positions the tool at the end of the prepare/submit pair by requiring fields 'from the lp_add_prepare response'. An agent can distinguish it from lp_add_prepare and lp_add_quote without opening any 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?

It clearly states the sequencing condition: use after lp_add_prepare, passing signedTransaction plus every submitArgs field 'unchanged'. It does not name explicit alternatives or when-not conditions (e.g., use tx_status to confirm), but the applicable context is unambiguous.

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