Skip to main content
Glama
telegram-mcp

telegram-mcp

by adsqwui

tg_get_media

Read-only

Download media from up to 10 Telegram messages and return photos, video thumbnails, transcripts, extracted text, and saved file paths for reuse or resending.

Instructions

Download the media of up to 10 messages and return it in a usable form.

Photos and images come back as images, video as a thumbnail plus transcript, voice/audio as a
transcript, text and PDF files as their text. Every file is saved on the server and its path is
returned (it can be sent again with tg_send_file). embed_file also attaches the raw file bytes.

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": {
      "chat": "<chat>",
      "message_ids": "<message_ids>"
    },
    "name": "tg_get_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
embed_fileNo
transcribeNo
message_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only supply the read-only/open-world safety profile; the description adds real behavioral detail on top: per-media-type return formats (image, thumbnail+transcript, transcript, text extraction), the side effect that files are persisted server-side with a path, and the extra effect of embed_file attaching raw bytes. That is exactly the kind of context annotations cannot convey.

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 sentences, front-loaded with the core action and constraint, then the return-format breakdown, then the server-path/embed_file behavior. Every sentence contributes information an agent would otherwise have to guess.

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?

With no output schema and 0% schema coverage, the description does the heavy lifting on return values and persistence behavior, which is the critical gap for this tool. It stays thin only on the 'chat' parameter and on whether transcribe can be disabled to skip transcription, minor relative to what is already covered.

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 0%, so the description must carry parameter meaning. It does explain embed_file ('also attaches the raw file bytes') and implies transcription via the transcribe flag by describing audio returning 'a transcript', but 'chat' is never described and the transcribe toggle's off-state is not spelled out; the '10 messages' cap is stated but not tied to message_ids explicitly.

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?

States a specific verb and resource ('Download the media') plus a hard scope limit ('up to 10 messages') and the returned form ('usable form'). The follow-up sentences enumerate exactly what 'usable form' means per media type, so an agent knows this is a media-extraction tool rather than a text reader like tg_read_messages.

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 context is implied rather than stated: it explains the path output 'can be sent again with tg_send_file', which hints at a download-then-forward workflow. But it never says when to prefer this over tg_read_messages for text content, nor what happens when more than 10 message IDs are supplied. No explicit exclusions or alternatives are given.

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