Skip to main content
Glama

hyperliquid_account

hyperliquid_account
Read-only

State of any Hyperliquid perps account by wallet address: account value, withdrawable balance, margin in use, every open position (side, size, entry, PnL, leverage, liquidation price, funding paid) and every open order, plus whether that wallet has already approved the builder fee that orders through this API carry. Price: $0.001 USDC per call (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": "hyperliquid_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes0x wallet address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds genuinely new behavior in the paid-call model ($0.001 USDC per call via x402) and the fact that it reports builder-fee approval — an unusual side-observation an agent would not otherwise expect. Gaps remain on what happens for unknown/invalid wallets and on response size for accounts with many positions or orders.

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 with the purpose, then a dense but purposeful enumeration of returned fields, then the price. The field list is long but each item is informative for an agent deciding whether to call; the parenthetical pricing sentence is short and earns its place.

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?

With no output schema, the description compensates by listing the return contents in detail, and with annotations plus one fully documented parameter there is little else an agent needs. Minor gaps: no mention of error behavior for unknown wallets or of payload size when many positions/orders exist.

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 description coverage is 100% and the single parameter is documented as '0x wallet address', so the schema does the heavy lifting. The description only restates that the address identifies the account being queried, adding no format, chain, or validation detail beyond the schema.

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+resource: 'State of any Hyperliquid perps account by wallet address', and enumerates exactly what is returned (account value, withdrawable balance, margin, positions, orders, builder-fee approval). This is clearly a read-only account-state tool, readily distinguishable from the sibling write-oriented tools hyperliquid_prepare and hyperliquid_submit and from the market-data tool hyperliquid_markets.

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?

The description implies when to use it (whenever you need the state of a perps account for a given wallet) but never states prerequisites, exclusions, or how it relates to siblings. The per-call price is a useful decision input, but no when-not-to-use guidance or alternative is offered.

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.