quote_add_liquidity
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": "quote_add_liquidity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in token units (e.g. '1.5' for 1.5 SOL) | |
| wallet | Yes | Wallet public key | |
| inputKind | Yes | Asset kind: 'native' for SOL, 'token' for SPL tokens | |
| inputMint | Yes | Input asset mint address (from list_positions assets) | |
| positionMint | Yes | Position NFT mint address (from list_positions) | |
| resaleFloorBps | No | Minimum resale ratio in basis points (9500-10000, default 9900 = 1% max loss). Conservative immediate-resale protection. | |
| slippageToleranceBps | No | Add-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%. |