cpu_quote_swap
Preview an ETH↔$CPU swap before committing: get the expected output after fees and the minimum after slippage, with no transaction or approval. Use the quote to size your trade.
Instructions
Preview an ETH↔$CPU swap without committing: returns the expected output from the Uniswap v4 Quoter (already net of the pool fee) and the minimum you would receive after slippage (a percent, e.g. 0.5 = 0.5%). It has no side effects — no approval, no transaction. Use it before cpu_swap to size the trade.
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": {
"sell": "<sell>",
"amount": "<amount>"
},
"name": "cpu_quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sell | Yes | Token to spend: ETH (to buy $CPU) or CPU (to sell for ETH). | |
| amount | Yes | Amount of the `sell` token to spend, as a decimal string (e.g. "0.5"). 18 decimals. | |
| slippage | No | Max slippage as a percent (e.g. 0.5 = 0.5%); the floor on what you receive. Default 0.5. |