get_swap_quote
Fetch a Jupiter swap quote to preview the expected output for swapping Solana tokens before executing a trade.
Instructions
Get Jupiter swap quote - check how much you would get for a swap
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": {
"input_mint": "<input_mint>",
"output_mint": "<output_mint>",
"amount": "<amount>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to swap (in smallest unit, e.g., lamports for SOL) | |
| slippage | No | Slippage tolerance in percent (default: 1) | |
| input_mint | Yes | Input token mint (use So11111111111111111111111111111111111111112 for SOL) | |
| output_mint | Yes | Output token mint address |