Skip to main content
Glama

pm_stats

Retrieve key statistics for the Polymarket dataset including total markets, tracked wallets, trading volume, and last updated timestamp.

Instructions

Get statistics about the Polymarket dataset: total markets, wallets tracked, volume, and last updated timestamp. Free endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for pm_stats tool.
      async () => {
        const res = await apiGet<PmStatsResponse>("/api/v1/pm/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) },
          ],
        };
      },
    );
  • Registration of the pm_stats tool.
    server.registerTool(
      "pm_stats",
      {
        title: "Polymarket Dataset Statistics",
        description:
          "Get statistics about the Polymarket dataset: total markets, wallets tracked, " +
          "volume, and last updated timestamp. Free endpoint.",
        inputSchema: {},
      },
  • Interface for pm_stats response.
    interface PmStatsResponse {
      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