Skip to main content
Glama
LoneVertex

Telegram MCP — Next Generation

Download Media Attachment to Local Disk

download_media
Idempotent

Download attachments or media from a Telegram message to your local filesystem, saving files to configured allowed paths.

Instructions

Download an attachment or media file from a message to the local filesystem. Destination path must resolve within configured MCP allowed roots. To check metadata before downloading, use get_media_info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoOptional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts.
chat_idYesTarget Telegram chat, group, supergroup, channel, or user identifier. Accepts numeric chat ID (e.g. -1001234567890 or 123456789), username (e.g. '@channel'), or phone number.
file_pathNoLocal filesystem path to the file to upload or send. Must resolve within configured MCP allowed roots.
message_idYesUnique integer ID of the target message within the specified chat.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already expose mutability (readOnlyHint=false), idempotency, and non-destructive behavior. The description adds the operational constraint that the destination path must be within configured MCP allowed roots, which is useful beyond the 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?

Three short sentences, front-loaded with the core purpose, followed by the key constraint and the alternative tool. No filler or repetition.

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

Completeness4/5

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

For a download operation, the description explains what it does, the key path constraint, and the metadata alternative; an output schema exists, so return-value details are not necessary. Minor ambiguity about the default destination when file_path is omitted prevents a 5.

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 the baseline is 3. The description adds the 'destination path' framing, but it largely restates file_path's root constraint and does not clarify the file_path schema phrase about 'upload or send' or the behavior when file_path is omitted.

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 names a specific operation ('Download an attachment or media file'), the resource (message attachment), and the destination (local filesystem). It clearly distinguishes itself from siblings like get_media_info (metadata only) and send_file (upload).

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 gives clear context: use it to physically fetch media, and use get_media_info when only metadata is needed. It lacks an explicit exclusion for send_file or a fuller when-not-to-use statement, but the main alternative is named.

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