Skip to main content
Glama
aggeentik

Telegram Bot MCP Server

by aggeentik

telegram_publish_photo

Publish a photo to a Telegram channel with an optional caption. Accepts local file paths, URLs, or Telegram file IDs, and supports Markdown or HTML caption formatting.

Instructions

Publish a photo to a Telegram channel with an optional caption.

Use this tool to post photos to a Telegram channel where the bot is an admin. The photo can include a text caption with formatting. The bot must have permission to post messages in the channel.

Args: channel_id: Channel username (e.g., '@mychannel') or numeric chat ID. photo: Photo to send. Can be: - File path to a local image file (e.g., '/path/to/image.jpg') - URL to a remote image (e.g., 'https://example.com/image.png') - Telegram file_id of a photo that exists on Telegram servers caption: Optional text caption for the photo. Supports Markdown or HTML formatting based on parse_mode. Maximum 1024 characters. parse_mode: Caption formatting mode. Options: 'Markdown', 'HTML', or 'None' for plain text. Default is 'Markdown'. disable_notification: If True, sends the photo 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, caption, photo info, and link. If response_format='markdown', returns formatted text content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
photoYes
captionNo
channel_idYes
parse_modeNoMarkdown
response_formatNomarkdown
disable_notificationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already cover non-read-only and non-idempotent behavior. The description adds useful context: the bot must have admin permission, photo can be a path/URL/file_id, and return values include message_id and chat_id. It doesn't contradict annotations and enriches the behavioral model, though it omits details like error handling or rate limits.

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 appropriately sized and well-structured, starting with a one-sentence summary, followed by a short usage context, then an Args list, and a Returns section. Every sentence provides useful information without redundancy, earning its place.

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?

Given the tool's complexity (6 parameters, varied input types, response_format options) and the presence of annotations and an output schema, the description covers prerequisites, parameter nuances, and return structure. It is complete enough for an agent to select and invoke the tool correctly without additional information.

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?

With 0% schema description coverage, the description fully compensates by explaining every parameter in the 'Args' section. It clarifies accepted formats for channel_id (username or numeric ID) and photo (path, URL, file_id), gives max caption length, lists parse_mode options, and explains response_format. This adds significant meaning beyond the bare schema.

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 'Publish a photo to a Telegram channel with an optional caption,' which is a specific verb+resource statement. It clearly distinguishes from sibling tools like telegram_publish_message (text) and telegram_publish_photo_album (multiple photos) by focusing on a single photo.

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 states when to use this tool: 'post photos to a Telegram channel where the bot is an admin' and notes the permission requirement. It does not explicitly name alternatives or provide 'when-not' guidance, but the context is clear enough to differentiate it from siblings.

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