Skip to main content
Glama
talkincode

HyperLiquid MCP Server

by talkincode

cancel_order

Cancel a specific order on HyperLiquid using its order ID and trading pair, removing it from the book.

Instructions

Cancel a specific order by order ID

Args: coin: Trading pair order_id: Order ID to cancel

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinYes
order_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the cancel action but doesn't mention side effects (e.g., irreversibility), required permissions, error behavior, or ordering constraints. It is a mutation tool with no additional transparency.

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?

The description is concise and front-loaded with the main action. The Args section is minimal and structured without unnecessary text. It could be slightly more informative but earns points for efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the low complexity and presence of an output schema, the description is adequate but incomplete. It doesn't clarify when to use this over the sibling cancel_order_by_client_id or address edge cases, leaving a noticeable gap in context.

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?

The description adds basic meanings for both parameters (coin: trading pair, order_id: order ID to cancel), which helps since schema description coverage is 0%. However, it doesn't clarify the distinction between exchange order ID and client order ID (relevant given sibling cancel_order_by_client_id), nor provide format details.

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 clearly states the action ('Cancel a specific order by order ID'), which is a specific verb + resource. It distinguishes from siblings like cancel_all_orders and cancel_order_by_client_id by emphasizing 'by order ID', though it doesn't explicitly name alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance is given on when to use this tool vs cancel_order_by_client_id or modify_order. The description implies usage for canceling a single order by ID but doesn't provide context or exclusions, leaving the choice ambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/talkincode/hyperliquid-mcp-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server