Skip to main content
Glama

get_hip3_trades_recent

Read-onlyIdempotent

Retrieve the most recent HIP-3 trades for any supported coin symbol. Returns the latest trades without specifying a time range.

Instructions

Get most recent HIP-3 trades. Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns the latest trades without needing a time range.

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.
limitNoMax records to return (default 100, max 1000)

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

  • The handler function for get_hip3_trades_recent. It takes 'coin' (CASE-SENSITIVE HIP-3 symbol) and optional 'limit', calls api().hyperliquid.hip3.trades.recent(), and formats the response. Registered via the generic registerTool helper.
    registerTool(
      "get_hip3_trades_recent",
      "Get most recent HIP-3 trades. Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns the latest trades without needing a time range.",
      {
        coin: Hip3CoinParam,
        limit: LimitParam,
      },
      ListOutputSchema,
      async (params) => {
        const data = await api().hyperliquid.hip3.trades.recent(
          normalizeHip3Coin(params.coin),
          params.limit
        );
        return formatResponse(data);
      }
    );
  • src/index.ts:683-698 (registration)
    Registration of the 'get_hip3_trades_recent' tool using the generic registerTool helper with input schema { coin: Hip3CoinParam, limit: LimitParam } and output schema ListOutputSchema.
    registerTool(
      "get_hip3_trades_recent",
      "Get most recent HIP-3 trades. Symbols are CASE-SENSITIVE (e.g. 'km:US500'). Returns the latest trades without needing a time range.",
      {
        coin: Hip3CoinParam,
        limit: LimitParam,
      },
      ListOutputSchema,
      async (params) => {
        const data = await api().hyperliquid.hip3.trades.recent(
          normalizeHip3Coin(params.coin),
          params.limit
        );
        return formatResponse(data);
      }
    );
  • The input schema for the 'coin' parameter, defined as a Zod string describing CASE-SENSITIVE HIP-3 coin symbols.
    const Hip3CoinParam = z
      .string()
      .describe(
        "HIP-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."
      );
  • The input schema for the optional 'limit' parameter.
    const LimitParam = z
      .number()
      .optional()
      .describe("Max records to return (default 100, max 1000)");
  • Helper that normalizes HIP-3 coin symbols (returns as-is since they are case-sensitive).
    function normalizeHip3Coin(coin: string): string {
      return coin; // Case-sensitive
    }
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive. The description adds useful behavioral traits: symbols are case-sensitive and the tool returns the latest trades without needing a time range. No contradictions with annotations.

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 extremely concise with three short sentences, no redundancy, and front-loaded purpose. Every sentence adds value: purpose, case-sensitivity, and key usage note.

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 the simple tool with rich annotations and a full schema, the description covers basic purpose and key note. However, it lacks explicit differentiation from the sister tool 'get_hip3_trades' and does not define 'most recent' (e.g., time window). This is adequate but not complete.

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 description coverage is 100%, so baseline is 3. The description repeats the case-sensitivity and example for 'coin' and default for 'limit', but does not add new meaning beyond what is already in the schema. The context about 'without needing a time range' is not a parameter but usage guidance.

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 verb 'Get' and resource 'most recent HIP-3 trades', which is specific and distinguishes it from siblings like 'get_hip3_trades' (which likely requires a time range). The case-sensitivity note adds clarity.

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

Usage Guidelines4/5

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

The description implies when to use (for latest trades without a time range) and differentiates from historical queries. However, it does not explicitly name the alternative tool (get_hip3_trades) or provide 'when not to use'. The context is clear but lacks explicit exclusion.

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