Build an add of liquidity
hookr_build_add_liquidityBuilds the add of liquidity to a Hookr pool from a wallet, as hookr.fun's add form does: a new position on Uniswap's PositionManager over the range you set, sized from the token or quote amount you give, checked against the pool's launch guard and, on an agents-only pool, the Agent gate, then simulated from the wallet. Give poolId, wallet, an amount (tokenAmount, quoteAmount, or both for a range around the price) and a range (lower and upper in the quote per token, or fullRange), and it returns ok with the mint call and its gas (a native ETH leg goes as the call's value, and what the pool does not take comes back in the same transaction), needs_approval with the Permit2 approvals to send first and then build again, or refused or unknown with the reason and no calls.
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": {
"poolId": "<poolId>",
"wallet": "<wallet>"
},
"name": "hookr_build_add_liquidity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lower | No | The range's lower price, in the quote per token, as hookr_build_launch takes it. Set lower and upper, or fullRange. | |
| upper | No | The range's upper price, in the quote per token. | |
| poolId | Yes | The pool's 32-byte Uniswap v4 PoolId, 0x and 64 hex characters. | |
| wallet | Yes | The wallet that signs, pays and owns the position. | |
| fullRange | No | Every price the pool can hold, in place of lower and upper. | |
| quoteAmount | No | How much of the pool's quote currency (ETH, HOOKR, …) to add, in its own units. | |
| tokenAmount | No | How much of the pool's token to add, in its own units. A range above or below the price takes one side, so one amount sizes it; a range around the price takes both, so give both (with one, the refusal names the other at the price now), and the smaller sizes the position. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | No | ||
| calls | Yes | Unsigned calls, in the order to send them. | |
| range | No | ||
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, needs_approval, refused or unknown. | |
| deposit | No | ||
| deadline | No | ||
| liquidity | No | The position's liquidity at the pool's price now. |