Skip to main content
Glama
aggeentik

Telegram Bot MCP Server

by aggeentik

telegram_publish_photo_album

Send 2-10 photos as a swipeable album to a Telegram channel, with optional per-photo captions and formatting.

Instructions

Publish multiple photos as an album (media group) to a Telegram channel.

Use this tool to post 2-10 photos in a single message as an album/gallery. Users can swipe through the photos. Each photo can have its own caption. The bot must have permission to post messages in the channel.

Args: channel_id: Channel username (e.g., '@mychannel') or numeric chat ID. photos: List of photo objects (2-10 items). Each photo object must contain: - photo (required): 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 this specific photo. Maximum 1024 characters. - parse_mode (optional): Caption formatting mode ('Markdown', 'HTML', or 'None'). Default is 'Markdown' if not specified. disable_notification: If True, sends the album 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: - album_id: Unique identifier for the media group - message_count: Number of photos in the album - messages: List of message details for each photo (message_id, caption, photo info, link) - first_message_id: ID of the first message in the album - chat_id: Channel chat ID If response_format='markdown', returns formatted text content.

Example: photos = [ { "photo": "https://example.com/photo1.jpg", "caption": "First photo caption", "parse_mode": "Markdown" }, { "photo": "/path/to/photo2.jpg", "caption": "Second photo caption" }, { "photo": "AgACAgIAAxkBAAIC...", # Telegram file_id "caption": "Third photo" } ]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
photosYes
channel_idYes
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 indicate readOnlyHint=false and destructiveHint=false, which are not contradicted. The description adds meaningful context: album behavior ('Users can swipe through the photos'), per-photo captions, and the permission prerequisite. It lacks details like idempotency or rate limits, but given annotation coverage the added context is adequate.

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

Conciseness4/5

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

The description is longer than typical but well-organized with Args, Returns, and an Example. Every sentence contributes value, and the structure makes information easy to scan. It could be slightly trimmed without losing meaning, but it's justified for a complex multi-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?

Given the absence of schema descriptions, the description is remarkably complete. It covers all parameters, return values, defaults, permission requirements, and provides a realistic example. No important aspect appears missing for an agent to use the tool correctly.

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%, so the description carries full burden. It compensates excellently: explains each parameter, including the photos array structure with required 'photo' and optional 'caption'/'parse_mode', their types, examples, defaults for disable_notification and response_format, and channel_id formats. Example usage clarifies photo sources (URL, path, file_id).

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 clearly states the tool's function: 'Publish multiple photos as an album (media group) to a Telegram channel.' It is distinct from siblings like telegram_publish_photo (single photo) and provides essential scope (2-10 photos).

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 explicitly says 'Use this tool to post 2-10 photos in a single message as an album/gallery,' establishing when it applies. It also notes the bot permission requirement. It doesn't explicitly name alternatives (e.g., 'for single photo use telegram_publish_photo'), but the sibling list and clarifying phrase 'multiple photos' make the use case clear.

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