telegram-api-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_AUTH_TOKEN | No | Optional bearer auth token for the Cloudflare Worker `/mcp` endpoint. If set, clients must send `Authorization: Bearer <MCP_AUTH_TOKEN>`. | |
| TELEGRAM_BOT_TOKEN | Yes | Bot token from @BotFather. Required for the Telegram Bot API server. In the Cloudflare Worker fork, set it via `npx wrangler secret put TELEGRAM_BOT_TOKEN`. | |
| TELEGRAM_META_MODE | No | Use 2 meta-tools instead of 185. | false |
| TELEGRAM_CB_COOLDOWN | No | Circuit breaker cooldown (ms). | 30000 |
| TELEGRAM_MAX_RETRIES | No | Retry attempts on transient errors. | 3 |
| TELEGRAM_CB_THRESHOLD | No | Failures before circuit opens. | 5 |
| TELEGRAM_MAX_FILE_SIZE | No | Max upload file size (50MB). | 52428800 |
| TELEGRAM_DEFAULT_CHAT_ID | No | Default chat ID for all tools. | |
| TELEGRAM_DEFAULT_THREAD_ID | No | Default forum topic thread ID. | |
| TELEGRAM_GLOBAL_RATE_LIMIT | No | Max requests/sec (Telegram limit). | 30 |
| TELEGRAM_ALLOWED_UPLOAD_DIRS | No | Comma-separated allowed upload paths. | |
| TELEGRAM_PER_CHAT_RATE_LIMIT | No | Max messages/min per group (Telegram limit). | 20 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| send_messageA | Send a text message to a chat. Supports HTML, Markdown, MarkdownV2 formatting. Max 4096 characters — for longer posts use send_rich_message. |
| send_rich_messageA | Send a rich message (Bot API 10.1) — the long-form post format. Up to 32768 characters with headings, lists, tables, block quotes, pull quotes, collages, slideshows, details blocks, footnotes, formulas, maps and up to 50 inline media. Use this instead of send_photo when a post exceeds the 1024-character caption limit. Call telegram_format with topic "rich_message" for the exact syntax before building the post. |
| send_rich_message_draftA | Stream a partial rich message while it is still being generated. The draft is a temporary 30-second preview — call send_rich_message with the finished content to persist it. Private chats only. |
| send_photoB | Send a photo. Pass file_id, HTTP URL, or absolute file path. Caption is capped at 1024 characters — use send_rich_message for longer posts. |
| send_live_photoA | Send a live photo (Bot API 10.0) — a static photo plus a short video. The video must be at most 10 seconds and 10 MB; URLs are not supported for the video. |
| send_audioC | Send an audio file. Telegram clients display it in the music player. |
| send_documentC | Send a general file (document). |
| send_videoC | Send a video file. Telegram clients support MPEG4 videos. |
| send_animationC | Send an animation (GIF or H.264/MPEG-4 AVC video without sound). |
| send_voiceC | Send a voice message (.OGG encoded with OPUS). |
| send_video_noteC | Send a video note (round video message, max 1 minute). |
| send_paid_mediaC | Send paid media that requires Stars payment to view. |
| send_media_groupB | Send a group of photos, videos, documents, or audios as an album (2-10 items). |
| send_locationC | Send a point on the map. |
| send_venueC | Send information about a venue. |
| send_contactC | Send a phone contact. |
| send_pollC | Send a poll or quiz. Supports revoting, shuffling, user-added options, descriptions, media in options, and multiple correct answers. |
| send_diceC | Send an animated emoji that displays a random value. |
| send_chat_actionB | Tell the user that the bot is performing an action (typing, uploading, etc). |
| set_message_reactionA | Set a reaction on a message. Use emoji or custom emoji. |
| delete_message_reactionB | Remove a reaction from a message in a group or supergroup (Bot API 10.0). Requires the can_delete_messages admin right. |
| delete_all_message_reactionsA | Remove up to 10000 recent reactions added by a given user or chat in a group or supergroup (Bot API 10.0). Requires the can_delete_messages admin right. |
| send_checklistC | Send an interactive checklist. Requires a business connection. |
| forward_messageC | Forward a message from one chat to another. |
| forward_messagesC | Forward multiple messages at once (maintains album grouping). |
| copy_messageB | Copy a message (sends without 'Forwarded from' header). Can change caption. |
| copy_messagesC | Copy multiple messages at once. |
| edit_message_textB | Edit the text of a message sent by the bot or via inline mode. Pass either text or rich_message. |
| edit_message_captionC | Edit the caption of a media message. |
| edit_message_mediaB | Edit the media content of a message (photo, video, animation, document, audio). |
| edit_message_reply_markupC | Edit the inline keyboard of a message. |
| edit_message_live_locationC | Edit a live location message. |
| stop_message_live_locationC | Stop updating a live location message. |
| edit_message_checklistC | Edit a checklist message. Requires a business connection. |
| delete_messageA | Delete a message. Bot must have delete rights in the chat. |
| delete_messagesA | Delete multiple messages at once. Max 100 messages. |
| stop_pollB | Stop a poll in a chat. |
| edit_ephemeral_message_textA | Edit the text of an ephemeral message (Bot API 10.2). Delivery of the edit is not guaranteed if the user is offline. |
| edit_ephemeral_message_mediaC | Edit the media of an ephemeral message (Bot API 10.2). |
| edit_ephemeral_message_captionC | Edit the caption of an ephemeral media message (Bot API 10.2). |
| edit_ephemeral_message_reply_markupC | Edit the inline keyboard of an ephemeral message (Bot API 10.2). |
| delete_ephemeral_messageA | Delete an ephemeral message (Bot API 10.2). Delivery of the deletion is not guaranteed if the user is offline. |
| get_chatA | Get full information about a chat (title, description, photo, member count, permissions, etc). |
| get_chat_administratorsB | Get a list of administrators in a chat. |
| get_chat_member_countA | Get the number of members in a chat. |
| get_chat_memberB | Get information about a member in a chat. |
| ban_chat_memberA | Ban a user from a chat. In supergroups/channels, the user cannot return without being unbanned. |
| unban_chat_memberB | Unban a previously banned user. |
| restrict_chat_memberB | Restrict a user's permissions in a supergroup. |
| promote_chat_memberB | Promote or demote a user in a supergroup or channel. |
| set_chat_administrator_custom_titleC | Set a custom title for an administrator. |
| set_chat_member_tagA | Set or remove a tag for a chat member (v9.5). |
| ban_chat_sender_chatA | Ban a channel chat from sending messages in a supergroup. |
| unban_chat_sender_chatA | Unban a previously banned channel chat. |
| set_chat_permissionsA | Set default permissions for all members in a group/supergroup. |
| set_chat_photoB | Set a new chat photo. |
| delete_chat_photoA | Delete a chat photo. |
| set_chat_titleB | Change the title of a chat. |
| set_chat_descriptionB | Change the description of a chat. |
| set_chat_sticker_setB | Set the sticker set for a supergroup. |
| delete_chat_sticker_setA | Delete the sticker set from a supergroup. |
| leave_chatA | Bot leaves a group, supergroup, or channel. |
| pin_chat_messageC | Pin a message in a chat. |
| unpin_chat_messageC | Unpin a message in a chat. |
| unpin_all_chat_messagesB | Unpin all messages in a chat. |
| export_chat_invite_linkA | Generate a new primary invite link (revokes previous one). |
| create_chat_invite_linkC | Create an additional invite link. |
| edit_chat_invite_linkB | Edit a non-primary invite link. |
| revoke_chat_invite_linkC | Revoke an invite link. |
| approve_chat_join_requestA | Approve a chat join request. |
| decline_chat_join_requestB | Decline a chat join request. |
| answer_chat_join_request_queryC | Process a received chat join request query (v10.1). Used by guard bots that vet join requests. |
| send_chat_join_request_web_appA | Show a Mini App to a user before deciding a join request (v10.1). Resolve the request afterwards with answer_chat_join_request_query. |
| get_user_personal_chat_messagesB | Get the last messages from the personal chat a user has added to their profile (v10.0). |
| get_user_chat_boostsA | Get a user's boosts in a chat. |
| get_meA | Get basic information about the bot (id, name, username, etc). |
| log_outA | Log out from the cloud Bot API server. Use before moving to a local server. |
| closeA | Close the bot instance. Use before moving between local servers. |
| set_my_commandsC | Set the bot's command list shown in the menu. |
| delete_my_commandsB | Delete the bot's command list for a given scope and language. |
| get_my_commandsA | Get the bot's current command list. |
| set_my_nameC | Set the bot's name. |
| get_my_nameA | Get the bot's name for a given language. |
| set_my_descriptionA | Set the bot's description (shown in empty chat). |
| get_my_descriptionB | Get the bot's description. |
| set_my_short_descriptionA | Set the bot's short description (shown on profile page). |
| get_my_short_descriptionB | Get the bot's short description. |
| set_my_default_administrator_rightsA | Set default admin rights requested when adding bot to groups/channels. |
| get_my_default_administrator_rightsB | Get default admin rights. |
| set_my_profile_photoC | Set the bot's profile photo (v9.4). |
| remove_my_profile_photoB | Remove the bot's profile photo (v9.4). |
| get_user_profile_photosC | Get a user's profile photos. |
| get_user_profile_audiosB | Get a user's profile audio tracks (v9.4). |
| get_fileA | Get file info for downloading. Returns file_path — use https://api.telegram.org/file/bot/<file_path> to download. |
| get_forum_topic_icon_stickersA | Get custom emoji stickers that can be used as forum topic icons. |
| create_forum_topicA | Create a topic in a forum supergroup or private chat (v9.4+). |
| edit_forum_topicA | Edit name and icon of a forum topic. |
| close_forum_topicA | Close an open topic in a forum supergroup. |
| reopen_forum_topicB | Reopen a closed topic. |
| delete_forum_topicA | Delete a forum topic along with all its messages. |
| unpin_all_forum_topic_messagesC | Unpin all messages in a forum topic. |
| edit_general_forum_topicA | Edit the name of the 'General' forum topic. |
| close_general_forum_topicC | Close the 'General' topic. |
| reopen_general_forum_topicA | Reopen the 'General' topic. |
| hide_general_forum_topicB | Hide the 'General' topic. |
| unhide_general_forum_topicB | Unhide the 'General' topic. |
| unpin_all_general_forum_topic_messagesA | Unpin all messages in the 'General' topic. |
| send_stickerD | Send a sticker. |
| get_sticker_setA | Get a sticker set by name. |
| get_custom_emoji_stickersA | Get information about custom emoji stickers by their identifiers. |
| upload_sticker_fileA | Upload a sticker file to Telegram for later use in createNewStickerSet. |
| create_new_sticker_setC | Create a new sticker set owned by a user. |
| add_sticker_to_setC | Add a sticker to an existing set. |
| set_sticker_position_in_setB | Move a sticker to a specific position in the set. |
| delete_sticker_from_setC | Delete a sticker from a set. |
| replace_sticker_in_setB | Replace an existing sticker in a set with a new one. |
| set_sticker_set_titleA | Set the title of a sticker set. |
| set_sticker_set_thumbnailC | Set the thumbnail of a sticker set. |
| set_custom_emoji_sticker_set_thumbnailB | Set the thumbnail of a custom emoji sticker set. |
| set_sticker_emoji_listB | Change the list of emoji associated with a sticker. |
| delete_sticker_setA | Delete a sticker set created by the bot. |
| send_invoiceC | Send an invoice for payment. |
| create_invoice_linkC | Create a link for an invoice. |
| answer_shipping_queryC | Reply to shipping queries. Called if sendInvoice used is_flexible. |
| answer_pre_checkout_queryA | Respond to pre-checkout queries. Must answer within 10 seconds. |
| get_star_transactionsC | Get the bot's Telegram Star transactions. |
| get_my_star_balanceA | Get the bot's Telegram Stars balance (v9.1). |
| refund_star_paymentC | Refund a Telegram Star payment. |
| read_business_messageC | Mark a business message as read. |
| delete_business_messagesB | Delete business messages. |
| set_business_account_nameC | Set the name of a connected business account. |
| set_business_account_usernameC | Set the username of a business account. |
| set_business_account_bioB | Set the bio of a business account. |
| set_business_account_profile_photoC | Set the profile photo of a business account. |
| remove_business_account_profile_photoC | Remove a business account profile photo. |
| set_business_account_gift_settingsC | Configure gift settings for a business account. |
| get_business_account_giftsC | Get gifts owned by a business account. |
| get_business_account_star_balanceA | Get the Telegram Stars balance of a business account. |
| transfer_business_account_starsA | Transfer Telegram Stars from a business account to the bot. |
| approve_suggested_postC | Approve a suggested post in a direct messages chat (v9.2). |
| decline_suggested_postC | Decline a suggested post in a direct messages chat (v9.2). |
| post_storyC | Post a story on behalf of a business account (v9.0). |
| edit_storyC | Edit a posted story (v9.0). |
| delete_storyC | Delete a story (v9.0). |
| repost_storyC | Repost a story on behalf of a managed business account (v9.3). |
| get_available_giftsA | Get the list of gifts that can be sent. |
| send_giftC | Send a gift to a user or channel chat. |
| get_user_giftsC | Get the gifts owned and hosted by a user (v9.3). |
| get_chat_giftsC | Get the gifts owned and hosted by a chat (v9.3). |
| convert_gift_to_starsC | Convert a gift to Telegram Stars (v9.0). |
| upgrade_giftB | Upgrade a regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business bot right. |
| transfer_giftB | Transfer an owned unique gift to another user. Requires the can_transfer_and_upgrade_gifts business bot right. |
| gift_premium_subscriptionC | Gift a Telegram Premium subscription (v9.0). |
| send_gameD | Send a game. |
| set_game_scoreC | Set the score of a user in a game. |
| get_game_high_scoresC | Get high scores for a game. |
| answer_inline_queryB | Send answers to an inline query. Max 50 results per query. |
| answer_callback_queryB | Answer a callback query from an inline keyboard button. |
| answer_guest_queryB | Reply to a received guest message (v10.0). Guest mode lets users message the bot without starting a chat. |
| get_managed_bot_tokenA | Get the token of a managed bot (v9.6). |
| replace_managed_bot_tokenA | Replace the token of a managed bot (v9.6). |
| save_prepared_keyboard_buttonB | Save a prepared keyboard button for later use (v9.6). |
| get_managed_bot_access_settingsA | Get the access settings of a managed bot (v10.0). |
| set_managed_bot_access_settingsC | Change the access settings of a managed bot (v10.0). |
| get_updatesA | Receive incoming updates via long polling. |
| set_webhookC | Set a webhook URL for receiving updates. |
| delete_webhookA | Remove webhook integration and switch back to getUpdates. |
| get_webhook_infoA | Get current webhook status. |
| set_passport_data_errorsB | Inform a user that some Telegram Passport elements contain errors. |
| send_message_draftA | Stream a partial text message while it is being generated. The draft is a temporary preview — send the final text with send_message to persist it. |
| answer_web_app_queryA | Set the result of an interaction with a Web App and send a message on behalf of the user. |
| set_chat_menu_buttonA | Set the bot's menu button in a private chat or default menu button. |
| get_chat_menu_buttonA | Get the current menu button for a chat or default. |
| create_chat_subscription_invite_linkA | Create a subscription invite link for a channel chat. |
| edit_chat_subscription_invite_linkC | Edit a subscription invite link. |
| edit_user_star_subscriptionC | Edit a user's Star subscription (cancel or extend). |
| get_business_connectionC | Get information about a business connection. |
| verify_userC | Verify a user on behalf of the bot's organization. |
| remove_user_verificationB | Remove user verification. |
| verify_chatB | Verify a chat on behalf of the bot's organization. |
| remove_chat_verificationB | Remove chat verification. |
| set_sticker_keywordsB | Change search keywords for a sticker. |
| set_sticker_mask_positionC | Change the mask position of a mask sticker. |
| set_user_emoji_statusA | Set a custom emoji status for a user (requires bot to have appropriate rights). |
| save_prepared_inline_messageB | Save a prepared inline message result for a user to send via inline button. |
| telegram_formatA | Ask what shape a structured Telegram parameter must have BEFORE sending. Call this whenever you are about to build a rich post, an album, a keyboard, or a poll and are not certain of the exact syntax. Topics: rich_message, caption, media, reply_markup, poll, checklist, reply_parameters, link_preview_options, suggested_post_parameters. Omit the topic to list them all. For a post longer than a 1024-character caption, ask for 'rich_message'. |
| get_trailA | Query the TRAIL content log. Check what content was posted, failed, or skipped across pipelines. |
| mark_trailA | Write an entry to the TRAIL content log. Use to explicitly record content actions. |
| get_trail_statsA | Get summary statistics from the TRAIL content log. |
| download_fileA | Download a file from Telegram by file_id. Saves locally and returns the path. Use after receiving a message with a photo, video, document, voice, etc. Max 20MB (Telegram Bot API limit). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| format-rich_message | Long-form post: up to 32768 characters with headings, tables, lists and up to 50 images. |
| format-caption | Media caption: 1024 visible characters, HTML or Markdown. Use rich_message for anything longer. |
| format-media | Array of InputMedia objects; each needs a `type` and a `media` source. |
| format-reply_markup | Keyboards: inline_keyboard (buttons under the message) or keyboard (replaces the user's keyboard). |
| format-poll | Options are objects, not strings; quizzes use correct_option_ids (an array). |
| format-checklist | Interactive checklist; requires a business connection. |
| format-reply_parameters | Reply to a message, optionally quoting part of it or replying across chats. |
| format-link_preview_options | Control the link preview — disable it, enlarge it, or move it above the text. |
| format-suggested_post_parameters | Propose a paid or scheduled post in a channel's direct messages chat. |
TDQS
Scored across 190 tools
Most tools have distinct verb+resource purposes, but the sheer number of similar variants creates real ambiguity: send_message vs send_message_draft vs send_rich_message, edit_message_text vs edit_ephemeral_message_text, delete_message vs delete_messages, and forward/copy singular vs plural. Descriptions help distinguish them, but an agent must still parse many closely related options before choosing.
The surface overwhelmingly follows a predictable snake_case verb_noun pattern (send_message, get_chat, delete_sticker_from_set). Minor deviations exist, such as bare verbs 'close' and 'log_out', plus domain-specific names like 'telegram_format' and 'get_trail', but these do not seriously undermine readability.
190 tools is an extreme mismatch for a usable MCP surface, far beyond the typical 3-15 range and well past the 50+ threshold. Even though the tools mirror the Telegram Bot API, the volume creates severe selection and context burdens for an agent.
The tool set covers an unusually broad Telegram Bot API surface: messaging, media, chats, members, stickers, payments, gifts, business accounts, webhooks, inline mode, and formatting helpers. No obvious lifecycle or domain gap stands out for the stated purpose.