Skip to main content
Glama

Hyperliquid Twaps

hl_twaps
Read-onlyIdempotent

Hyperliquid TWAP orders, one row per status line, newest first. A line is a status CHANGE (activated, waitingForTrigger, then finished, terminated or stopped), not a slice fill: executed_size and executed_notional_usd are the cumulative totals when the line was written. ts is Hyperliquid's block time; first_seen_at is when Vike first stored the line, null for lines not recorded live (before the field existed, or backfilled). Rejected placements (error) are hidden unless status=error. Across all wallets the window defaults to the last 24 hours and is at most 31 days; with wallet or twap_id neither applies. order=asc follows the feed: pass each nextCursor back and stop on an empty page. Same data as GET /v1/hyperliquid/twaps; with wallet it is GET /v1/hyperliquid/wallets/{address}/twaps (one feed: the cursors are interchangeable).

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

Input Schema

NameRequiredDescriptionDefault
endNoISO-8601 UTC upper bound. Default: now. A window wider than 31 days is refused unless `wallet` or `twap_id` 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` or `twap_id` is given.
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.
statusNoOne status. Default: every status except `error` (a rejected placement, not an order); `error` shows those rows.
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 (or `twap_id`) there is no default window and no 31-day cap.
twap_idNoOne TWAP id: every status line of that TWAP. 0 (the default) = every TWAP. Max 9007199254740991.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Well beyond the readOnly/idempotent annotations, it discloses that `executed_size`/`executed_notional_usd` are cumulative at write time rather than per-slice, that `first_seen_at` can be null for backfilled or pre-field lines, that error rows are hidden by default, and that the server refuses windows over 31 days. It also explains cursor pinning ('the call is refused' if order/filters/start/end don't match) and the late-write/overlap polling hazard — genuine operational behavior an agent could not infer.

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 row-granularity rule and then ordered by importance (semantics, filters, pagination, endpoint equivalence); nearly every clause carries operational payload. The long compound sentences with heavy backtick usage make it dense rather than wasteful, but a couple of clauses (the overlap re-read note) are effectively repeats of schema descriptions.

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 9-parameter, no-output-schema read tool with non-obvious pagination, this covers the row model, key fields, default-window rules, error filtering, and cursor mechanics — enough to invoke it correctly on the first try. It does not enumerate the full row shape (other returned fields beyond those named are unspecified), which is the only remaining gap.

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%, so the baseline is 3; the description still adds meaning by tying `wallet`-vs-`twap_id` to the removal of the default window and 31-day cap, by framing `order=asc` as follow mode, and by noting the cursors are interchangeable between the aggregate and per-wallet endpoints. The rest largely restates schema text, so it does not earn a 5.

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 ('Hyperliquid TWAP orders') and immediately disambiguates the row granularity: one row per status change, not a slice fill, with the states enumerated. That distinction is exactly what separates it from an orders/fills tool like hl_orders, so an agent can identify the resource without opening the schema.

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 when-to-use guidance along several axes: `order=asc` for following the feed vs. the default newest-first snapshot, `status=error` to reveal otherwise-hidden rejected placements, and the conditions under which the 24h default window and 31-day cap disappear. It stops short of naming a sibling tool as the alternative for non-TWAP order queries, which is the only missing piece.

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.