stable-swap
Swap stable assets on Osmosis using specific pool IDs while setting minimum output amounts to manage transaction risks.
Instructions
Perform a stable asset 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": {
"mnemonic": "<mnemonic>",
"poolId": "<poolId>",
"tokenIn": "<tokenIn>",
"tokenOutDenom": "<tokenOutDenom>",
"tokenOutMinAmount": "<tokenOutMinAmount>"
},
"name": "stable-swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mnemonic | Yes | BIP-39 mnemonic phrase for signing the transaction | |
| poolId | Yes | Stable swap pool ID | |
| tokenIn | Yes | Token to swap | |
| tokenOutDenom | Yes | Denomination of token to receive | |
| tokenOutMinAmount | Yes | Minimum amount of token to receive | |
| gas | No | Gas limit (default: auto-estimate) | |
| gasPrice | No | Gas price (default: 0.025uosmo) | |
| memo | No | Transaction memo |