Swap quote
swap_quoteGet a Jupiter swap quote for any Solana token pair. Returns output amount, price impact, route, and fees. Essential before executing any trade. Costs $0.001 USDC per call.
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": "swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Input amount in smallest units (e.g. '1000000' for 1 USDC) | |
| inputMint | Yes | Input token mint address (base58) | |
| outputMint | Yes | Output token mint address (base58) | |
| slippageBps | No | Slippage tolerance in basis points (default: 50 = 0.5%) |