dex_calculate_slippage
Compute the minimum output amount from a DEX trade using expected amount and slippage percent, so you know the worst-case result before swapping.
Instructions
Calculate minimum output amount based on slippage tolerance
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": {
"expectedAmount": "<expectedAmount>",
"slippagePercent": "<slippagePercent>"
},
"name": "dex_calculate_slippage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expectedAmount | Yes | Expected output amount | |
| slippagePercent | Yes | Slippage tolerance percentage (e.g., 0.5 for 0.5%) |