pons_quote_swap
Get an on-chain Uniswap V4 swap quote for a graduated token, with hook fees included. Supports native ETH-quoted and ERC-20-quoted pools, returning amountOut, gas estimate, pool key, and price details.
Instructions
Quote a Uniswap V4 swap for a GRADUATED token via the on-chain V4Quoter (hook fees included). Native ETH-quoted and ERC-20-quoted pools. Returns amountOut, quoter gas estimate, pool key, sqrtPrice/tick/liquidity.
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": {
"tokenAddress": "<tokenAddress>",
"side": "<side>",
"amount": "<amount>"
},
"name": "pons_quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | buy = quote asset in (ETH for native pools, the pair token otherwise), token out; sell = token in, quote asset out | |
| amount | Yes | Input amount as a decimal string — for buys on ERC-20-quoted pools this is PAIR-TOKEN units (e.g. USDG, 6 decimals), NOT ETH; for sells it is tokens | |
| tokenAddress | Yes | Graduated token address |