Skip to main content
Glama

Hookr

Build an add of liquidity

hookr_build_add_liquidity
Read-onlyIdempotent

Builds 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

NameRequiredDescriptionDefault
lowerNoThe range's lower price, in the quote per token, as hookr_build_launch takes it. Set lower and upper, or fullRange.
upperNoThe range's upper price, in the quote per token.
poolIdYesThe pool's 32-byte Uniswap v4 PoolId, 0x and 64 hex characters.
walletYesThe wallet that signs, pays and owns the position.
fullRangeNoEvery price the pool can hold, in place of lower and upper.
quoteAmountNoHow much of the pool's quote currency (ETH, HOOKR, …) to add, in its own units.
tokenAmountNoHow 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

NameRequiredDescriptionDefault
poolNo
callsYesUnsigned calls, in the order to send them.
rangeNo
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, needs_approval, refused or unknown.
depositNo
deadlineNo
liquidityNoThe position's liquidity at the pool's price now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: launch-guard and Agent-gate checks, simulation from the wallet, native ETH routed as the call's value, and excess returned in the same transaction. It also enumerates the full outcome space (ok with mint call and gas, needs_approval, refused, unknown). The build-only framing is consistent with readOnlyHint=true and destructiveHint=false.

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?

Purpose is front-loaded and every clause carries real information (guards, approvals, ETH value, refund, error outcomes). It is one dense run-on sentence with many comma-joined clauses, which makes it harder to scan than a short bulleted breakdown would be.

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 7-parameter builder with an output schema and full annotation coverage, the description covers what an agent must know: required inputs, the approval-then-rebuild loop, guard failure modes, and how value and leftovers are handled. Nothing material is left unexplained relative to its complexity.

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 cross-parameter meaning the schema does not: one amount suffices for a one-sided range, both are needed for a range around the price, and the smaller amount sizes the position. Range-vs-fullRange selection is also restated clearly.

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 add of liquidity to a Hookr pool from a wallet') and grounds it in a concrete mechanism (a new Uniswap PositionManager position over a user-set range), which cleanly separates it from sibling builders like remove_liquidity or swap. An agent knows exactly what the tool produces without opening the schema.

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 clear invocation context: supply poolId, wallet, an amount, and a range, and it explains the follow-up loop ('needs_approval with the Permit2 approvals to send first and then build again'). It does not name any alternative tool or state when not to use this one, so it stops short of explicit routing guidance.

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