Skip to main content
Glama

Hyperliquid wallet positions and liquidation risk: perps, leverage, liquidation distance, margin ratio, open orders, 24h fills

hl_wallet
Read-onlyIdempotent

Use when an agent checks a Hyperliquid account: its own risk, a whale or a copy-trade target. Input: address (0x...), optional orders (0-50). Output: JSON account value, positions with leverage, PnL, liquidation price and distance, cross margin ratio, riskLevel, net exposure, spot balances, open orders, last-24h fills and realized PnL. Cached 10 s. Example: ?address=0x5b5d51203a0f9079f8aeb098a6523a13f298c060 Price: $0.005 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": {
      "address": "<address>"
    },
    "name": "hl_wallet"
  }
}

Input Schema

NameRequiredDescriptionDefault
ordersNoLargest open orders to list (0-50, default 10); the count and total are always returned
addressYesHyperliquid account (EVM) address. Malformed: 400 before payment (not charged)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, open-world), the description discloses a 10-second cache window, an explicit price of $0.005 per call, accepted payment chains and rail (x402 in USDC on Base/Monad/Polygon/Arbitrum/Solana), and that a malformed address returns 400 before payment is taken. Cost, staleness and failure-charging behavior are exactly the traits an agent cannot get from structured fields.

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?

It is a single dense paragraph but clearly segmented with 'Use when', 'Input', 'Output', 'Cached', 'Example' and 'Price' labels, so key facts are front-loaded. The inline curl-style example and payment-chain list are somewhat compressed, but each sentence carries operational information.

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?

There is no output schema, so the description carries the full burden of describing return values, and it does so field by field (positions, leverage, PnL, liquidation distance, margin ratio, riskLevel, net exposure, spot balances, orders, fills). Combined with caching, pricing and error semantics, nothing an agent needs in order to call this correctly is missing.

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 100%, so both parameters are already documented in the input schema, including the orders range and the 400-before-payment behavior. The description only restates 'address (0x...)' and 'optional orders (0-50)' without adding format or defaults beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 ('checks a Hyperliquid account') and enumerates exactly what is returned: account value, positions with leverage, PnL, liquidation price and distance, cross margin ratio, net exposure, spot balances, open orders, 24h fills. That is far more specific than the title alone. It does not explicitly contrast itself with siblings like hl_perp_metrics or base_wallet_balances, so an agent must infer the account-level vs market-level distinction.

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?

'Use when an agent checks a Hyperliquid account: its own risk, a whale or a copy-trade target' gives clear, concrete usage scenarios rather than a generic restatement. It does not state when NOT to use it or name an alternative tool for e.g. market-wide metrics, so it stops short of full routing guidance.

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