get_swap_quote
Calculate the best swap rate for any token pair on Solana using Jupiter DEX aggregator, requiring input/output mint addresses and amount.
Instructions
Get a swap quote from Jupiter DEX aggregator
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 |
|---|---|---|---|
| input_mint | Yes | Input token mint address (or 'SOL' for native SOL) | |
| output_mint | Yes | Output token mint address (or 'SOL' for native SOL) | |
| amount | Yes | Amount of input token (UI amount) | |
| slippage_bps | No | Slippage tolerance in basis points (default 50 = 0.5%) |