Skip to main content
Glama

Hyperliquid pre-trade order check

check_perp_order
Read-only

Checks a Hyperliquid perp order BEFORE your agent sends it: would the exchange reject it, and what does it cost and risk? Give coin, side and size (coins, as you would send it) or notional (USD); optional limit price (omit = market order), leverage, margin cross/isolated, reduceOnly. Returns verdict REJECT_LIKELY / CAUTION / OK, issues[] with fix values (size decimals, price tick, $10 minimum, max leverage by margin tier, isolated-only, OI cap, delisted, far-from-mark), warnings[], rules, isolated liquidation estimate and distance, taker impact from the live L2 book, funding carry per day, market facts, confidence and sources_failed. Read-only: never places, signs or holds orders and needs no keys. Free: 30 calls/day per IP with full results (max 10/min; invalid input is not counted). After that the tool returns an error with the x402 pay URL ($0.01 USDC per full check at /v1/full, or $0.003 lite at /v1/lite) or prepaid credits. Not financial advice; the exchange decides whether an order is accepted. PerpCheck is a read-only pre-trade check: it never places, signs or holds orders, has no custody and never asks for keys.

Input Schema

NameRequiredDescriptionDefault
coinYesHyperliquid main-dex perp name, e.g. BTC, ETH, SOL, HYPE, kPEPE
sideYeslong/buy or short/sell
sizeNoOrder size in coins, exactly as you would send it (decimals are checked), e.g. 0.001. Give size or notional.
priceNoLimit price exactly as you would send it (tick rule is checked). Omit for a market order (then taker impact is estimated from the L2 book).
marginNocross (default) or isolated
leverageNoLeverage, e.g. 10 (default 1)
notionalNoOrder value in USD (instead of size), e.g. 100
reduceOnlyNotrue if the order only reduces a position (exempt from the minimum and OI cap)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With readOnlyHint already declaring safety, the description still adds substantial non-obvious context: free-tier quota (30/day, 10/min), that invalid input is not counted, and the exact failure mode (error containing an x402 pay URL, with $0.01/full and $0.003/lite tiers). That is genuinely useful for deciding whether to call it. It stops short of saying how far the 10/min limit is enforced or what happens to a partially degraded check, so it is not a 5.

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 well: verdict and return shape come before pricing and disclaimers, which is the right order for an agent skimming. It loses a point for redundancy — the 'read-only, never places/signs, needs no keys' claim appears twice, once mid-paragraph and again as a closing sentence, and the 'not financial advice' disclaimer occupies space an agent does not need.

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?

For an 8-parameter tool with no output schema, the description enumerates the return surface thoroughly: verdict tiers, issues[] with fix values, warnings[], rules, isolated liquidation estimate and distance, taker impact, funding carry, market facts, confidence, and sources_failed. Combined with coverage of quota, pricing, and failure behavior, an agent has everything needed to call it and interpret the result.

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

Parameters4/5

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

Schema coverage is already 100%, so 3 is the floor. The description adds value by stating that coin/side/size should be supplied 'as you would send it' (so decimals and tick format are validated as-typed) and by restating the size-or-notional alternative, which frames the two mutually exclusive sizing paths in the prose rather than only in the property docs.

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?

Names a specific verb (checks) and resource (Hyperliquid perp order) with a clear temporal scope: before submission. The addition of 'would the exchange reject it, and what does it cost and risk' precisely frames what the check returns, so an agent knows the tool's output domain without opening the schema.

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

Usage Guidelines5/5

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

Explicitly states when to use it ('BEFORE your agent sends it') and draws the boundary against the actual order path ('never places, signs or holds orders and needs no keys'). It also gives input-mode guidance inline (omit price = market order; size in coins vs notional in USD), removing the main ambiguity an agent would hit at call time.

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