Skip to main content
Glama

Hookr

Build a limit order cancel

hookr_build_cancel_order
Read-onlyIdempotent

Builds the cancel of one of a wallet's open limit orders as an unsigned call simulated from that wallet, which refunds the order's input and tip to it; only the wallet that placed an order can cancel it, an expired order included.

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>",
      "orderId": "<orderId>"
    },
    "name": "hookr_build_cancel_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesThe wallet that placed the order; the refund goes to it.
orderIdYesThe order's id, from hookr_open_orders.

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.
orderIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint true, destructiveHint false, idempotent), it discloses that the output is an unsigned simulated call rather than a broadcast transaction, and that cancelling refunds the order's input and tip to the wallet — the key side-effect an agent must understand. It leaves open whether the caller must sign/submit afterward and what happens to an already-filled order.

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?

A single front-loaded sentence opens with the action and packs the simulated-unsigned nature, refund behavior, and ownership restriction into it. The semicolon-chained clauses are dense but every one carries information; a brief split for readability would help slightly.

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?

With an output schema present, return values need not be explained, and the description supplies the ownership constraint, the refund effect, and the unsigned-call nature. A note on whether the built call still needs signing/submission would close the remaining gap for a transaction-building tool.

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 description coverage is 100%, so both parameters are already documented with patterns and sourcing ('from hookr_open_orders'). The description reinforces the wallet's ownership/refund role but adds no format or edge-case detail beyond the schema, making the baseline 3 appropriate.

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?

The description names a specific verb and resource ('Builds the cancel of one of a wallet's open limit orders') and pins down the artifact produced ('an unsigned call simulated from that wallet'). That is clearly distinguishable from the sibling that creates orders (hookr_build_limit_order) and the one that lists them (hookr_open_orders).

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 the decisive applicability rule — only the wallet that placed the order may cancel, and expired orders count as cancellable — which is exactly the context an agent needs before calling. It stops short of explicitly routing to alternatives or naming a prerequisite lookup tool in prose, though the schema's 'from hookr_open_orders' note covers the latter.

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