Get swap quote
get_quoteGet a live, non-binding quote for swapping one token for another on a supported network (see the chain parameter). Use when the user asks what a specific swap (tokens, amount, network) would return, or wants to make one. Not a price feed. Returns the estimated and minimum amount received, slippage, price impact, the fee (feeAmount; the estimate is already net of it), an exit-liquidity warning when selling the token back looks costly or impossible, a short-lived quote ticket, and openInHelmSwapUrl (a link where the user reviews and signs in their own wallet). structuredContent.view has display-ready amounts: use those, don't convert smallest-unit values yourself, and if one is null say it is unavailable. The user already sees a card, so add context instead of repeating every number. Network fees are paid separately in the user's wallet. Read-only: nothing is signed or sent, and no wallet is needed. Use build_swap next only if the user wants the transaction and has given their wallet address. Tokenized stocks are not supported. 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": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Network. chain: 'solana', 'base', 'bnb', 'ethereum', 'robinhood', 'ink', 'hyperevm', 'elysium' or 'arc', or a numeric EVM chainId (default 8453, Base). | |
| chainId | No | EVM chain id. Ignored when chain is 'solana'. Default 8453. | |
| tokenIn | Yes | Token to sell: contract address or mint, or a native symbol (ETH, BNB, SOL, HYPE). | |
| amountIn | Yes | Integer amount of tokenIn in its smallest unit (for example 10000000 for 0.01 SOL, which has 9 decimals). | |
| 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. | |
| tokenOut | Yes | Token to buy: contract address or mint, or a native symbol. | |
| slippageBps | No | Slippage tolerance in basis points. Default 50. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Disclosed fee already reflected in the estimate (feeAmount in the fee token's smallest unit). | |
| live | No | ||
| chain | No | 'solana' or an EVM chain id. | |
| tokenIn | No | ||
| amountIn | No | Integer in tokenIn's smallest unit. | |
| tokenOut | No | ||
| warnings | No | ||
| expiresAt | No | Quote expiry as Unix time in milliseconds. | |
| minOutNet | No | Minimum amount out after slippage, smallest unit. | |
| slippageBps | No | Slippage tolerance in basis points. | |
| netOutAmount | No | Estimated amount out, smallest unit, already net of the fee. | |
| exitLiquidity | No | ||
| priceImpactPct | No | Price impact as a percent number, or omitted if unavailable. | |
| serverBroadcasts | No | ||
| openInHelmSwapUrl | No | https://helmswap.com link where the user reviews and signs in their own wallet. |