Skip to main content
Glama

MAXPAIN · crypto liquidations & max pain

Prepare a Hyperliquid order

hyperliquid_prepare_order
Read-only

Prepare a perpetual order on Hyperliquid (market or limit, optional leverage, stop loss, take profit, or close a position). Returns a confirmation link: NOTHING is executed until the user opens the link and confirms it, signing in their own browser. Use it after checking liquidation levels and positioning with the other tools.

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": {
      "symbol": "<symbol>"
    },
    "name": "hyperliquid_prepare_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNo
sizeNoOr size in coins
closeNotrue = close the whole open position in symbol at market
marginNo
symbolYese.g. BTC, ETH, SOL, HYPE
leverageNo
size_usdNoPosition size in USD notional
stop_lossNo
order_typeNo
limit_priceNo
reduce_onlyNo
take_profitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=true; the description adds the critical two-step behavior that nothing is executed until the user opens the confirmation link and signs in their own browser, which reconciles the readOnly hint with an order-preparation tool. It stops short of stating link expiry, whether preparation reserves or locks anything, or any rate limits.

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?

Three sentences, each load-bearing: capability envelope first, the confirmation-link guarantee second, sequencing guidance last. No filler, and the highest-risk fact (nothing executes) is front-loaded in the second sentence.

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?

There is no output schema, and the description correctly covers the return value as a confirmation link. For a 12-parameter, no-output-schema, open-world tool it is nearly complete, with the remaining gap being how the mutually exclusive sizing and close parameters should be chosen.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 12 parameters and only 33% schema description coverage, the description must carry the burden, but it mostly restates field names already visible in the schema (leverage, stop loss, take profit, market/limit). It does not disambiguate the genuinely ambiguous pairs — size versus size_usd, or close versus reduce_only — nor explain margin cross/isolated or limit_price interaction with order_type.

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 names a specific verb and resource ("Prepare a perpetual order on Hyperliquid") and enumerates its capability envelope: market or limit, optional leverage, stop loss, take profit, and position close. That scope distinguishes it from data-reading siblings like hyperliquid_account or liquidation_levels, though no sibling is named as an explicit alternative.

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?

"Use it after checking liquidation levels and positioning with the other tools" gives a sequencing rule but points at "the other tools" generically rather than naming liquidation_levels or hyperliquid_account. There is no guidance on when not to use it, e.g. when close=true should substitute for side/size, or when reduce_only is the right choice over close.

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