Skip to main content
Glama

Hookr

Lock LP as a Chop log

hookr_build_chop_log
Read-onlyIdempotent

Builds, one stage per call, the unsigned calls that open a Chop log for a token through Hookr's lock, each simulated from the wallet: the token's approval to the lock, CHOP's approval, then open, which wraps the token, pairs it with CHOP, stakes the LP and locks it until the unlock time; pass the same arguments on every call, send the stage's call and call again, and after the open pass its transaction hash as openTx to read the position it locked.

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>",
      "token": "<token>",
      "tokenAmount": "<tokenAmount>",
      "chopAmount": "<chopAmount>"
    },
    "name": "hookr_build_chop_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe token to open a Chop log for.
openTxNoThe open's transaction hash, once it is sent: the answer is then done with the position it locked, and nothing new is built.
walletYesThe wallet that holds the token and CHOP and signs every call.
foreverNoLock the LP for good instead: it never unlocks, so pass it only when that is meant.
chopAmountYesHow much CHOP to pair against it, in whole CHOP, the same on every call; the two amounts set the pair's opening price.
unlockDaysNoDays until the LP can be released, one of 30, 180, 365 or 730 (default 365).
beneficiaryNoWho collects the CHOP rewards and gets the LP back after the unlock time (default the wallet).
tokenAmountYesHow much of the token to wrap and pair, in whole tokens, the same on every call.

Output Schema

NameRequiredDescriptionDefault
lockNoHookr's Chop log lock.
nextNoWhat to do after these calls.
noteNoWhat Chop can change and what Hookr takes, said beside every call.
callsYesUnsigned calls for this stage, in the order to send them.
payerNoThe wallet that signs and pays the deposit.
stageNoapprove-token, approve-chop, open or done: what the chain is waiting for.
termsNo
tokenNo
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, refused or unknown.
foreverNoWhether the LP is locked for good.
warningNoSaid when the LP would be locked for good.
gasFloorNoThe least gas the open call is sent with.
positionNo
recipientNoWho collects the CHOP rewards and gets the LP back: the beneficiary.
sendBeforeNoThe Unix time in seconds the open call must land by (open stage only).
beneficiaryNo
recipientIsPayerNoFalse when the beneficiary is not the signing wallet; the open call's label says so too.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false and idempotentHint, so the safety profile is covered; the description adds genuinely new behavior: three ordered stages, each simulated from the wallet, and that supplying openTx terminates building and returns the locked position. It does not state what happens if a stage simulation fails or whether a partially sent sequence can be resumed, which is the remaining behavioral gap.

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?

It is front-loaded with purpose and every clause carries information about the staging protocol or the on-chain effect of the open call. The downside is a single long semicolon-chained sentence whose flow instructions would be easier to follow as a short ordered 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?

For an eight-parameter, multi-stage builder with an output schema, the description covers the call protocol and what each stage does on chain, which is the information an agent cannot get from the schema. Missing only edge-case behavior (failed simulation, restarting mid-sequence) for full completeness.

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 baseline is 3, and the description earns above it by explaining that tokenAmount and chopAmount must be identical across calls and together set the pair's opening price, plus the terminal semantics of openTx. The inter-call consistency rule for tokenAmount and chopAmount is meaning the schema does not carry.

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 opens with a specific verb and resource: it builds the unsigned calls that open a Chop log through Hookr's lock, and it states the staged, one-stage-per-call nature up front. It never names or distinguishes itself from siblings such as hookr_lp_lock or hookr_build_add_liquidity, so an agent must infer the boundary from the name alone.

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 clear procedural guidance: pass the same arguments on every call, send the stage's call, call again, and after the open pass its transaction hash as openTx. That is stronger than implied usage, but it offers no when-not guidance and no explicit comparison to sibling tools that also touch LP or liquidity.

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