Skip to main content
Glama

Hookr

Build a fee collection

hookr_build_collect_fees
Read-onlyIdempotent

Builds the collection of a position's uncollected LP fees to the wallet that owns it, the principal untouched, simulated from the wallet: name tokenId for a position on Uniswap's PositionManager, or poolId for the launch's own position on a pool the wallet launched, which goes through the Launcher's withdraw with no liquidity and also moves the pool's arbitrage recapture share into the wallet's claims (hookr_claims). It returns ok with the call and its gas, 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": {
      "wallet": "<wallet>"
    },
    "name": "hookr_build_collect_fees"
  }
}

Input Schema

NameRequiredDescriptionDefault
poolIdNoA pool the wallet launched through Hookr: its launch's own position, which the Launcher holds for the wallet. Name tokenId or poolId, not both.
walletYesThe wallet that signs and is paid.
tokenIdNoA position on Uniswap's PositionManager, by its token id. Name tokenId or poolId, not both.

Output Schema

NameRequiredDescriptionDefault
doesNo
feesNoThe fees the call collects; null where they did not read, never zero.
callsYesUnsigned calls, in the order to send them.
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, refused or unknown.
deadlineNo
positionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnly/idempotent/non-destructive, and the description adds meaningful context beyond them: the result is a simulated call ('It returns ok with the call and its gas, or refused or unknown with the reason and no calls'), and the poolId path routes through the Launcher's withdraw with zero liquidity and also credits the arbitrage recapture share to hookr_claims. That is a genuine side-effect disclosure an agent would not get from the annotations alone.

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?

The purpose is front-loaded and no clause is truly wasted, but the whole definition is a single ~90-word sentence with stacked subordinate clauses ('which goes through the Launcher's withdraw with no liquidity and also moves...'), making the return contract and the poolId side effect hard to parse. Splitting into purpose / identifier choice / return contract would read far better.

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?

For a 3-parameter build-simulate tool with an output schema, the description covers the essentials: what it does, how to pick between the two optional identifiers, the side effect on the poolId path, and the success/failure envelope. Nothing critical is missing, though a note on what 'the call' is meant to be used for afterwards would close the loop.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the prose adds semantics the schema does not: that tokenId lives on Uniswap's PositionManager, that poolId denotes a position the Launcher holds on the wallet's own pool, and that exactly one must be supplied. Wallet is only implicit rather than restated, which keeps it from a 5.

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?

The description pairs a specific verb with a specific resource ('Builds the collection of a position's uncollected LP fees to the wallet that owns it') and clarifies the scope ('the principal untouched', 'simulated from the wallet'). It distinguishes the two identification paths (tokenId on PositionManager vs poolId for a Hookr launch), but never names a sibling claim tool (e.g. hookr_build_claim / hookr_build_revenue_claim) as the alternative, so differentiation is by resource rather than by explicit routing.

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?

It gives concrete selection guidance for the two mutually exclusive identifiers: 'name tokenId for a position on Uniswap's PositionManager, or poolId for the launch's own position on a pool the wallet launched'. That is clear when-to-use guidance for the ambiguous parameter, but there are no when-not-to-use conditions and no pointer to the other claim-building siblings.

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