Skip to main content
Glama

Live: end poll

end_poll
Idempotent

Close an open poll and retrieve its results, including total responses and per-option counts and percentages so viewers can see result bars.

Instructions

Close a poll and get its results; viewers see the result bars. total = number of people who answered; per option count and pct (share of those people, whole percent; single choice adds up to 100). Calling it again returns the same results with event_id null (only the first call closes it and tells the room). Also works after the webinar ended; ending the webinar closes its open poll. Example result: {total: 20, results: [{index: 0, option: "1-10", count: 12, pct: 60}, ...]}

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "webinar_id": "<webinar_id>",
      "poll_id": "<poll_id>"
    },
    "name": "end_poll"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNotrue: validate and show what would happen without changing anything
poll_idYespoll_id from start_poll (or a poll.started event)
webinar_idYesWebinar id (UUID) from list_webinars or create_webinar
idempotency_keyNoAny unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice

Output Schema

NameRequiredDescriptionDefault
dataNo
resultYes
statusNo
changesNo
dry_runNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only supply idempotentHint, and the description goes well beyond it: the first call closes the poll and notifies the room, repeat calls return identical results with event_id null, and viewers see result bars. It also discloses the interaction with end_webinar, which is behavior an agent could not infer from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded, followed by return-value semantics and then edge cases; every sentence carries information. It is somewhat dense with nested parentheticals, which slightly hurts scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation with an output schema and only an idempotency annotation, the description covers the side effects, repeat-call semantics, post-webinar behavior, and result interpretation. An agent has everything needed to call it correctly and interpret the outcome.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all four parameters (webinar_id, poll_id, dry_run, idempotency_key) are already documented in the schema. The description adds nothing about input parameters — its 'total', 'count', and 'pct' explanations describe the response, not the arguments — so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause states a specific verb and resource — 'Close a poll and get its results' — and immediately adds the visible effect ('viewers see the result bars'). This clearly distinguishes it from start_poll and other live-session siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real usage context: it works after the webinar ended, ending the webinar closes its open poll, and re-calling is safe. It does not explicitly route to alternatives (e.g., use start_poll to create the poll), but the schema ties poll_id back to start_poll.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.