Skip to main content
Glama
aggeentik

Telegram Bot MCP Server

by aggeentik

telegram_publish_message

Publish a message to a Telegram channel by providing the channel ID and text. Supports Markdown or HTML formatting, link preview toggling, and silent notifications.

Instructions

Publish a message to a Telegram channel.

Use this tool to post new messages to a Telegram channel where the bot is an admin. The bot must have permission to post messages in the channel.

Args: channel_id: Channel username (e.g., '@mychannel') or numeric chat ID (e.g., '-1001234567890'). Use '@' prefix for public channels with username. text: The message text to publish. Supports Markdown or HTML formatting based on parse_mode. parse_mode: Text formatting mode. Options: 'Markdown', 'HTML', or 'None' for plain text. Default is 'Markdown'. disable_web_page_preview: If True, disables link preview for URLs in the message. Default is False. disable_notification: If True, sends the message silently (no notification to users). Default is False. response_format: Response format. Options: 'json' for structured data, 'markdown' for human-readable text. Default is 'markdown'.

Returns: A dictionary containing message_id, chat_id, date, text, and link. If response_format='markdown', returns formatted text content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
channel_idYes
parse_modeNoMarkdown
response_formatNomarkdown
disable_notificationNo
disable_web_page_previewNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations indicate a write/non-idempotent operation, but the description adds valuable context: bot admin requirement, parse_mode formatting behavior, effects of disable_web_page_preview and disable_notification, and response format differences. No contradictions with annotations.

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?

The description is well-structured with an intro, usage note, Args section, and Returns section. Every sentence adds value, and there is no redundancy or fluff. It is appropriately sized for a 6-parameter tool.

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?

The tool is moderately complex and the schema provides no descriptions, yet the description covers purpose, prerequisites, every parameter, defaults, and return values. This makes the tool fully invocable without external documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description thoroughly explains all 6 parameters, including types, options, defaults, and the meaning of channel_id formats. This fully compensates for the schema gaps.

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 first sentence clearly states the verb and resource: 'Publish a message to a Telegram channel.' It distinguishes from sibling tools like telegram_publish_photo by focusing on text messages and explicitly says 'post new messages.'

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?

The description clearly states when to use the tool ('Use this tool to post new messages to a Telegram channel where the bot is an admin') and gives a prerequisite (bot must have permission). It does not explicitly mention alternatives (e.g., for photos use telegram_publish_photo), but the context is clear enough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aggeentik/telegram-bot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server