Skip to main content
Glama

telegram-download-media

Read-only

Download media from a Telegram message to a local file using chat and message IDs and a provided absolute path.

Instructions

Download media from a Telegram message to a local file

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chatId": "<chatId>",
      "messageId": "<messageId>",
      "downloadPath": "<downloadPath>"
    },
    "name": "telegram-download-media"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatIdYesChat ID or username
messageIdYesMessage ID containing media
downloadPathYesAbsolute path to save the file, in Downloads, Desktop, Documents or a temp folder. An existing file is kept; a numbered name is used instead

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.45.1
    • changedInput schema / properties / downloadPath / description
      Previous value: -"Absolute path to save file"New value: +"Absolute path to save the file, in Downloads, Desktop, Documents or a temp folder. An existing file is kept; a numbered name is used instead"
  2. Addedv1.36.5
  3. Removedv1.36.3
  4. First observedv1.3.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description need only add context. It adds the destination concept (a local file), but is silent on what happens with unsupported media types, oversized files, or what is returned (e.g., the saved path). There is also mild tension worth noting: the schema says a file is written to disk while readOnlyHint=true, which is defensible if read-only refers to Telegram state, but is not clarified anywhere.

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?

A single front-loaded sentence with no filler — verb, resource, and destination in that order. It is efficient but so terse that it carries no structure beyond the one clause, leaving no second sentence to route the agent to alternatives.

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

Completeness3/5

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

All three required parameters are documented in the schema and no output schema exists, so the definition is minimally sufficient. However, for a filesystem-writing, open-world tool, it omits the practicalities an agent would need — media-type support, size limits, and confirmation of what the call returns — leaving it merely adequate.

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 chatId, messageId, and downloadPath are already fully documented, including the non-overwrite naming behavior for an existing file. The description adds no meaning beyond the schema, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Download media from a Telegram message to a local file" names a specific verb (download), a specific resource (media attached to a message), and the output destination (local file). An agent can distinguish it from telegram-send-file or telegram-get-profile-photo by the 'from a message' scope, though no sibling is named explicitly to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the resource named: the agent infers it should call this when a message contains media it wants on disk. There is no statement of when not to use it, no mention of alternatives such as telegram-get-profile-photo or telegram-transcribe-audio, and no prerequisites such as authentication or a prior read-messages call to obtain the messageId.

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

Deploy Server

Other Tools