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
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to look ahead (default 7) | |
| limit | No | Maximum results (default 25) |
Implementation Reference
- src/tools/pm_resolution.ts:91-146 (handler)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}` }], }; }, );