Skip to main content
Glama

Close a poll to votes

close_poll
Idempotent

Stop the voting on a WhichDateWorks poll the user organizes, for example once everyone has answered. Pass the poll's manageUrl from create_poll. Returns the leading option so you can tell the user. Picking the final date and notifying everyone happens on the website: the organizer opens manageUrl and signs in.

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": {
      "manageUrl": "<manageUrl>"
    },
    "name": "close_poll"
  }
}

Input Schema

NameRequiredDescriptionDefault
manageUrlYesThe poll's manageUrl from create_poll (https://app.whichdateworks.com/claim/…), or the token at its end. The invite link won't work here.

Output Schema

NameRequiredDescriptionDefault
titleYes
pollIdYes
statusYes
leadingYesThe option or options with the most votes, if any.
nextStepsYes
participantCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (idempotent, non-destructive, open-world), the description discloses the return value (the leading option), the downstream handoff to the website, and the organizer sign-in requirement. It does not describe any error or failure behavior for an invalid or expired manageUrl.

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?

Short and front-loaded with the action, then the required input, the return value, and the handoff. Every sentence carries information; only the sign-in sentence is somewhat verbose relative to its importance.

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

Completeness4/5

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

For a single-parameter tool with full schema coverage, annotations, and an output schema, the description covers invocation, expected result summary, and the boundary of what closing does not accomplish. Only failure modes for a bad manageUrl are absent.

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 description coverage is 100%, so the manageUrl parameter and its rejection of the invite link are already documented structurally. The description reinforces the source of the value ("from create_poll") but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: "Stop the voting on a WhichDateWorks poll the user organizes." It also clarifies the boundary — the tool closes voting but the final date selection happens on the website — which distinguishes it from get_poll_results, though it never names that sibling explicitly.

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?

Gives a concrete trigger condition ("for example once everyone has answered") and states what the tool does not cover, routing the agent to the website flow for finalization. It stops short of naming sibling tools like get_poll_results as the alternative for checking status before closing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources