Skip to main content
Glama

Hookr

Tokenize v4 LP positions

hookr_build_tokenize
Read-onlyIdempotent

Builds, one stage per call, the unsigned calls that lock Uniswap v4 positions a wallet holds and mint a Hookr revenue token on their fees, as /tokenize does, each simulated from the wallet: the approval for Hookr's position door factory where it is missing, then the mint; pass the same arguments on every call, send the stage's call, and call again; the positions stay locked for good unless termDays is given, then go back to the wallet, and only their fees come out, less Hookr's 5% leg on positions off Hookr's hook.

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>",
      "positions": "<positions>"
    },
    "name": "hookr_build_tokenize"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe revenue token's name, the same on every call (default LP<id> Revenue for one position, LP Revenue for several).
supplyNoThe supply in whole revenue tokens, all minted to the wallet, the same on every call (default 1000000).
symbolNoThe revenue token's ticker, the same on every call (default LP<id>r for one position, LPr for several).
walletYesThe wallet that holds the positions, signs every call and becomes the token's creator.
termDaysNoDays until the positions go back to the wallet, one of 7, 30, 60, 90 or 180, the same on every call; leave it out to lock them for good.
positionsYesUniswap v4 position ids the wallet holds, comma-separated, 54 at most, the same on every call.

Output Schema

NameRequiredDescriptionDefault
legsNoEach position as the tokenizer previews it.
nextNoWhat to do after these calls.
callsYesUnsigned calls for this stage, in the order to send them.
stageNoapprove, mint or done: what the chain is waiting for.
termsNo
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, refused or unknown.
approvalNoWhat the approval call allows.
positionsNoThe position ids, as given.
sendBeforeNoThe Unix time in seconds the mint call must land by, or it reverts and must be built again; null for a lock for good (mint stage only).
doorFactoryNoThe factory that makes the doors the positions are locked in.
lockedUntilNoforever, or the Unix time in seconds after which the positions go back to the wallet (mint stage only).
revenueTokenNoThe revenue token's address, which follows from the wallet and the terms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial context beyond the annotations: calls are unsigned and simulated from the wallet (which explains the readOnlyHint on a transaction-building tool without contradicting it), positions are locked permanently by default, termDays returns them to the wallet, and only fees are extracted with a 5% Hookr cut on non-Hookr-hook positions. This is exactly the irreversibility and fee information the annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Information-dense and front-loaded, but delivered as one ~90-word run-on sentence with comma-chained clauses that are hard to parse on a single read. Nothing is redundant, yet the staging protocol and the locking/permanence rules would land better as separate short sentences or a list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the multi-stage nature, argument repetition, and the permanence/fee consequences for a moderately complex transaction-builder; the output schema carries return-value detail so it need not do that. The one gap is how an agent knows it has reached the final stage — 'call again' has no stated completion signal in the description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents name, symbol, supply, wallet, termDays and positions, including defaults, patterns and the 7/30/60/90/180 choice. The description reinforces termDays semantics in prose but adds no syntax or constraint detail the schema does not already carry; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: it builds the unsigned calls that lock v4 positions the wallet holds and mint a Hookr revenue token on their fees, and it names the behavior it mirrors ('as /tokenize does'). An agent can tell this apart from fee-collection or plain locking siblings because the minting of a revenue token is called out explicitly, though no sibling is named as the alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete invocation protocol — 'pass the same arguments on every call, send the stage's call, and call again' — plus the condition that selects the shorter lock ('unless termDays is given'). It stops short of naming when to prefer this over hookr_lp_lock or the other hookr_build_* flows, so comparison still requires inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources