solana_get_swap_quote
Fetch a swap quote from Jupiter DEX aggregator to know the exact exchange rate and slippage before swapping tokens on Solana.
Instructions
Get best 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": {
"inputMint": "<inputMint>",
"outputMint": "<outputMint>",
"amount": "<amount>"
},
"name": "solana_get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of input tokens (in smallest denomination) | |
| inputMint | Yes | Input token mint address | |
| outputMint | Yes | Output token mint address | |
| slippageBps | No | Slippage tolerance in basis points (optional, default 50 = 0.5%) |