Skip to main content
Glama

discord_end_poll

DestructiveIdempotent

End a bot-owned Discord poll immediately instead of waiting for its duration to expire, then return results and finalization status; the action is irreversible.

Instructions

End a poll immediately instead of waiting for its duration to expire. Only the bot's own polls can be ended early. Irreversible: a poll cannot be reopened once ended. A poll that has already ended or expired is returned unchanged. Requires the View Channel and Read Message History permissions. Returns the results; resultsFinalized tells whether Discord has finished counting them. To read the results without ending the poll, use discord_get_poll_results.

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": {
      "channel_id": "<channel_id>",
      "message_id": "<message_id>"
    },
    "name": "discord_end_poll"
  }
}

Input Schema

NameRequiredDescriptionDefault
channel_idYesID (snowflake) of the channel or thread.
message_idYesID of the poll message.

Output Schema

NameRequiredDescriptionDefault
answersYes
questionYes
expiresAtYes
messageIdYes
allowMultiselectYes
resultsFinalizedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.5.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, but the description adds substantial context: irreversibility ('a poll cannot be reopened'), no-op behavior on already-ended polls, required permissions (View Channel and Read Message History), and the meaning of resultsFinalized in the response.

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

Conciseness5/5

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

Six short sentences, each carrying distinct information (purpose, constraint, irreversibility, no-op case, permissions, return semantics), with the primary action front-loaded and the alternative routing last. No filler.

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?

An output schema exists, yet the description still usefully flags resultsFinalized as an interpretive hint. Combined with permission requirements and edge-case behavior, nothing an agent needs to call this correctly is missing.

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% and both parameters (channel_id, message_id) are fully documented with patterns in the schema. The description adds no parameter-level meaning beyond that, 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?

States a specific verb and resource ('End a poll immediately') and immediately clarifies the scope ('instead of waiting for its duration to expire'). It also distinguishes itself from the sibling discord_get_poll_results by naming that alternative, so an agent can select correctly without opening the schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative path: use discord_get_poll_results to read results without ending the poll. It also states the key precondition ('Only the bot's own polls can be ended early'), which is exactly the condition an agent needs before invoking.

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

Deploy Server

Other Tools