Skip to main content
Glama
grammy-mcp
by louietyj

sendPoll

Sends a native Telegram poll to a chat with a question and answer options, supporting regular or quiz formats and returning the sent message.

Instructions

Use this method to send a native poll. On success, the sent Message 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>",
      "question": "<question>",
      "options": "<options>"
    },
    "name": "sendPoll"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoPoll type, “quiz” or “regular”, defaults to “regular”
mediaNoMedia added to the poll description
chat_idYesUnique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username`
optionsYesA list of answer options, 1-12 strings 1-100 characters each
questionYesPoll question, 1-300 characters
is_closedNoPass True if the poll needs to be immediately closed. This can be useful for poll preview.
close_dateNoPoint in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 2628000 seconds in the future. Can't be used together with open_period.
descriptionNoDescription of the poll to be sent, 0-1024 characters after entities parsing
explanationNoText that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing
open_periodNoAmount of time in seconds the poll will be active after creation, 5-2628000. Can't be used together with close_date.
is_anonymousNoTrue, if the poll needs to be anonymous, defaults to True
members_onlyNoPass True if voting is limited to users who have been members of the chat where the poll is being sent for more than 24 hours; for channel chats only
reply_markupNoAdditional interface options. An object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user.
country_codesNoA list of 0-12 two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which users can vote in the poll; for channel chats only. Use “FT” as a country code to allow users with anonymous numbers to vote. If omitted or empty, then users from any country can participate in the poll.
allows_revotingNoPass True if the poll allows to change chosen answer options, defaults to False for quizzes and to True for regular polls
protect_contentNoProtects the contents of the sent message from forwarding and saving
shuffle_optionsNoPass True if the poll options must be shown in random order
reply_parametersNoDescription of the message to reply to
explanation_mediaNoMedia added to the quiz explanation
message_effect_idNoUnique identifier of the message effect to be added to the message; for private chats only
message_thread_idNoUnique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
question_entitiesNoA list of special entities that appear in the poll question. It can be specified instead of question_parse_mode.
correct_option_idsNoA list of monotonically increasing 0-based identifiers of the correct answer options, required for polls in quiz mode
question_parse_modeNoMode for parsing entities in the question. See formatting options for more details. Currently, only custom emoji entities are allowed.
reply_to_message_idNoUse `reply_parameters` instead.
allow_adding_optionsNoPass True if answer options can be added to the poll after creation; not supported for anonymous polls and quizzes
allow_paid_broadcastNoPass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance.
description_entitiesNoA list of special entities that appear in the poll description, which can be specified instead of description_parse_mode
disable_notificationNoSends the message silently. Users will receive a notification with no sound.
explanation_entitiesNoA list of special entities that appear in the poll explanation. It can be specified instead of explanation_parse_mode
business_connection_idNoUnique identifier of the business connection on behalf of which the message will be sent
description_parse_modeNoMode for parsing entities in the poll description. See formatting options for more details.
explanation_parse_modeNoMode for parsing entities in the explanation. See formatting options for more details.
allows_multiple_answersNoPass True if the poll allows multiple answers, defaults to False
hide_results_until_closesNoPass True if poll results must be shown only after the poll closes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so safety is partly covered. The description adds only that a Message is returned on success. For a 35-parameter mutation with mode-dependent behavior, channel-only options, and mutually exclusive timing fields (close_date vs open_period), it discloses nothing about constraints or failure modes.

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

Conciseness3/5

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

Two sentences with no filler and the purpose is front-loaded, so nothing is wasted. However, the size is disproportionate to a 35-parameter tool, making the brevity a symptom of under-specification rather than discipline.

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

Completeness2/5

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

With 35 parameters, nested objects, three enums and conditional requirements (correct_option_ids needed for quizzes, country_codes/members_only for channels), the description leaves the agent to reconstruct all of that from the schema. The one thing it does cover, the return value, is the least risky gap.

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 every parameter including the nested media and reply_markup unions is documented in the schema itself. The description contributes no additional meaning about parameters, which is the baseline 3 when the schema does all the work.

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 ("send a native poll") and names the return value, which is enough to distinguish it from stopPoll and the other send* siblings. It stops short of differentiating the poll modes (quiz vs regular) that the schema supports.

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

Usage Guidelines2/5

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

The only usage cue is the imperative "Use this method to send a native poll," which is implied by the name. There is no guidance on when to prefer a poll over sendMessage or sendQuiz-style siblings, no prerequisites (e.g., bot rights in channels), and no mention that quiz mode changes required parameters.

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