swap_aggregate
Calculate optimal split routes and estimated output amount for a token pair across Cardano DEXes.
Instructions
Get aggregated swap data for a token pair across Cardano DEXes. Returns optimal split routes and estimated output amount.
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": {
"tokenInAmount": "<tokenInAmount>",
"slippage": "<slippage>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>"
},
"name": "swap_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | Yes | Input token identifier. Use 'lovelace' for ADA, or 'policyId.assetNameHex' format for native tokens | |
| slippage | Yes | Slippage tolerance percentage (e.g., 0.5 for 0.5%) | |
| tokenOut | Yes | Output token details | |
| tokenInAmount | Yes | Amount of input token to swap (in smallest unit) | |
| blacklisted_dexes | No | List of DEX names to exclude from routing (e.g., ['Minswap', 'SundaeSwap']) |