Skip to main content
Glama

Quote add liquidity

lp_add_quote
Read-onlyIdempotent

Get a quote for adding liquidity to a position. Estimates swap routes (Jupiter), price impact, output amounts, and immediate resale gap. Verifies NFT ownership, pool state, and balance. Read-only. Quotes expire quickly (configured TTL). Failure modes: insufficient balance, high price impact (>5%), resale floor breach, quote expiration, pool state changes.

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

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in token units (e.g. '1.5' for 1.5 SOL)
walletYesWallet public key
inputKindYesAsset kind: 'native' for SOL, 'token' for SPL tokens
inputMintYesInput asset mint address (from positions_list assets)
positionMintYesPosition NFT mint address (from positions_list)
resaleFloorBpsNoMinimum resale ratio in basis points (9500-10000, default 9900 = 1% max loss). Conservative immediate-resale protection.
slippageToleranceBpsNoAdd-liquidity price tolerance in basis points (0-500, multiple of 10, default 100 = 1%). Liquidity is sized so the pool price may drift this much before execution; the unused reserve stays in the wallet. Jupiter swap slippage stays fixed at 0.5%.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, yet the description adds real behavioral context beyond them: quotes have a configured TTL and expire, the tool verifies NFT ownership, pool state and balance, and it names concrete failure thresholds (price impact >5%, resale floor breach, pool state changes). This is exactly the kind of pre-call risk disclosure a mutation-adjacent flow needs.

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?

Front-loaded with purpose, then outputs, then verification, then expiry, then failure modes — a logical order with no filler. It is dense but every sentence carries distinct information; a slightly tighter phrasing of the verification clause would make it a 5.

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 seven-parameter, no-output-schema quote tool, the definition covers the important behavioral edges: verification steps, TTL expiry, and enumerated failure modes. It leaves the next-step relationship to prepare/submit and any quote-refresh guidance unstated, which is the remaining gap.

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 all seven parameters including resaleFloorBps and slippageToleranceBps are already documented in detail in the schema. The description references the concepts (resale gap, price impact) but adds no syntax, ranges, or defaults beyond what the schema states, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb and resource ('Get a quote for adding liquidity to a position') and the second enumerates the outputs (swap routes, price impact, output amounts, resale gap), so the agent knows exactly what it gets back. It does not explicitly differentiate itself from lp_add_prepare or lp_add_submit, which is the only thing keeping it from a 5.

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

Usage Guidelines3/5

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

Usage context is implied by the name and the 'Read-only' note, and the failure-mode list tells the agent what conditions abort a quote, but the description never states when to call this versus lp_add_prepare/lp_add_submit or that this is the first step in a quote-prepare-submit sequence. The agent has to infer the workflow ordering.

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