Skip to main content
Glama

get_symbol_coverage

Read-onlyIdempotent

Retrieve detailed data coverage metrics for any symbol on a specific exchange, including completeness, detected gaps, and cadence.

Instructions

Get detailed data coverage for a specific symbol on a venue scope. Returns per-data-type coverage with earliest/latest, total records, completeness, detected data gaps, and cadence metrics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exchangeYesVenue scope
symbolYesSymbol, e.g. 'BTC', 'ETH', 'km:US500'
fromNoStart of gap detection window (Unix ms or ISO). Defaults to 30 days ago.
toNoEnd of gap detection window (Unix ms or ISO). Defaults to now.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesResult data object

Implementation Reference

  • src/index.ts:1965-1986 (registration)
    Tool registration for get_symbol_coverage — registers the tool with input schema (exchange, symbol, from, to) and handler that delegates to api().dataQuality.symbolCoverage()
    registerTool(
      "get_symbol_coverage",
      "Get detailed data coverage for a specific symbol on a venue scope. Returns per-data-type coverage with earliest/latest, total records, completeness, detected data gaps, and cadence metrics.",
      {
        exchange: z.enum(["hyperliquid", "lighter", "hip3"]).describe("Venue scope"),
        symbol: z.string().describe("Symbol, e.g. 'BTC', 'ETH', 'km:US500'"),
        from: TimestampParam.describe("Start of gap detection window (Unix ms or ISO). Defaults to 30 days ago."),
        to: TimestampParam.describe("End of gap detection window (Unix ms or ISO). Defaults to now."),
      },
      ObjectOutputSchema,
      async (params) => {
        const options: Record<string, unknown> = {};
        if (params.from != null) options.from = toUnixMs(params.from);
        if (params.to != null) options.to = toUnixMs(params.to);
        const data = await api().dataQuality.symbolCoverage(
          params.exchange,
          params.symbol,
          Object.keys(options).length > 0 ? options as any : undefined
        );
        return formatResponse(data);
      }
    );
  • Input schema for get_symbol_coverage: exchange (hyperliquid/lighter/hip3), symbol string, optional from/to timestamps
    {
      exchange: z.enum(["hyperliquid", "lighter", "hip3"]).describe("Venue scope"),
      symbol: z.string().describe("Symbol, e.g. 'BTC', 'ETH', 'km:US500'"),
      from: TimestampParam.describe("Start of gap detection window (Unix ms or ISO). Defaults to 30 days ago."),
      to: TimestampParam.describe("End of gap detection window (Unix ms or ISO). Defaults to now."),
    },
  • Output schema used by get_symbol_coverage — returns a single data object
    const ObjectOutputSchema: ZodRawShape = {
      data: z.record(z.unknown()).describe("Result data object"),
    };
  • Helper used to convert from/to timestamps to Unix milliseconds before passing to the SDK
    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;
    }
  • Handler logic for get_symbol_coverage — extracts params, builds optional from/to options, calls api().dataQuality.symbolCoverage(), and formats the response
    async (params) => {
      const options: Record<string, unknown> = {};
      if (params.from != null) options.from = toUnixMs(params.from);
      if (params.to != null) options.to = toUnixMs(params.to);
      const data = await api().dataQuality.symbolCoverage(
        params.exchange,
        params.symbol,
        Object.keys(options).length > 0 ? options as any : undefined
      );
      return formatResponse(data);
    }
Behavior4/5

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

Annotations already mark the tool as read-only and idempotent. The description adds behavioral context beyond annotations by specifying that it returns coverage gaps and cadence metrics, and implies analysis of data gaps. No contradiction 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?

Two sentences, front-loaded with the core purpose, followed by detailed return information. No redundant or unnecessary text.

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 tool with 4 parameters, complete annotations, and an output schema, the description provides enough context about what the tool returns (earliest/latest, gaps, cadence) without needing to replicate the output schema.

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 the schema already documents all parameters. The description does not add new parameter-level information beyond what the schema provides. Baseline of 3 is appropriate.

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'), the resource ('detailed data coverage for a specific symbol on a venue scope'), and lists specific return metrics (per-data-type coverage, earliest/latest, total records, completeness, gaps, cadence). This distinguishes it from siblings like get_exchange_coverage and get_data_coverage.

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

Usage Guidelines3/5

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

The description provides context for when to use the tool (when you need detailed per-symbol coverage on a venue), but does not explicitly state when not to use it or mention alternatives. It lacks exclusionary guidance.

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