Swap Price Impact
workflow.run_swap_price_impactLive price-impact quote for a Solana token swap: routed through Jupiter (the same aggregator real swaps use) across every pool it knows about, not a single-pool estimate. Works in both directions: side "sell" (default) sells a token into USDC or SOL, side "buy" spends USDC or SOL to buy the token. Edge cases: mint a valid Solana base58 address (32 to 48 characters); amount above zero; side sell (default) or buy; outputAsset USDC (default) or SOL. Quotes come live from Jupiter and are a moment in time; an unknown token or no route returns routable false with an error and no figures. Solana only. Not covered: EVM swaps, MEV and sandwiching, priority fees, a price that moves between the quote and your swap, and tokens Jupiter cannot route. Use when user asks "how much slippage will I eat swapping X tokens?", "what will I actually get if I sell N tokens?" or "what do I get buying this token with 500 SOL?". Returns: side, outputAmount (quote asset when selling, tokens when buying), priceImpactPct, effectivePrice (quote asset per token in both directions), marketPriceUsd, liquidityUsd, routable (false + error if the size can't be routed at all).
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": {
"mint": "<mint>",
"amount": "<amount>"
},
"name": "workflow.run_swap_price_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | Solana mint address of the token being sold or bought (base58) | |
| side | No | sell: sell the token for outputAsset (default). buy: spend outputAsset to buy the token. | |
| amount | Yes | Amount to swap, in human units (not raw base units): tokens when side is sell, units of outputAsset to spend when side is buy | |
| outputAsset | No | The quote asset: received when selling, paid with when buying. Default USDC. |