Jupiter Smart Swap
jupiter_smartSwapFetches a quote and builds swap instructions for Solana token swaps in one call. Returns instructions and summary for transaction assembly.
Instructions
Smart Swap — all-in-one compound tool that fetches a quote and builds swap instructions in a single call. Provide input/output mints, amount, and wallet address to get back a quote, individual swap instructions, and a human-readable summary. The returned instructions can be assembled into a transaction and signed. This is the recommended entry-point for AI agents preparing a swap. SAP MCP context: Jupiter protocol tools are served as AgentKit ecosystem tools. Use them for quote, route, and swap preparation, then use SAP transaction preview/sign/submit tools when an unsigned transaction must pass MCP signer policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Raw token amount to swap (in smallest unit, no decimals) | |
| swapMode | No | Swap mode (default: ExactIn) | |
| inputMint | Yes | Source token mint address | |
| feeAccount | No | Solana wallet public key (base58) | |
| outputMint | Yes | Destination token mint address | |
| maxAccounts | No | Max accounts in transaction (default: 64) | |
| slippageBps | No | Slippage tolerance in bps (e.g. 50 = 0.5%) | |
| userPublicKey | Yes | Wallet public key that will sign the transaction | |
| platformFeeBps | No | Platform fee in bps for referral revenue | |
| dynamicSlippage | No | Enable dynamic slippage for better execution | |
| onlyDirectRoutes | No | Restrict to single-hop routes for lower latency | |
| wrapAndUnwrapSol | No | Auto wrap/unwrap SOL (default: true) | |
| asLegacyTransaction | No | Return a legacy transaction instead of v0 | |
| destinationTokenAccount | No | Solana wallet public key (base58) | |
| dynamicComputeUnitLimit | No | Use dynamic compute unit limit based on simulation | |
| restrictIntermediateTokens | No | Restrict intermediate tokens to reduce risk | |
| computeUnitPriceMicroLamports | No | Priority fee in micro-lamports per compute unit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |