Skip to main content
Glama

otc_stats

Retrieve statistics for OTC company datasets including total companies, financial data availability, shell risk scores, and update timestamps to analyze market data.

Instructions

Get statistics about the OTC company dataset: total companies, companies with financials, average shell risk score, last updated timestamp, and data source information. Free endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the "otc_stats" tool handler in src/tools/otc.ts.
    server.registerTool(
      "otc_stats",
      {
        title: "OTC Dataset Statistics",
        description:
          "Get statistics about the OTC company dataset: total companies, companies with financials, " +
          "average shell risk score, last updated timestamp, and data source information. Free endpoint.",
        inputSchema: {},
      },
      async () => {
        const res = await apiGet<OtcStatsResponse>("/api/v1/otc/stats");
    
        if (!res.ok) {
          return {
            content: [
              {
                type: "text" as const,
                text: `API error (${res.status}): ${JSON.stringify(res.data)}`,
              },
            ],
            isError: true,
          };
        }
    
        return {
          content: [
            { type: "text" as const, text: JSON.stringify(res.data, null, 2) },
          ],
        };
      },
    );
  • Type definition for the otc_stats response.
    interface OtcStatsResponse {
      dataset: string;
      source: string;
      update_frequency: string;
      stats: Record<string, unknown>;
    }

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/carrierone/verilexdata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server