Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Hyperliquid account, positions and PnL

hyperliquid_account
Read-only

Any Hyperliquid account by address: perp account value, notional, margin used, withdrawable, leverage and unrealized PnL; every open position with side, size, entry, value, PnL, ROE, liquidation price, leverage and cumulative funding since open (Hyperliquid's cumFunding); spot balances; and up to 50 open orders. Public on-chain data from Hyperliquid's info API, read live. Use to track a trader, a vault or your own agent's book. Example: address=0x31ca8395cf837de08b24da3f660e77761dfb974b. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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
addressYesThe account's 0x address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only/non-destructive; the description adds meaningful context beyond them: the data source (Hyperliquid info API), freshness ('read live'), and that it 'reads or computes only and changes nothing'. It also explains the cost model ($0.01/call, first 10 free, failed calls free, repeats are not free), which accounts for the idempotentHint=false on what is otherwise a read.

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 return payload is front-loaded in a single dense sentence, followed by source, usage, example and billing. That order is sensible, but the closing sentence mixes a behavior guarantee with a pricing/marketing pitch, and 'read live' partly duplicates 'Public on-chain data', so a little trimming is possible.

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?

With no output schema, the description must enumerate the returned fields, which it does thoroughly (account metrics, per-position fields, spot balances, order cap of 50). Data source, cost, and side-effect-free behavior are all covered, leaving nothing an agent needs in order to call it correctly.

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 100% for the single address parameter, so the baseline is satisfied by the schema. The description adds a concrete example address (0x31ca8395cf837de08b24da3f660e77761dfb974b), which usefully confirms the expected 0x hex format, but adds no further constraint such as mainnet vs. testnet or accepted address casing.

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?

The description names a specific resource (any Hyperliquid account by address) and enumerates exactly what is returned: perp account value, notional, margin used, withdrawable, leverage, unrealized PnL, every open position with side/size/entry/value/PnL/ROE/liquidation price/leverage/cumFunding, spot balances, and up to 50 open orders. This clearly distinguishes it from sibling market-data tools like hyperliquid_candles, hyperliquid_orderbook or hyperliquid_prices.

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?

It gives concrete usage contexts: 'Use to track a trader, a vault or your own agent's book.' That is a clear when-to-use signal. However, it never states when not to use it or points to the sibling tools (e.g., use hyperliquid_funding_history for historical funding rather than the cumFunding since open field reported here), so the alternative-routing element is missing.

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