Skip to main content
Glama

Prepare add liquidity

lp_add_prepare

Prepare an unsigned, fully-simulated transaction for adding liquidity. Returns base64-encoded transaction for signing, HMAC permit, and summary. The server NEVER holds private keys. Transaction must be signed by the user/agent wallet. Includes: full simulation, 1232-byte limit check, Jupiter swap + Raydium increase_liquidity_v2, short-lived permit. Failure modes: same as lp_add_quote, plus simulation failure, size limit, blockhash expiry. After signing, use lp_add_submit.

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": {
      "wallet": "<wallet>",
      "positionMint": "<positionMint>",
      "inputMint": "<inputMint>",
      "inputKind": "<inputKind>",
      "amount": "<amount>"
    },
    "name": "lp_add_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in token units
walletYesWallet public key
inputKindYesAsset kind: 'native' or 'token'
inputMintYesInput asset mint address
positionMintYesPosition NFT mint address
resaleFloorBpsNoResale floor in basis points (9500-10000, default 9900)
slippageToleranceBpsNoAdd-liquidity price tolerance in basis points (0-500, multiple of 10, default 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the transaction is unsigned and fully simulated, that the server never holds private keys, what the return payload includes, and several important failure modes including simulation failure, size-limit issues, and blockhash expiry. This is rich behavioral context that an agent needs before calling the tool.

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?

The description is information-dense and front-loaded with the core action and return values. Some sentences, such as the repeated emphasis on signing and key custody, could be tightened, but there is little wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a preparation tool with seven parameters, no output schema, and explicit annotations, the description covers the essential behavior, return contents, signing requirement, simulation and size checks, failure modes, and the next workflow step. Nothing critical appears missing for correct invocation.

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 the input schema already documents all seven parameters, including enum and defaults. The description adds useful process context but does not add meaning to individual parameters beyond what the schema provides.

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 description states a precise verb and resource: it prepares an unsigned, fully-simulated transaction for adding liquidity. It clearly distinguishes this preparation step from submission by naming lp_add_submit as the next action and referencing lp_add_quote for shared failure modes.

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 gives clear workflow context by saying the transaction must be signed by the user/agent wallet and that lp_add_submit should be used afterward, and it points to lp_add_quote for shared failure modes. It does not explicitly state prerequisites or when not to use this tool, so it falls short of fully explicit when/when-not guidance.

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