Skip to main content
Glama
discord-mcp

discord-mcp

discord_end_poll

Destructive

End a Discord poll created by the bot before its duration expires, then read the message later to get the final vote tally once finalized.

Instructions

End a poll the bot created before its duration runs out. Discord does not let a bot end polls posted by other users. Returns the message with the poll; Discord finishes the final vote count in the background, so read the final tally later with discord_get_message once poll.results.is_finalized is true. Bot permissions it may need: View Channel. Changes or removes existing Discord data without an approval prompt.

Input Schema

NameRequiredDescriptionDefault
channel_idYesID of the channel or thread that holds the message
message_idYesID of the message

Output Schema

NameRequiredDescriptionDefault
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.1.2
    • addedInput schema / properties / channel_id / description
      Added value: +"ID of the channel or thread that holds the message"
    • addedInput schema / properties / message_id / description
      Added value: +"ID of the message"
    • addedOutput schema / properties / message / properties / attachments / items / properties / id / description
      Added value: +"Discord snowflake ID as a numeric string"
    • removedOutput schema / properties / message / properties / author / properties / global_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / message / properties / author / properties / global_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / message / properties / author / properties / id / description
      Added value: +"Discord snowflake ID as a numeric string"
    • addedOutput schema / properties / message / properties / channel_id / description
      Added value: +"Discord snowflake ID as a numeric string"
    • removedOutput schema / properties / message / properties / edited_timestamp / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / message / properties / edited_timestamp / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / message / properties / id / description
      Added value: +"Discord snowflake ID as a numeric string"
    • addedOutput schema / properties / message / properties / message_reference / properties / channel_id / description
      Added value: +"Discord snowflake ID as a numeric string"
    • addedOutput schema / properties / message / properties / message_reference / properties / guild_id / description
      Added value: +"Discord snowflake ID as a numeric string"
    • addedOutput schema / properties / message / properties / message_reference / properties / message_id / description
      Added value: +"Discord snowflake ID as a numeric string"
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the destructive/openWorld/not-idempotent annotations, it discloses the bot-ownership restriction, the asynchronous finalization behavior, and the required View Channel permission. The closing line about changing data without an approval prompt largely restates the destructiveHint annotation, slightly reducing added value.

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 and its constraint are front-loaded, and the follow-up read path is placed right after. The final sentence about permission needs and no approval prompt is somewhat boilerplate and could be trimmed.

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 destructive two-parameter mutation with an output schema, the description covers ownership limits, permissions, and the post-call workflow of reading finalized results. What remains unsaid (return shape) is already handled by the output schema.

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 the schema already explains that channel_id may be a channel or thread and that message_id identifies the message. The description adds no parameter-specific 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?

The description opens with a specific verb and resource ('End a poll') and immediately bounds the scope ('the bot created before its duration runs out'), which cleanly separates it from sibling tools like discord_get_message and discord_list_poll_answer_voters.

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 states an explicit exclusion ('Discord does not let a bot end polls posted by other users') and routes the agent to discord_get_message for the final tally once poll.results.is_finalized is true. It does not discuss when to let a poll expire naturally rather than ending it, which keeps it short of a full when/when-not guide.

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