Skip to main content
Glama

Hyperliquid Leverage Changes

hl_leverage_changes
Read-onlyIdempotent

Hyperliquid positions whose leverage or margin mode differs between two consecutive complete position snapshots, newest first: one row per wallet and symbol with the previous and the new leverage, margin mode, side, size and entry price, of positions worth at least min_usd after the change (default $10,000 across wallets, no floor with wallet). ts is when the later snapshot was written, not when the venue changed the setting; positions are captured about every 12 minutes, so changes arrive in batches. Without wallet the window defaults to the last 24 hours and is at most 31 days. order=asc follows the feed (stop on an empty page). Same data as GET /v1/hyperliquid/leverage-changes.

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_leverage_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoISO-8601 UTC upper bound. Default: now. A window wider than 31 days is refused unless `wallet` is given.
limitNoRows per page. Max 5000.
orderNo`desc` (default, newest first) or `asc`, oldest first: the mode for FOLLOWING the feed. Pass each `nextCursor` back verbatim and stop on an EMPTY page, not on a null cursor (an `asc` page with rows always carries one). A row written late with an older key is not seen by a poller already past it: re-read a small overlap with `start`.desc
startNoISO-8601 UTC lower bound. Default: the 24 hours before `end`, unless `wallet` is given.
changeNo`up` (leverage rose), `down` (leverage fell) or `mode` (only the margin mode, `cross` or `isolated`, changed). Omit for every change.
cursorNo`nextCursor` from the previous page, verbatim. It pins the call that returned it: send the same `order`, filters, `start` and `end` again, or the call is refused.
symbolNoHyperliquid instrument ticker, e.g. BTC, ETH, HYPE; a HIP-3 market is `dex:TICKER`, e.g. xyz:TSLA. Omit for all symbols.
walletNoOne wallet, 0x followed by 40 hex characters, any case. With it there is no default window and no 31-day cap.
min_usdNoSmallest `size_usd`, the position's size after the change, in USD. Default 10000 across wallets (most changes are of smaller positions), 0 with `wallet` (every change of that wallet); 0 for every change.
min_leverageNoSmallest NEW `leverage`, 0 or more. Default 0: no floor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / min_usd
      Added value: +{
      +  "description": "Smallest `size_usd`, the position's size after the change, in USD. Default 10000 across wallets (most changes are of smaller positions), 0 with `wallet` (every change of that wallet); 0 for every change.",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
  2. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered. The description adds substantial beyond-schema behavior — snapshot write time vs venue change time, ~12 minute capture cadence and batching, and cursor pinning rules — which is real value. It stops short of describing the response envelope (e.g. nextCursor shape) or rate limits, so it sits at solid-adequate rather than exceptional.

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 what a row is and then the qualifiers, with zero filler sentences and no repetition. Some sentences are dense (defaults, caps, ts caveat packed together), which costs a little readability but nothing is expendable.

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 a 10-parameter, no-output-schema read tool this is complete: it explains the returned row fields, ordering, pagination contract, default windows and caps, and the snapshot-timing caveat an agent needs to interpret results correctly. Nothing material is missing.

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 baseline is 3; the description still adds derived meaning: `min_usd` is measured after the change and drops to 0 when `wallet` is supplied, `order=asc` is the polling mode with the empty-page stop rule, and `ts` semantics for the time bounds. That goes beyond restating the schema, though it mostly reinforces what the schema already documents.

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 precise verb+resource and scope: positions whose leverage or margin mode differs between two consecutive complete snapshots, one row per wallet+symbol, newest first. That distinguishes it from generic wallet/position tools without ambiguity.

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?

Gives concrete operating context: default 24h window without `wallet`, 31-day cap, `order=asc` to follow the feed, stop on an empty page, and re-read a small overlap with `start` for late writes. It never names a sibling to use instead, so alternatives are left to inference, but the when-to-use conditions are clear.

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.