get_poll
Retrieve poll metadata including title, status, deadline, location, and available time slots with their option IDs for scheduling coordination.
Instructions
Get poll metadata and time slot options (but NOT votes). Returns title, status, deadline, location, and all available time slots with their option IDs. Use this to retrieve optionId values needed for vote_on_poll or finalize_poll. To see who voted, use get_results instead.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pollId | Yes | Poll UUID |
Implementation Reference
- src/tools.ts:94-104 (handler)The handler logic for the "get_poll" tool, which invokes client.getPoll and client.getOptions.
case "get_poll": { const { pollId } = z.object({ pollId: z.string() }).parse(args); const [poll, options] = await Promise.all([ client.getPoll(pollId), client.getOptions(pollId), ]); return JSON.stringify({ ...poll, options, }, null, 2); - src/client.ts:107-109 (helper)The actual API request implementation for getPoll.
async getPoll(pollId: string): Promise<Poll> { return this.request<Poll>("GET", `/api/open/polls/${pollId}`); }