pm_resolution_lookup
Find resolution details for Polymarket prediction markets, including oracle sources, rules, data requirements, and timelines.
Instructions
Look up the resolution source and criteria for a Polymarket market. Shows the oracle, resolution rules, data sources, and expected resolution timeline. Cost: $0.02 per query. Source: Polymarket resolution tracking.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market_id | No | Market ID to look up | |
| query | No | Search markets by title/description | |
| limit | No | Maximum results (default 25) |
Implementation Reference
- src/tools/pm_resolution.ts:56-87 (handler)The handler function for pm_resolution_lookup tool.
async ({ market_id, query, limit }) => { const res = await apiGet<PmResolutionQueryResponse>( "/api/v1/pm/resolution/lookup", { market_id, q: query, 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} resolution record(s).`; const json = JSON.stringify(data, null, 2); return { content: [{ type: "text" as const, text: `${summary}\n\n${json}` }], }; }, ); - src/tools/pm_resolution.ts:38-54 (schema)Input schema definition for the pm_resolution_lookup tool.
inputSchema: { market_id: z .string() .optional() .describe("Market ID to look up"), query: z .string() .optional() .describe("Search markets by title/description"), limit: z .number() .int() .min(1) .max(100) .optional() .describe("Maximum results (default 25)"), }, - src/tools/pm_resolution.ts:30-31 (registration)Tool registration for pm_resolution_lookup.
server.registerTool( "pm_resolution_lookup",