get_event
Retrieve detailed information about a specific Polymarket prediction market event using its ID or slug, including all associated markets and current data.
Instructions
Get a single Polymarket event by ID or slug. Returns full event details including nested markets.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Event ID | |
| slug | No | Event slug |
Implementation Reference
- src/tools/gamma/events.ts:35-59 (handler)The MCP tool definition and handler for "get_event".
server.tool( "get_event", "Get a single Polymarket event by ID or slug. Returns full event details including nested markets.", { id: z.string().optional().describe("Event ID"), slug: z.string().optional().describe("Event slug"), }, async (args) => { if (!args.id && !args.slug) { return { content: [{ type: "text", text: "Error: Either id or slug is required" }], isError: true, }; } try { const data = await gamma.getEvent(args); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error: ${(error as Error).message}` }], isError: true, }; } }, );