Skip to main content
Glama

SoFinance

prepare_open_position

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 submit_open_position. 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 submit_signed_transaction — 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": "prepare_open_position"
  }
}

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. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (which only say non-readonly, open-world, non-destructive), the description discloses that nothing is signed server-side, that signing order is wallet-then-mint, that the signUrl path returns a preview-only tx, and that constraints like the 1232-byte limit, fresh blockhash, and full simulation apply. It even enumerates response artifacts (HMAC permit, summary, signUrl) despite there being no output schema.

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 strongest constraint and the preferred path are front-loaded, and almost every clause carries new information. The telegraphic fragments ('HMAC permit, summary, signUrl.') and stacked clauses make it dense to parse, slightly reducing readability without wasting much space.

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, non-idempotent preparation tool with no output schema, the description covers the signing model, the two workflow branches, size/simulation guarantees, and the shape of the response. What is missing is semantics for the pricing and preset parameters, which an agent must guess from names and defaults alone.

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?

With only 45% schema description coverage across 11 parameters, the description compensates strongly for the pivotal one — nftMint — explaining why to supply it and when to omit it. However, it says nothing about minPrice/maxPrice, rangePreset, resaleFloorBps, slippageToleranceBps, or inputKind, which remain bare names with defaults. That is adequate where the schema carries the load but leaves real gaps given the low coverage.

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 artifact — 'Prepare an unsigned, fully-simulated transaction that opens a new CLMM position' — which is unmistakable against siblings like submit_open_position and submit_signed_transaction. It also explicitly rules out submit_signed_transaction with a reason (two required signers), so an agent can distinguish intent without opening a schema.

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 a clear preferred path ('Prefer passing nftMint ... so the server never signs') with the rationale, an explicit fallback condition ('Without nftMint, open signUrl'), and an explicit non-use case ('Not submit_signed_transaction'). The two-branch workflow, including the ordering of wallet vs mint signatures, leaves little to inference.

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