AMM constant-product x*y=k swap calculator ($0.01)
amm_constant_product_calc[Paid x402 / X-Bazaar-Key: 0.01 USDC] Compute Uniswap v2 constant-product swap output, effective price, fee deduction, and price impact percentage.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "amm_constant_product_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_in | No | Swap input token amount |