Skip to main content
Glama

Ironflow: Hyperliquid data

Run SQL query

run_query
Read-only

Anything the other tools do not answer: runs one read-only ClickHouse SELECT over Ironflow's Hyperliquid tables (hl.fills, hl.trades, hl.wallet_fills, hl.wallet_daily, hl.wallet_behavior, hl.market_hourly, hl.funding, hl.funding_payments, hl.mark_prices, hl.oracle_prices, hl.open_interest, hl.liquidations, hl.builder_fills, hl.transfers, hl.vault_operations). For volume, taker flow or liquidation totals per market over hours to months read hl.market_hourly, not hl.fills; call describe_data for columns. Aggregate in SQL: results are capped (1,000 rows keyless). Each query costs 10 credits. Keyless: last 24 hours, 5 s per query, 60 query seconds per hour per IP; a free key from https://ironflow.sh/key gives 30 days of history.

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": {
      "sql": "<sql>"
    },
    "name": "run_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesOne ClickHouse SELECT (or WITH ... SELECT) over hl.* tables, without a FORMAT clause
max_rowsNoMost rows to return (default 200, capped by your tier)

Output Schema

NameRequiredDescriptionDefault
rowsNoRows as positional arrays
statsNoelapsed_ms, rows_read, bytes_read
limitsNoYour tier's limits
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
columnsNoColumn names in row order
row_countNoRows returned
truncatedNotrue when more rows existed than were returned
column_typesNoClickHouse types in row order
budget_remaining_secondsNoQuery seconds left this hour

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.8/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations: it discloses the 1,000-row result cap, a per-query cost of 10 credits, and keyless limits (24h history, 5s per query, 60 query seconds/hour per IP) plus the free-key path to 30 days of history. These are exactly the operational constraints an agent needs before spending credits or hitting rate limits.

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 core purpose and the sibling-routing rule before the table list, cost and limits. It is dense but nearly every clause carries load; the long inline table enumeration is the only slight readability cost.

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 high-complexity, open-ended SQL tool it covers routing, table choice, aggregation guidance, column discovery via describe_data, cost, and rate limits. Since an output schema exists, no return-value explanation is needed, and nothing an agent needs to call it correctly 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 100%, so the SQL and max_rows parameters are already documented. The description still adds value by tying the 1,000-row keyless cap to max_rows behavior and by noting results should be aggregated in SQL, which shapes how the query should be written rather than just what the fields mean.

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 — one read-only ClickHouse SELECT over Ironflow's Hyperliquid tables — and enumerates the concrete hl.* tables available. It also positions itself against siblings as the catch-all for what the other tools do not answer, so an agent can tell immediately what it is for.

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?

Explicitly frames usage as a fallback ("Anything the other tools do not answer") while giving a concrete routing rule: for volume, taker flow or liquidation totals per market over hours-to-months use hl.market_hourly rather than hl.fills. It also points to describe_data for column discovery, so the agent knows the alternative for schema questions.

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.