Skip to main content
Glama

Hookr

Build a limit order

hookr_build_limit_order
Read-onlyIdempotent

Builds a limit order on Hookr's order book as the Limit tab places it, an unsigned call simulated from the wallet that escrows its input until a keeper fills it at the price or better; its status is ok (send the call), needs_approval (send the approval, then build again), or refused or unknown with the reason and no call.

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>",
      "poolId": "<poolId>",
      "side": "<side>",
      "amount": "<amount>",
      "price": "<price>"
    },
    "name": "hookr_build_limit_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipNoThe keeper tip the Limit tab offers: none, standard (the default) or most.
sideYesbuy spends the pool's quote currency for the token; sell spends the token for the quote currency.
priceYesThe limit price, in the quote currency per token.
amountYesWhat the order spends, in the input currency's own units.
poolIdYesA listed pool's PoolId, from hookr_pools.
walletYesThe wallet that signs; it is the order's recipient and owner.
lifetimeSecondsNoHow long the order stays open, in seconds (default 604800, seven days).

Output Schema

NameRequiredDescriptionDefault
callsYesUnsigned calls, in the order to send them.
orderNo
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, needs_approval, refused or unknown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes far beyond the annotations: discloses that input is escrowed until a keeper fills at price-or-better, that the call is unsigned/simulated, and enumerates the status outcomes (ok, needs_approval, refused, unknown) with the exact follow-up action for each. The readOnlyHint=true is consistent with 'builds an unsigned call' and not contradicted.

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 core action and dense with useful detail, though the single semicolon-chained sentence is harder to parse than a short structured list of the status branches would be. Little is wasted, but readability suffers slightly.

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?

An output schema and full annotations exist, yet the description still supplies the critical two-step approval workflow and status handling, making the definition complete for a 7-param build tool. Nothing needed to invoke it correctly is missing.

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 coverage is 100%, so parameters are already well documented. The description adds mild meaning via the escrow ('escrows its input') and price-or-better mechanism, but does not clarify individual params like tip, lifetimeSeconds, or poolId beyond the schema.

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 a limit order on Hookr's order book") and pins down the exact construction ("as the Limit tab places it, an unsigned call simulated from the wallet"). This clearly separates it from market/swap siblings without naming them.

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?

The limit-vs-market distinction is implied by "as the Limit tab places it" and the keeper-fill escrow model, but there is no explicit 'use this instead of hookr_build_swap when...' guidance or when-not condition. Usage is inferable rather than stated.

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