Skip to main content
Glama

get_hip3_order_flow

Read-onlyIdempotent

Get aggregated order placement, cancellation, and fill metrics for HIP-3 coins. Specify a case-sensitive symbol like 'km:US500' and optional time range and interval.

Instructions

Get HIP-3 order flow aggregation (Build+ tier). Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns aggregated order placement, cancellation, and fill metrics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinYesHIP-3 coin symbol (CASE-SENSITIVE). 125+ markets across 6 builders: xyz, flx, hyna, km, vntl, cash. Examples: 'km:US500', 'xyz:GOLD', 'hyna:BTC', 'vntl:SPACEX', 'flx:TSLA', 'cash:NVDA'. Use get_hip3_instruments to list all.
startNoStart timestamp (Unix ms or ISO). Defaults to 24h ago.
endNoEnd timestamp (Unix ms or ISO). Defaults to now.
limitNoMax records to return (default 100, max 1000)
cursorNoPagination cursor from previous response's nextCursor
intervalNoAggregation interval (default '1h')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
recordsYesArray of result records
countYesTotal number of records in the full result set
nextCursorNoCursor for next page, if more results available

Implementation Reference

  • Handler function for the 'get_hip3_order_flow' tool. Extracts coin, start, end, limit, cursor, and interval params, resolves the time range, builds SDK params, calls api().hyperliquid.hip3.orders.flow() with the normalized HIP-3 coin, and returns formatted cursor response.
      async (params) => {
        const { coin, start, end, limit, cursor, interval } = params;
        const timeRange = resolveTimeRange(start, end);
        const sdkParams: Record<string, unknown> = {
          ...timeRange,
          limit: resolveLimit(limit),
        };
        if (cursor) sdkParams.cursor = cursor;
        if (interval) sdkParams.interval = interval;
        const result = await api().hyperliquid.hip3.orders.flow(
          normalizeHip3Coin(coin),
          sdkParams as any
        );
        return formatCursorResponse(result);
      }
    );
  • Input schema for get_hip3_order_flow: coin (HIP-3 case-sensitive symbol), HistoryParams (start, end, limit, cursor), and optional interval (1m, 5m, 15m, 30m, 1h, 4h, 1d). Uses ListOutputSchema for output.
    {
      coin: Hip3CoinParam,
      ...HistoryParams,
      interval: z.enum(["1m", "5m", "15m", "30m", "1h", "4h", "1d"]).optional()
        .describe("Aggregation interval (default '1h')"),
    },
    ListOutputSchema,
  • src/index.ts:1177-1202 (registration)
    Registration of the 'get_hip3_order_flow' tool using registerTool() with description, input schema (coin, HistoryParams, interval), output schema (ListOutputSchema), and the handler function.
    registerTool(
      "get_hip3_order_flow",
      "Get HIP-3 order flow aggregation (Build+ tier). Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns aggregated order placement, cancellation, and fill metrics.",
      {
        coin: Hip3CoinParam,
        ...HistoryParams,
        interval: z.enum(["1m", "5m", "15m", "30m", "1h", "4h", "1d"]).optional()
          .describe("Aggregation interval (default '1h')"),
      },
      ListOutputSchema,
      async (params) => {
        const { coin, start, end, limit, cursor, interval } = params;
        const timeRange = resolveTimeRange(start, end);
        const sdkParams: Record<string, unknown> = {
          ...timeRange,
          limit: resolveLimit(limit),
        };
        if (cursor) sdkParams.cursor = cursor;
        if (interval) sdkParams.interval = interval;
        const result = await api().hyperliquid.hip3.orders.flow(
          normalizeHip3Coin(coin),
          sdkParams as any
        );
        return formatCursorResponse(result);
      }
    );
  • Helper normalizeHip3Coin used by the handler to pass the coin symbol through as-is (HIP-3 symbols are case-sensitive).
    function normalizeHip3Coin(coin: string): string {
      return coin; // Case-sensitive
    }
  • Helper toUnixMs converts timestamps (number or ISO string) to Unix milliseconds, used by resolveTimeRange in the handler.
    function toUnixMs(ts: number | string): number {
      if (typeof ts === "number") return ts;
      // MCP/JSON-RPC may deliver numeric timestamps as strings
      if (/^\d+$/.test(ts)) return Number(ts);
      const parsed = Date.parse(ts);
      if (isNaN(parsed)) throw new Error(`Invalid timestamp: "${ts}"`);
      return parsed;
    }
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds useful behavioral context such as 'Symbols are CASE-SENSITIVE' and the tier requirement, but these are minor. It does not disclose potential side effects or performance characteristics beyond what annotations provide. The added value is moderate, so a score of 3 is appropriate.

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?

The description is two concise sentences with no filler. The first sentence front-loads the core purpose and tier, and the second adds critical usage notes and output description. Every word is efficient and informative.

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?

The description covers the essential purpose, tier, case-sensitivity, and output metrics. Given that the input schema is fully documented and an output schema exists, the description is nearly complete. It could mention pagination or time range options, but those are covered in the schema, so this is not a major gap.

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?

The input schema has 100% description coverage, so the baseline is 3. The description repeats the case-sensitivity note and mentions interval default, both already present in the schema. It adds no new semantic meaning beyond the schema, thus no improvement over baseline.

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 clearly states the tool's action: 'Get HIP-3 order flow aggregation'. It specifies the resource (HIP-3 order flow) and the kind of data returned ('aggregated order placement, cancellation, and fill metrics'). It also includes the tier requirement (Build+) and a concrete symbol example, making the purpose unambiguous. The name itself differentiates from siblings like get_hip4_order_flow.

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

Usage Guidelines2/5

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

The description mentions 'Build+ tier' which implies a usage restriction, but it does not explicitly state when to use this tool over alternatives. There is no mention of when not to use it, nor are sibling tools like get_order_flow or get_hip4_order_flow referenced for comparison. The single usage hint (tier) is insufficient for guiding an agent on tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xArchiveIO/0xarchive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server