Solana swap quote
swap_quoteBest-route swap quote on Solana via Jupiter: tokens received, minimum after slippage, price impact and route. Quote only; executes nothing.
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": {
"from": "<from>",
"to": "<to>",
"amount": "<amount>"
},
"name": "swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Token to buy: symbol or mint | |
| from | Yes | Token to sell: symbol (SOL, USDC, BONK) or mint address | |
| amount | Yes | Amount of the 'from' token in normal units, e.g. 1.5 | |
| slippage_bps | No |