Skip to main content
Glama

WenLong: Hyperliquid trading for AI agents

Cancel order

cancel_order
DestructiveIdempotent

Cancel one resting order by its order id (see get_open_orders).

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": {
      "coin": "<coin>",
      "order_id": "<order_id>"
    },
    "name": "cancel_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesMarket name as on Hyperliquid, e.g. BTC, ETH, xyz:GOLD
order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so safety and repeat-call behavior are covered. The description adds the meaningful constraint that only *resting* orders can be cancelled, but says nothing about failure modes (unknown order id, already filled/cancelled order) or permissions. Useful context beyond annotations, but thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

A single front-loaded sentence with the action, the object, the identifier requirement, and the prerequisite tool, with no redundant restatement of the title or annotations.

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 a two-parameter mutation with no output schema and annotations that already cover destructiveness and idempotency, the description supplies the essentials: what gets cancelled, its granularity, and how to source the id. The remaining gap is outcome behavior on a bad or stale order id, which an agent would likely want stated.

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 50%: the 'coin' parameter is documented in the schema while 'order_id' carries only a type and minimum. The description restates that the id identifies the order to cancel and hints the ids come from get_open_orders, which is mild added value, but it does not clarify that 'coin' scopes which market the order belongs to or whether it must match the order's original market.

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 ('Cancel one resting order') with an explicit scope limit ('one', 'resting'), which separates it from bulk or position-level siblings such as close_position. The parenthetical pointer to get_open_orders further pins down its role in the workflow.

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?

'by its order id (see get_open_orders)' tells the agent the prerequisite step for obtaining the identifier, giving clear context for when this tool applies. It stops short of naming an alternative or a when-not condition (e.g. use close_position to flatten a position, or that filled orders cannot be cancelled), so it is good but not exhaustive.

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