Skip to main content
Glama

pm_resolution_calendar

Track upcoming market resolution events with dates, sources, and current prices from Polymarket within a specified timeframe.

Instructions

Get upcoming market resolution events. Shows markets expected to resolve within a given timeframe with resolution dates, sources, and current prices. Cost: $0.02 per query. Source: Polymarket resolution tracking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of days to look ahead (default 7)
limitNoMaximum results (default 25)

Implementation Reference

  • Handler logic and tool registration for 'pm_resolution_calendar' within registerPmResolutionTools.
    server.registerTool(
      "pm_resolution_calendar",
      {
        title: "Polymarket Resolution Calendar",
        description:
          "Get upcoming market resolution events. Shows markets expected to resolve " +
          "within a given timeframe with resolution dates, sources, and current prices. " +
          "Cost: $0.02 per query. Source: Polymarket resolution tracking.",
        inputSchema: {
          days: z
            .number()
            .int()
            .min(1)
            .max(90)
            .optional()
            .describe("Number of days to look ahead (default 7)"),
          limit: z
            .number()
            .int()
            .min(1)
            .max(100)
            .optional()
            .describe("Maximum results (default 25)"),
        },
      },
      async ({ days, limit }) => {
        const res = await apiGet<PmResolutionQueryResponse>(
          "/api/v1/pm/resolution/calendar",
          {
            days: days ?? 7,
            limit: limit ?? 25,
          },
        );
    
        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} upcoming resolution event(s).`;
        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