{"name":"swap_price_impact","title":"Constant-product swap output and price impact","description":"For a Uniswap-V2-style pool, computes the exact output of a swap (the router's integer formula), the total cost versus the spot price including the fee, and the part due to trade size alone, in basis points. Inputs are reserves and amounts in base units. Does not know any pool: you supply the reserves.","inputSchema":{"type":"object","properties":{"reserveIn":{"type":"string"},"reserveOut":{"type":"string"},"amountIn":{"type":"string"},"feeBps":{"type":"integer","minimum":0,"maximum":10000}},"required":["reserveIn","reserveOut","amountIn"],"additionalProperties":false},"example":{"reserveIn":"1000000000","reserveOut":"500000000000","amountIn":"1000000","feeBps":30},"call":{"method":"POST","url":"https://logicnodes.io/v1/tools/swap_price_impact","body":"JSON object matching inputSchema"},"price":"$0.001","freeAllowance":"25 calls per day per caller (signed wallet, else IP + user agent), then x402 ($0.001 in USDC); see https://logicnodes.io/v1/payments/methods"}