Skip to main content
Glama

pm_changes

Retrieve recent changes to Polymarket data since a specified timestamp to track market updates and on-chain activity.

Instructions

Get recent changes to Polymarket data since a given timestamp. Cost: $0.01 per query. Source: Polymarket on-chain data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sinceYesISO 8601 timestamp to get changes since (e.g. 2026-03-01T00:00:00Z)
limitNoMaximum results (default 50)

Implementation Reference

  • The registration and handler implementation for the pm_changes tool. It defines the input schema for the `since` parameter and calls the `/api/v1/pm/changes` endpoint to retrieve data.
    server.registerTool(
      "pm_changes",
      {
        title: "Polymarket Changes",
        description:
          "Get recent changes to Polymarket data since a given timestamp. " +
          "Cost: $0.01 per query. Source: Polymarket on-chain data.",
        inputSchema: {
          since: z
            .string()
            .describe("ISO 8601 timestamp to get changes since (e.g. 2026-03-01T00:00:00Z)"),
          limit: z
            .number()
            .int()
            .min(1)
            .max(100)
            .optional()
            .describe("Maximum results (default 50)"),
        },
      },
      async ({ since, limit }) => {
        const res = await apiGet<PmQueryResponse>("/api/v1/pm/changes", {
          since,
          limit: limit ?? 50,
        });
    
        if (!res.ok) {
          return {
            content: [
              {
                type: "text" as const,
                text: `API error (${res.status}): ${JSON.stringify(res.data)}`,
              },
            ],
            isError: true,
          };
        }
    
        const { count, data } = res.data;
        const warn = stalenessWarning(res);
        const summary = `${warn}Found ${count} Polymarket change(s) since ${since}.`;
        const json = JSON.stringify(data, null, 2);
    
        return {
          content: [{ type: "text" as const, text: `${summary}\n\n${json}` }],
        };
      },
    );

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