swap_quote
Simulate a token swap to estimate the output amount and gas cost before executing on Sui.
Instructions
Get a swap quote by simulating a Move call. Returns estimated output amount and gas cost without executing.
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": {
"fromCoin": "<fromCoin>",
"toCoin": "<toCoin>",
"amount": "<amount>",
"poolId": "<poolId>"
},
"name": "swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fromCoin | Yes | Source coin type or shorthand (SUI, USDC, etc.) | |
| toCoin | Yes | Destination coin type or shorthand | |
| amount | Yes | Amount to swap (in token units, not MIST) | |
| poolId | Yes | Pool object ID to use for the swap |