Skip to main content
Glama

Ironflow: Hyperliquid data

Open interest

get_open_interest
Read-only

What is open interest on a Hyperliquid perp? The latest open interest of one perp in units of the base asset (BTC for BTC-PERP), with its 24-hour traded volume in USD and the time of the reading. Multiply by get_price for open interest in USD. To compare open interest across markets use get_markets_snapshot; for its history use run_query (see describe_data).

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": {
      "market": "<market>"
    },
    "name": "get_open_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketYesMarket: BTC-PERP, xyz:NVDA-PERP, HYPE/USDC, or a Hyperliquid name (BTC, @107, xyz:NVDA)

Output Schema

NameRequiredDescriptionDefault
dataNoOpen interest samples
noticeNoA note from the API: how a market name was read, why data starts later than asked, or a next step such as a free key
paginationNoCursor pagination

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / notice / description
      Previous value: -"Present when the API added a note: how a market name was read, that data starts later than asked because of the history window, or a next step such as a free key"New value: +"A note from the API: how a market name was read, why data starts later than asked, or a next step such as a free key"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint and openWorldHint, so safety is already covered; the description adds the genuinely non-obvious fact that open interest is denominated in base-asset units and that the response includes 24h volume in USD and a timestamp. It does not mention staleness, caching, or error behavior for unknown markets, which keeps it from a 5.

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 definition and unit convention, then tightly packed with cross-references; every sentence carries content. The opening rhetorical question costs a little density but sets up the scope effectively.

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 single-parameter read with an output schema, the description supplies the unit interpretation, the derived-metric workflow, and both alternative tools for comparison and history. Nothing an agent needs to call or interpret it correctly is missing.

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 coverage is 100% and the schema itself enumerates the accepted market formats (BTC-PERP, xyz:NVDA-PERP, HYPE/USDC, raw Hyperliquid names), so the description adds no input-side meaning. Baseline 3 applies since the schema carries the parameter burden.

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 resource (open interest of one perp) and pins down the exact unit convention: base asset units, not USD, plus 24h volume and reading time. This distinguishes it clearly from get_open_interest_changes and get_markets_snapshot without needing either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: multiply by get_price for a USD figure, use get_markets_snapshot to compare across markets, and use run_query via describe_data for history. Both the when and the when-not are covered by named alternatives.

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.