prepare_uniswap_v3_collect
Harvest uncollected fees and tokens owed from a Uniswap V3 LP position by building an unsigned collect transaction. Requires wallet ownership of the tokenId; optionally send to a different recipient.
Instructions
Build an unsigned Uniswap V3 LP collect transaction — harvests every token the position is owed (decreased liquidity from prior prepare_uniswap_v3_decrease_liquidity calls + accrued swap fees) up to uint128.max per side. Hard-refuses when the tokenId is not owned by wallet. The protocol auto-settles uncollected fee growth into tokensOwed inside the call, so even a position with tokensOwed{0,1}=0 may receive tokens. recipient defaults to the wallet; pass an address to send the harvest elsewhere.
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": {
"wallet": "<wallet>",
"tokenId": "<tokenId>"
},
"name": "prepare_uniswap_v3_collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| chain | No | ethereum | |
| tokenId | Yes | ERC-721 tokenId of the LP NFT to harvest fees + tokensOwed from. Must be owned by `wallet`. | |
| recipient | No | Address to receive the harvested tokens. Default: wallet (the position owner). |