Skip to main content
Glama

get_lighter_summary

Read-onlyIdempotent

Retrieve combined Lighter.xyz market summary for any coin, including mark price, oracle price, funding rate, and open interest.

Instructions

Get combined Lighter.xyz market summary for a coin in a single call. Returns mark price, oracle price, funding rate, and open interest.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinYesLighter.xyz coin symbol, e.g. 'BTC', 'ETH'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesResult data object

Implementation Reference

  • src/index.ts:904-911 (registration)
    Registration of the 'get_lighter_summary' tool using the registerCurrentTool helper. It calls api().lighter.summary(coin) with a normalized Lighter coin symbol and returns the combined market summary.
    // Lighter Summary
    registerCurrentTool(
      "get_lighter_summary",
      "Get combined Lighter.xyz market summary for a coin in a single call. Returns mark price, oracle price, funding rate, and open interest.",
      (coin) => api().lighter.summary(coin),
      LighterCoinParam,
      normalizeLighterCoin
    );
  • Input schema for the Lighter coin parameter used by get_lighter_summary.
    const LighterCoinParam = z
      .string()
      .describe("Lighter.xyz coin symbol, e.g. 'BTC', 'ETH'");
  • Output schema used by get_lighter_summary, wrapping the result in a data object.
    // For tools that return a single object (current snapshots, orderbooks, data quality)
    const ObjectOutputSchema: ZodRawShape = {
      data: z.record(z.unknown()).describe("Result data object"),
    };
  • Normalization helper for Lighter coin symbols used by get_lighter_summary.
    function normalizeLighterCoin(coin: string): string {
      return coin.toUpperCase();
    }
    
    function normalizeSpotCoin(coin: string): string {
      return coin.toUpperCase();
    }
  • The registerCurrentTool helper function that registers the get_lighter_summary tool. It handles the handler logic: normalizing the coin parameter, calling the SDK, and formatting the response.
    // Pattern 2: Current snapshot (coin only)
    function registerCurrentTool(
      name: string,
      description: string,
      sdkCall: (coin: string) => Promise<unknown>,
      coinSchema: z.ZodString,
      normFn: (coin: string) => string
    ): void {
      registerTool(name, description, { coin: coinSchema }, ObjectOutputSchema, async (params) => {
        const data = await sdkCall(normFn(params.coin));
        return formatResponse(data);
      });
    }
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, making safety clear. The description adds the specific fields returned, but does not discuss data freshness, rate limits, or response behavior beyond the summary composition. Adequate given the strong annotation coverage.

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 ('Get combined Lighter.xyz market summary for a coin in a single call'), followed by a list of returned fields. No unnecessary words; every sentence adds value.

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 simple read-only tool with strong annotations and an output schema (though not shown), the description is complete. It specifies the input, the return fields, and the platform. No additional context is needed for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single 'coin' parameter has a description in the schema ('Lighter.xyz coin symbol, e.g. 'BTC', 'ETH''). The description adds an example but does not significantly augment the schema, which already covers 100% of the parameter. Baseline 3, bumped for the helpful example.

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 gets a combined Lighter.xyz market summary for a coin, listing the specific fields returned (mark price, oracle price, funding rate, open interest). This distinguishes it from sibling tools that return individual data points or summaries for other platforms.

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 use when a consolidated summary is needed, and mentions 'in a single call' to highlight efficiency. However, it does not explicitly contrast with individual data tools like get_lighter_funding_current or get_lighter_open_interest, nor does it provide when-not-to-use 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