Plan a position from a human price range
plan_positionAligns a human price range to Uniswap v3 ticks and converts amounts to wei, preparing inputs for building a mint transaction.
Instructions
READ-ONLY helper (builds no tx). Given a human price range (token1 per token0) and optional human token amounts, reads each token's decimals over RPC and returns the aligned tickLower/tickUpper (for the fee's tick spacing) plus wei amount0Desired/amount1Desired — ready to feed into build_mint. token0 must be < token1 by address. Does NOT compute the optimal amount ratio for the range.
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": {
"chainId": "<chainId>",
"token0": "<token0>",
"token1": "<token1>",
"fee": "<fee>",
"priceLower": "<priceLower>",
"priceUpper": "<priceUpper>"
},
"name": "plan_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | Yes | ||
| token0 | Yes | ||
| token1 | Yes | ||
| amount0 | No | ||
| amount1 | No | ||
| chainId | Yes | ||
| priceLower | Yes | ||
| priceUpper | Yes |