Skip to main content
Glama

Hyperliquid Wallet

hl_wallet
Read-onlyIdempotent

One Hyperliquid wallet, by view. summary: live equity, open positions, both cohort labels, the risk metrics of the window (win_rate is a FRACTION from 0 to 1; max_drawdown_pct and pnl_pct are percents, pnl_pct is null under $1 of equity), cumulative realized PnL since inception and lifetime deposits and withdrawals, all money in USD; equity.account_value is the wallet's whole value in the venue's unified and portfolio-margin modes (native perp account + builder accounts + USDC outside them, free spot tokens left out; those modes also read null on the drawdown fields), else the native perp account; equity.perp_account_value is always the native perp account and equity.account_mode is default, unifiedAccount, portfolioMargin or disabled; open_positions.perp_bias = (long - short) / equity.perp_account_value and equity_exposure = (long + short) / it, native perp account only: positions on the main dex over the native perp account value; builder-DEX positions are not included. Unbounded ratios, null with no main-dex position or no positive equity. trades_summary: closed round-trip trade statistics overall and per symbol, medians as well as means. copy_sim: would copying this wallet have made money? A minute-by-minute replay of its perps (HIP-3 included) over start..end (default the last 30 days) against a copier holding ratio x its positions (default capital / its account value at start), checking every delay, paying slippage_bps, fee_bps and funding, liquidated as the venue liquidates (each market's maintenance margin; optional leverage only caps the copier's orders): leader and copier PnL, return_pct (percent), fees, funding, trades, the copier's max_drawdown_pct, slippage and liquidated_at, capture_ratio (copier PnL / leader PnL x ratio), per_symbol, hourly equity and caveats (1-minute prices, the leader's maker share, the rules in method); more than 300,000 market-minutes is an error naming how to narrow it. An address we hold nothing for (summary) or that never traded (trades_summary, copy_sim) is an error, never a block of zeros. Find addresses with hl_leaderboard, hl_perp_top_traders or hl_position_match. Same data as GET /v1/hyperliquid/wallets/{address}, /wallets/{address}/trades/summary and /wallets/{address}/copy-sim.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hl_wallet"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoISO-8601 UTC upper bound, e.g. 2026-10-02T00:00:00Z. Exclusive. Default, and at the latest: the start of the current hour. Used by view: copy_sim.
viewNoWhat to read. `summary`: equity, open positions, cohort labels, risk metrics and lifetime flow. `trades_summary`: closed-trade statistics overall and per symbol. `copy_sim`: what copying the wallet would have made over a window, with fees, slippage, funding, the copier's delay and liquidation. Default `summary`.summary
delayNoHow often the copier checks the leader, on a UTC grid: a change is copied at the next grid point and changes inside one step merge into one order. Used by view: copy_sim.5m
ratioNoCopier size / leader size. 0 (default) = `capital` / the leader's account value at `start`; required when no account value is recorded near `start`. Used by view: copy_sim.
startNoISO-8601 UTC lower bound, e.g. 2026-10-01T00:00:00Z. Default: 30 days before `end`; not before 2026-01-01. Used by view: copy_sim.
windowNoWindow of the risk metrics and trade statistics, by trade time: `1d`, `7d`, `30d` or `all`. Used by view: summary, trades_summary.all
addressNoHyperliquid wallet address: 0x followed by 40 hex characters, any case. Required.
capitalNoThe copier's starting account in USD, 1 to 1,000,000,000. Used by view: copy_sim.
fee_bpsNoTaker fee on every copier order, in basis points, 0 to 100. Used by view: copy_sim.
symbolsNoComma-separated perps to copy, e.g. `BTC,ETH,xyz:TSLA`. Omit for every perp the wallet traded or held (HIP-3 included; spot is refused). Used by view: copy_sim.
leverageNoOptional cap on the copier's account leverage, 1 to 100: an order that would take its notional past leverage x its equity is cut to fit. 0 (default) = no cap. Liquidation is always the venue's: each market's notional / (2 x its maximum leverage). Used by view: copy_sim.
slippage_bpsNoPaid on every copier order, in basis points of the minute's open price, 0 to 1,000. Used by view: copy_sim.
opened_withinNoBounds the open-positions block ONLY (equity, lifetime and metrics are wallet-level totals with nothing per-position to filter): `24h`, `7d`, `30d` or `all`. Used by view: summary.all

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / capital
      Added value: +{
      +  "default": 10000,
      +  "description": "The copier's starting account in USD, 1 to 1,000,000,000. Used by view: copy_sim.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / delay
      Added value: +{
      +  "default": "5m",
      +  "description": "How often the copier checks the leader, on a UTC grid: a change is copied at the next grid point and changes inside one step merge into one order. Used by view: copy_sim.",
      +  "enum": [
      +    "1m",
      +    "5m",
      +    "15m",
      +    "1h",
      +    "4h"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / end
      Added value: +{
      +  "description": "ISO-8601 UTC upper bound, e.g. 2026-10-02T00:00:00Z. Exclusive. Default, and at the latest: the start of the current hour. Used by view: copy_sim.",
      +  "type": "string"
      +}
    • addedInput schema / properties / fee_bps
      Added value: +{
      +  "default": 4.5,
      +  "description": "Taker fee on every copier order, in basis points, 0 to 100. Used by view: copy_sim.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / leverage
      Added value: +{
      +  "default": 0,
      +  "description": "Optional cap on the copier's account leverage, 1 to 100: an order that would take its notional past leverage x its equity is cut to fit. 0 (default) = no cap. Liquidation is always the venue's: each market's notional / (2 x its maximum leverage). Used by view: copy_sim.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / ratio
      Added value: +{
      +  "default": 0,
      +  "description": "Copier size / leader size. 0 (default) = `capital` / the leader's account value at `start`; required when no account value is recorded near `start`. Used by view: copy_sim.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / slippage_bps
      Added value: +{
      +  "default": 3,
      +  "description": "Paid on every copier order, in basis points of the minute's open price, 0 to 1,000. Used by view: copy_sim.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / start
      Added value: +{
      +  "description": "ISO-8601 UTC lower bound, e.g. 2026-10-01T00:00:00Z. Default: 30 days before `end`; not before 2026-01-01. Used by view: copy_sim.",
      +  "type": "string"
      +}
    • addedInput schema / properties / symbols
      Added value: +{
      +  "description": "Comma-separated perps to copy, e.g. `BTC,ETH,xyz:TSLA`. Omit for every perp the wallet traded or held (HIP-3 included; spot is refused). Used by view: copy_sim.",
      +  "type": "string"
      +}
    • changedInput schema / properties / view / description
      Previous value: -"What to read. `summary`: equity, open positions, cohort labels, risk metrics and lifetime flow. `trades_summary`: closed-trade statistics overall and per symbol. Default `summary`."New value: +"What to read. `summary`: equity, open positions, cohort labels, risk metrics and lifetime flow. `trades_summary`: closed-trade statistics overall and per symbol. `copy_sim`: what copying the wallet would have made over a window, with fees, slippage, funding, the copier's delay and liquidation. Default `summary`."
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "summary",
      -  "trades_summary"
      -]New value: +[
      +  "summary",
      +  "trades_summary",
      +  "copy_sim"
      +]
    • changedInput schema / properties / window / description
      Previous value: -"Window of the risk metrics and trade statistics, by trade time: `1d`, `7d`, `30d` or `all`."New value: +"Window of the risk metrics and trade statistics, by trade time: `1d`, `7d`, `30d` or `all`. Used by view: summary, trades_summary."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world behavior, and the description adds substantial beyond that: null semantics for drawdown fields in unified/portfolio-margin modes, null `pnl_pct` under $1 equity, unbounded ratio behavior, the 300,000 market-minute error, and the policy that an untracked address is an error rather than zeros. It stops short of describing pagination, rate limits, or full response structure, so it is strong but not complete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

There is almost no filler — nearly every clause carries a real constraint or definition — but it is delivered as one dense semicolon-chained block that is difficult to scan, with derived-field explanations interleaved with parameter mechanics. The opening sentence is well front-loaded, but the body would benefit from per-view separation.

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?

For a 13-parameter, three-view tool with no output schema, the description supplies a great deal of the missing return-value semantics, error behavior, and limits. Gaps remain: cohort labels are mentioned but not defined, output shapes beyond `equity` and `open_positions` are sketched rather than specified, and cross-tool selection against the other wallet tools is thin.

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 the description only needs to add value, and it does: it clarifies units (`win_rate` as a fraction, `pnl_pct` and `max_drawdown_pct` as percents), the formula behind `perp_bias` and `equity_exposure`, and how `ratio`, `delay`, `leverage`, `slippage_bps` and `fee_bps` interact during `copy_sim`. Much of the prose explains derived output fields rather than input parameters, and the schema already carries per-parameter text, so this is an enhancement rather than a rescue.

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?

Opens with a specific verb+resource framing ("One Hyperliquid wallet, by `view`") and then defines each of the three views concretely: equity/positions/risk for `summary`, round-trip statistics for `trades_summary`, and a minute-by-minute copy replay for `copy_sim`. It also names sibling tools (hl_leaderboard, hl_perp_top_traders, hl_position_match) for the adjacent job of finding addresses, so an agent can place the tool accurately.

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?

The view enum is effectively explained as the switch between use cases, error conditions are given for missing data and oversized simulations, and address-discovery alternatives are named explicitly. What is not covered is when to prefer this over overlapping siblings such as hl_wallet_trades or hl_wallet_activity, so the guidance is clear but not exhaustive.

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.