Skip to main content
Glama

Ironflow: Hyperliquid data

Market price

get_price
Read-only

What is X trading at on Hyperliquid? The latest mark price of one market as a single number: native perps, HIP-3 builder perps (e.g. xyz:NVDA-PERP) and spot. For the oracle price and funding use get_mark_prices; for price history use get_candles; to compare many markets at once use 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_price"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
priceNoPrice in USD
marketNoDisplay symbol, e.g. "BTC-PERP" or "xyz:NVDA-PERP"
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

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.7/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 the safety profile is covered. The description adds real context beyond that: the value returned is specifically the *mark* price (not oracle), it is a single scalar rather than a series, and it works across native perps, HIP-3 builder perps, and spot. It stops short of noting data staleness, rate limits, or behavior for an unknown market.

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

Conciseness5/5

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

Three sentences: the question, the precise answer shape with scope, then the routing alternatives. Front-loaded, no filler, and every clause carries selection-relevant information.

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 one-parameter read tool with a full-coverage schema, an output schema for return structure, and annotations covering safety, the description supplies everything else needed: what price type, what market classes, and where to go for adjacent data.

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% and the schema already gives identifier examples, so the baseline would be 3. The description earns an extra point by framing the identifier families ('native perps, HIP-3 builder perps … and spot'), telling the agent that perp, builder-perp, and spot naming conventions are all valid inputs to the same parameter.

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?

The description names the exact resource and quantity: 'the latest mark price of one market as a single number,' and enumerates the market classes covered (native perps, HIP-3 builder perps, spot). An agent can distinguish this from get_mark_prices, get_candles, and get_markets_snapshot without opening any 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?

It routes explicitly to alternatives by need: oracle price and funding → get_mark_prices, price history → get_candles, multi-market comparison → get_markets_snapshot. That covers when to use this tool and when a sibling is the better choice.

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.