Skip to main content
Glama

Quote new position

lp_open_quote
Read-onlyIdempotent

Quote opening a NEW Raydium CLMM position in a pool (no existing NFT). Input SOL/USDC/pool token, amount, and a price range (presets tight ±0.05% / standard ±0.3% / wide ±1%, or custom minPrice/maxPrice in B per 1 A). Returns expected A/B after Jupiter swap-to-ratio, tick-aligned range, in/out-of-range, price impact, refundable vs non-refundable SOL rent (NFT + tick arrays), and Token-2022/freeze flags. Fails clearly on insufficient balance, >5% impact, transfer-fee/freeze, or unfunded tick arrays the wallet cannot pay. Read-only.

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_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in token units (e.g. '1.5')
poolIdYesRaydium CLMM pool id (from pools_list)
walletYesWallet public key
maxPriceNoCustom range max price (B per 1 A), required if rangePreset=custom
minPriceNoCustom range min price (B per 1 A), required if rangePreset=custom
inputKindYes'native' for SOL, 'token' otherwise
inputMintYes"SOL" or "USDC" (resolved to So11111111111111111111111111111111111111112 / EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v), or a mint address in the pool
rangePresetNoDefault standard (±0.3% around current B-per-A price)standard
resaleFloorBpsNoMinimum resale ratio in basis points (9500-10000, default 9900)
slippageToleranceBpsNoOpen-position price tolerance in basis points (0-500, default 100). Jupiter swap slippage stays 0.5%.

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?

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so the trailing "Read-only." is largely redundant, but the description goes well beyond them: it enumerates the returned fields (post-Jupiter expected A/B, tick-aligned range, in/out-of-range, price impact, refundable vs non-refundable SOL rent, Token-2022/freeze flags) and the concrete failure modes including the >5% price-impact abort. This is exactly the behavioral disclosure an agent needs before committing to a quote.

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 purpose and the NEW-vs-existing distinction are front-loaded, and the return-value and failure clauses are packed into dense but information-bearing sentences. The third sentence is long and enumerates many returned fields in one breath, which slightly hurts scanability, but there is no filler.

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?

With 10 parameters, two enums, and no output schema, the description carries the return-value burden itself and does so thoroughly, including rent accounting and the Token-2022/freeze edge cases. Combined with the stated failure conditions, an agent has enough to call it correctly and interpret the result without guessing.

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 description coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: it spells out all three preset magnitudes (tight ±0.05% / standard ±0.3% / wide ±1%) where the schema only documents standard, and restates the "B per 1 A" price convention for custom ranges. It does not explain resaleFloorBps or the swap-slippage interaction beyond what the schema says, so it falls short of a 5.

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 ("Quote opening a NEW Raydium CLMM position") and immediately scopes it with "(no existing NFT)", which separates it from the lp_add_quote sibling. The pool context (Raydium CLMM) and the required inputs are named in the same sentence, so an agent can identify the 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?

The parenthetical "no existing NFT" plus the input list gives a clear condition for selection, and the "Fails clearly on..." sentence tells the agent which preconditions must hold before calling. It never names lp_open_prepare/lp_open_submit or says what to do after a quote, so routing guidance is incomplete but the usage 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