estimate-swap
Calculate expected token amounts for swaps on Osmosis pools before executing transactions.
Instructions
Estimates the result of a token swap
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": {
"poolId": "<poolId>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amount": "<amount>"
},
"name": "estimate-swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poolId | Yes | The ID of the liquidity pool | |
| tokenIn | Yes | Input token denomination | |
| tokenOut | Yes | Output token denomination | |
| amount | Yes | Amount to swap |