Skip to main content
Glama
grammy-mcp
by louietyj

stopPoll

Destructive

End active Telegram bot polls by providing chat and message IDs; returns the stopped poll for confirmation and optional keyboard updates.

Instructions

Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.

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": {
      "chat_id": "<chat_id>",
      "message_id": "<message_id>"
    },
    "name": "stopPoll"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username`
message_idYesIdentifier of the original message with the poll
reply_markupNoAn object for a new message inline keyboard
business_connection_idNoUnique identifier of the business connection on behalf of which the message to be edited was sent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is covered. The description adds real value by stating the success return ('the stopped Poll is returned'), which matters since there is no output schema. It does not state that stopping is irreversible or what permissions are needed, so it adds context without being rich.

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?

Two sentences, zero filler, with the usage directive and precondition front-loaded before the return-value note. Nothing could be cut without losing information.

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 mutating four-parameter tool, the definition covers purpose, precondition and the return value, while annotations carry the destructive/read-only semantics and the schema fully documents parameters. The only omission is irreversibility of the stop action, which is a minor gap given the destructive annotation.

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 chat_id, message_id, reply_markup and business_connection_id are all documented structurally. The description adds only an indirect constraint ('original message with the poll') and nothing about the inline keyboard or business connection parameters; 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?

The description names a specific verb+resource ('stop a poll') and adds the scope constraint that the poll must have been sent by the bot, which is the key discriminator from sendPoll. It does not explicitly name a sibling alternative, keeping it just short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by 'Use this method to stop a poll which was sent by the bot' — an agent learns the precondition that only bot-authored polls qualify. There is no explicit statement of when not to use it or which sibling to prefer for other poll operations.

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