Skip to main content
Glama

Hookr

Build a removal of liquidity

hookr_build_remove_liquidity
Read-onlyIdempotent

Builds the removal of a share of a position's liquidity to the wallet that owns it, each amount out floored at the pool's price now less the slippage and simulated from the wallet: name tokenId for a position on Uniswap's PositionManager (the whole position burns it, as the positions page does), or poolId for the launch's own position on a pool the wallet launched, which goes through the Launcher's withdraw once its principal lock has ended. Removing is never gated, and 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_remove_liquidity"
  }
}

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.
percentNoThe share of the position's liquidity to take out, a whole percent (default 100). 100 on a PositionManager position burns it; its fees come out with the principal.
tokenIdNoA position on Uniswap's PositionManager, by its token id. Name tokenId or poolId, not both.
slippageBpsNoHow far below what the pool's price gives now each amount out may land, in basis points (default 50).

Output Schema

NameRequiredDescriptionDefault
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.
removesNo
deadlineNo
expectedNoWhat the pool's price gives now for the liquidity taken out.
positionNo
simulatedNoWhat the launcher's withdraw pays in the simulation.
minimumOutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/idempotent safely; the description goes well beyond them by explaining that this builds calls rather than executing, that amounts out are floored at the pool's price less slippage, that execution is simulated from the wallet, that removal is never gated, and what the ok/refused/unknown outcomes contain — behavior an agent cannot 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.

Conciseness4/5

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

Front-loaded with the verb and free of filler, but it is one long multi-clause sentence whose nested parentheticals make it slightly hard to parse on first read.

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

Completeness5/5

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

For a five-parameter, dual-path build tool with an output schema, the description covers both input routes, the lock precondition for poolId, slippage flooring, simulation, gating, and the success/refusal result shape — nothing an agent needs to call it correctly is missing.

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 already 100%, so the baseline is 3, but the description adds real meaning: tokenId and poolId are mutually exclusive, tokenId routes through PositionManager while poolId routes through the Launcher's withdraw and only after the principal lock has ended, and '100 burns it' clarifies percent semantics.

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

Purpose5/5

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

States a specific verb and resource ('Builds the removal of a share of a position's liquidity to the wallet that owns it') and then splits the operation into two concrete paths — tokenId on Uniswap's PositionManager versus poolId on the Launcher's own position — so an agent knows exactly what the tool does and how the two input shapes differ.

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

Usage Guidelines3/5

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

Usage context is implied rather than spelled out: 'Removing is never gated' tells the agent no approval step is needed, and 'the whole position burns it, as the positions page does' hints at the 100% case, but no sibling (e.g. add-liquidity, collect-fees) is named as an alternative and no explicit when-not-to-use condition is given.

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