Skip to main content
Glama

Ironflow: Hyperliquid data

Mark and oracle price

get_mark_prices
Read-only

What is funding on a Hyperliquid perp right now? The latest mark price, oracle price and current hourly funding rate of one perp, with the time of the reading. The funding rate is a fraction per hour (0.0000125 = 0.00125%); positive means longs pay shorts. For only the price use get_price, for funding history get_funding_rates, and for many markets at once get_markets_snapshot.

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

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
dataNoMark price 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 already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds real semantic context beyond them: funding is expressed as a fraction per hour with a worked conversion (0.0000125 = 0.00125%), the sign convention (positive means longs pay shorts), and that the reading carries a timestamp. It stops short of noting staleness, caching, or rate limits for a live-price endpoint.

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-loads the returned fields, then the funding semantics, then the sibling routing in a single tight closing sentence. The rhetorical opening question is slightly decorative, but each subsequent sentence carries information an agent needs.

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?

A one-parameter read tool with annotations covering safety, a fully documented schema, and an output schema that owns the return shape. The description covers what is returned, units, sign convention, and alternatives, so nothing an agent needs 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 single market parameter already documents accepted formats (BTC-PERP, xyz:NVDA-PERP, HYPE/USDC, raw Hyperliquid names). The description only restates the cardinality constraint ("one perp") and adds no format or resolution detail beyond the schema, so baseline 3 applies.

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 and resource: returns the latest mark price, oracle price and current hourly funding rate for one perp, plus the timestamp of the reading. Scope ("one perp") is explicit, which separates it cleanly from get_markets_snapshot.

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?

Names three alternatives and the exact condition each covers: get_price for price only, get_funding_rates for funding history, get_markets_snapshot for many markets at once. Nothing is left for the agent to infer about when to route elsewhere.

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.