Skip to main content
Glama

Prepare new position

lp_open_prepare

Prepare an unsigned, fully-simulated transaction that opens a new CLMM position. Prefer passing nftMint from an agent-held Keypair so the server never signs: wallet signs first, then add the mint signature on the wallet-returned tx and call lp_open_submit. Without nftMint, open signUrl: the sign page generates the mint in the browser, re-prepares, wallet signs first, then the mint (the returned tx is a preview only). HMAC permit, summary, signUrl. 1232-byte limit, fresh blockhash, full simulation. Not lp_add_submit — this tx has two required signers.

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>",
      "poolId": "<poolId>",
      "inputMint": "<inputMint>",
      "inputKind": "<inputKind>",
      "amount": "<amount>"
    },
    "name": "lp_open_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in token units
poolIdYesRaydium CLMM pool id
walletYesWallet public key
nftMintNoClient-generated position NFT mint public key. Prefer this so the server never signs. Omit only for the MCP signUrl fallback.
maxPriceNo
minPriceNo
inputKindYes
inputMintYesInput asset mint, or "SOL" / "USDC"
rangePresetNostandard
resaleFloorBpsNo
slippageToleranceBpsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations it discloses a lot: no server signing, two required signers, a 1232-byte limit, fresh blockhash, full simulation, and that the signUrl-path transaction is a preview only. The one gap is that 'HMAC permit, summary, signUrl' is a bare noun list without saying what each return value means or when a permit is required.

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 workflow and the safety constraint are front-loaded, and almost every sentence carries information. The clipped fragment 'HMAC permit, summary, signUrl.' is terse to the point of being unclear, which costs it polish but not much length.

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 an 11-parameter mutating prepare tool with no output schema, the description covers the signing workflow, signer count, size/simulation constraints, and return artifacts. It falls short only on the pricing/range/resale parameters, which shape the transaction the agent is building.

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 coverage is 45% (11 params), and the description only adds meaning to nftMint, which the schema already documents. Critical CLMM parameters — minPrice, maxPrice, rangePreset, resaleFloorBps, slippageToleranceBps — are never explained in either place, so the description does not compensate for the coverage 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 description opens with a specific verb and resource: 'Prepare an unsigned, fully-simulated transaction that opens a new CLMM position.' It also positively distinguishes itself from lp_add_submit in the closing sentence, so an agent does not need to inspect schemas to tell them apart.

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

Usage Guidelines5/5

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

It gives explicit branching guidance: prefer nftMint from an agent-held Keypair so the server never signs; if nftMint is absent, open signUrl instead. It also names the follow-up call (lp_open_submit) and states an exclusion ('Not lp_add_submit — this tx has two required signers').

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