Skip to main content
Glama
telegram-mcp

telegram-mcp

by adsqwui

tg_send_file

Sends a photo, voice message, video, or file to a Telegram chat from a server path, public URL, or base64 content, with optional caption and reply settings.

Instructions

Send a photo, voice message, video or any file. Give exactly one source:

path: a file on the server (from tg_get_media or inside TG_ALLOWED_ROOTS);
url: a public http(s) link that Telegram downloads itself;
content_base64 + filename: the file bytes, for clients that are not on the server.
send_as: auto picks by type, document keeps the original file, voice needs .ogg (opus) audio.
caption supports the same markdown as tg_send_message.

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>"
    },
    "name": "tg_send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
chatYes
pathNo
silentNo
captionNo
send_asNoauto
filenameNo
reply_toNo
wait_replyNo
content_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare write semantics (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds genuinely useful behavior: the single-source constraint, the TG_ALLOWED_ROOTS gating on path, and the send_as conversion rules. It is silent on practical limits that matter for an upload tool — maximum file size, failure/timeout behavior, and what silent and wait_reply actually change.

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?

Front-loaded with the action, then one line per source mode, then the send_as and caption notes. Dense and well-sectioned with no filler sentences.

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?

For a 10-parameter mutation tool with no output schema and no annotation detail, the description covers the highest-risk ambiguity (which source field to supply) well. Missing size limits, silent/reply_to/wait_reply semantics, and any indication of what a successful send returns leave real gaps for an agent operating it.

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% across 10 parameters, so the description has to carry the load; it does so for the three mutually exclusive source parameters and explains auto/document/voice in send_as. But chat, silent, reply_to, wait_reply, and the photo/video_note send_as values get no explanation anywhere, leaving half the surface undocumented.

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?

"Send a photo, voice message, video or any file" gives a specific verb and resource, and the reference to tg_send_message's markdown for captions implicitly separates it from the plain-text sender. An agent knows immediately this is the media/attachment path.

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?

"Give exactly one source" is a strong, explicit selection rule that maps each of the three modes to its use case (server file, public URL, inline bytes for off-server clients). It never states when to reach for tg_send_message instead of this tool, so the exclusion half of the guidance is absent.

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