Skip to main content
Glama

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
NameRequiredDescriptionDefault
pollIdYesPoll UUID

Implementation Reference

  • 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);
  • The actual API request implementation for getPoll.
    async getPoll(pollId: string): Promise<Poll> {
      return this.request<Poll>("GET", `/api/open/polls/${pollId}`);
    }

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

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/timergy-app/timergy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server