Skip to main content
Glama

get_hip3_l4_orderbook

Read-onlyIdempotent

Retrieve a full level-4 orderbook snapshot for a HIP-3 coin at a specific timestamp, supporting 125+ markets across multiple builders. Requires Pro+ tier.

Instructions

Get HIP-3 L4 orderbook reconstruction (Pro+ tier). Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns full order-level orderbook at a specific timestamp.

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.
timestampNoTimestamp for orderbook reconstruction (Unix ms or ISO)
depthNoOrderbook depth — number of price levels per side

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesResult data object

Implementation Reference

  • src/index.ts:1218-1238 (registration)
    Registration of the 'get_hip3_l4_orderbook' tool. Defines input schema (coin, timestamp, depth), output schema (ObjectOutputSchema), and the handler that calls api().hyperliquid.hip3.l4Orderbook.get().
    // HIP-3 L4 Orderbook Reconstruction
    registerTool(
      "get_hip3_l4_orderbook",
      "Get HIP-3 L4 orderbook reconstruction (Pro+ tier). Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns full order-level orderbook at a specific timestamp.",
      {
        coin: Hip3CoinParam,
        timestamp: TimestampParam.describe("Timestamp for orderbook reconstruction (Unix ms or ISO)"),
        depth: DepthParam,
      },
      ObjectOutputSchema,
      async (params) => {
        const sdkParams: Record<string, unknown> = {};
        if (params.timestamp != null) sdkParams.timestamp = toUnixMs(params.timestamp);
        if (params.depth) sdkParams.depth = params.depth;
        const data = await api().hyperliquid.hip3.l4Orderbook.get(
          normalizeHip3Coin(params.coin),
          sdkParams as any
        );
        return formatResponse(data);
      }
    );
  • Handler function for get_hip3_l4_orderbook. Builds SDK params from timestamp and depth, calls hyperliquid.hip3.l4Orderbook.get() with the normalized coin, and formats the response.
    async (params) => {
      const sdkParams: Record<string, unknown> = {};
      if (params.timestamp != null) sdkParams.timestamp = toUnixMs(params.timestamp);
      if (params.depth) sdkParams.depth = params.depth;
      const data = await api().hyperliquid.hip3.l4Orderbook.get(
        normalizeHip3Coin(params.coin),
        sdkParams as any
      );
      return formatResponse(data);
    }
  • Input schema: Hip3CoinParam (case-sensitive HIP-3 coin symbol), timestamp (required, for reconstruction), and optional depth parameter.
    {
      coin: Hip3CoinParam,
      timestamp: TimestampParam.describe("Timestamp for orderbook reconstruction (Unix ms or ISO)"),
      depth: DepthParam,
    },
    ObjectOutputSchema,
  • Output schema used by the tool - returns a single result data object.
    const ObjectOutputSchema: ZodRawShape = {
      data: z.record(z.unknown()).describe("Result data object"),
    };
Behavior3/5

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

Annotations already indicate read-only, non-destructive, idempotent, open world. Description adds Pro+ tier requirement and case-sensitivity warning, but does not clarify timestamp necessity (schema marks it optional) or data freshness/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.

Conciseness5/5

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

Two sentences, no fluff, front-loaded with action and key constraints. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given output schema exists, return values are covered. However, lacks comparative context with many siblings (e.g., when to use L4 vs L2, HIP-3 vs HIP-4). Pro+ tier mentioned but not elaborated.

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 has 100% description coverage, so parameters are already well-documented. Description reinforces case-sensitivity for 'coin' but adds no new meaning for 'timestamp' or 'depth'.

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 it retrieves a HIP-3 L4 orderbook reconstruction, specifying it is for Pro+ tier, symbols are case-sensitive, and returns full order-level data at a given timestamp. This distinguishes it from siblings like get_hip3_l2_orderbook and get_hip3_orderbook.

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?

No guidance on when to use this tool over alternatives (e.g., L4 vs L2, real-time diffs vs historical reconstruction). Does not mention prerequisites or context for choosing this tool.

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