Get swap quote (inputMint / outputMint / amount)
get_swap_quoteSame live, non-binding exact-input quote as get_quote, for agents that already use the inputMint / outputMint / amount / slippageBps convention (also accepted: tokenIn / tokenOut / amountIn, sellToken / buyToken / sellAmount, fromToken / toToken). amount is an integer in the token's smallest unit (for example 10000000 for 0.01 SOL); decimal amounts are rejected. The chain is inferred as Solana when a mint address is given and no chain is set; otherwise pass chain (see get_quote) or it defaults to Base. Only exact-input (swapMode ExactIn) is supported. Returns inputMint, inAmount, outputMint, outAmount (the estimate after the disclosed fee, before slippage), otherAmountThreshold (the minimum after slippage), swapMode, slippageBps, platformFee, priceImpactPct (a decimal string: 0.01 is one percent), routePlan, plus everything get_quote returns: the disclosed fee, any exit-liquidity warning (give it to the user in the server's own words), expiresAt, quoteTicket and openInHelmSwapUrl. Read-only: nothing is signed or sent and no wallet is needed. Quotes expire in about 15 seconds. Pass the whole result to build_swap_transaction when the user wants the transaction. Not a price feed. Tokenized stocks, perps and prediction markets are not available. Not financial advice.
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": {
"inputMint": "<inputMint>",
"outputMint": "<outputMint>",
"amount": "<amount>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Optional. chain: 'solana', 'base', 'bnb', 'ethereum', 'robinhood', 'ink', 'hyperevm', 'elysium' or 'arc', or a numeric EVM chainId (default 8453, Base). Inferred as Solana from a mint address. | |
| amount | Yes | Integer amount of inputMint in its smallest unit. Alias: amountIn, sellAmount, inAmount. | |
| chainId | No | Optional EVM chain id. | |
| referrer | No | Optional payout address (EVM 0x or Solana base58) to attribute a disclosed share of the fee. The trader pays the same fee either way. | |
| swapMode | No | Only ExactIn is supported. | |
| inputMint | Yes | Token to sell: Solana mint or EVM contract address, or a native symbol (SOL, ETH, BNB, HYPE). Alias: tokenIn, sellToken, fromToken. | |
| outputMint | Yes | Token to buy: Solana mint or EVM contract address, or a native symbol. Alias: tokenOut, buyToken, toToken. | |
| slippageBps | No | Slippage tolerance in basis points. Default 50. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | ||
| chain | No | 'solana' or an EVM chain id. | |
| inAmount | No | ||
| swapMode | No | ||
| warnings | No | ||
| expiresAt | No | ||
| inputMint | No | ||
| outAmount | No | Estimated amount out, after the disclosed fee and before slippage. | |
| routePlan | No | ||
| outputMint | No | ||
| platformFee | No | Disclosed fee already reflected in outAmount: { amount, feeBps }. | |
| quoteTicket | No | ||
| slippageBps | No | ||
| exitLiquidity | No | ||
| priceImpactPct | No | Decimal string: 0.01 is one percent. Omitted if unavailable. | |
| serverBroadcasts | No | ||
| openInHelmSwapUrl | No | ||
| priceImpactPercent | No | The same impact as a percent number (1 is one percent). | |
| otherAmountThreshold | No | Minimum amount out after slippage. |