Skip to main content
Glama

get_exchange_coverage

Read-onlyIdempotent

Retrieve data coverage metrics for a crypto exchange, including earliest and latest timestamps, total records, symbol count, resolution, and completeness per data type.

Instructions

Get data coverage for a specific venue scope. Returns earliest/latest timestamps, total records, symbol count, resolution, and completeness per data type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exchangeYesVenue scope

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesResult data object

Implementation Reference

  • src/index.ts:1951-1962 (registration)
    Registration of the 'get_exchange_coverage' MCP tool via the registerTool helper. Defines input schema (exchange enum), output schema (ObjectOutputSchema), description, and the handler that calls api().dataQuality.exchangeCoverage(params.exchange).
    registerTool(
      "get_exchange_coverage",
      "Get data coverage for a specific venue scope. Returns earliest/latest timestamps, total records, symbol count, resolution, and completeness per data type.",
      {
        exchange: z.enum(["hyperliquid", "lighter", "hip3"]).describe("Venue scope"),
      },
      ObjectOutputSchema,
      async (params) => {
        const data = await api().dataQuality.exchangeCoverage(params.exchange);
        return formatResponse(data);
      }
    );
  • Handler function for get_exchange_coverage. Accepts a single 'exchange' parameter (one of 'hyperliquid', 'lighter', 'hip3'), calls the SDK method dataQuality.exchangeCoverage(), and formats the response.
      async (params) => {
        const data = await api().dataQuality.exchangeCoverage(params.exchange);
        return formatResponse(data);
      }
    );
  • Input schema for get_exchange_coverage: a single required 'exchange' parameter constrained to enum values 'hyperliquid', 'lighter', or 'hip3'.
    {
      exchange: z.enum(["hyperliquid", "lighter", "hip3"]).describe("Venue scope"),
    },
    ObjectOutputSchema,
  • Output schema used by get_exchange_coverage (ObjectOutputSchema): returns a single 'data' object containing coverage info.
    const ObjectOutputSchema: ZodRawShape = {
      data: z.record(z.unknown()).describe("Result data object"),
    };
  • The generic registerTool helper used to register get_exchange_coverage. It wraps server.registerTool with API key guard and error formatting.
    function registerTool(
      name: string,
      description: string,
      inputSchema: ZodRawShape,
      outputSchema: ZodRawShape,
      handler: (params: any) => Promise<McpContent>
    ): void {
      server.registerTool(
        name,
        {
          description,
          inputSchema,
          outputSchema,
          annotations: TOOL_ANNOTATIONS,
        },
        async (params: any) => {
          if (!client) {
            return {
              content: [{ type: "text" as const, text: MISSING_KEY_MESSAGE }],
              isError: true,
            };
          }
          try {
            return await handler(params);
          } catch (err) {
            const error = err instanceof OxArchiveError ? err : new OxArchiveError(String(err), 500);
            return formatError(error);
          }
        }
      );
    }
Behavior3/5

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

Annotations already provide safety profile (read-only, idempotent). Description adds return fields but no additional behavior like authorization or rate limits. Adequate but not extra value.

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 concise sentences, front-loaded with purpose. No wasted words.

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?

For a simple one-parameter tool with output schema and annotations, the description is sufficiently complete. Could add examples or expected usage context.

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 covers 100% of parameters with enum and description. Description adds minor context (venue scope) but doesn't elaborate on enum values. Baseline is 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it gets data coverage for a specific venue scope and lists return fields. It distinguishes from siblings like get_data_coverage (likely all venues) and get_symbol_coverage, but could explicitly differentiate.

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?

Implied usage for a single venue, but no explicit guidance on when to use it vs. alternatives like get_data_coverage or get_symbol_coverage. Lacks when-not-to-use.

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