Skip to main content
Glama
LoneVertex

Telegram MCP — Next Generation

Upload and Send Document or File

send_file

Send local files to Telegram chats by specifying a file path within allowed roots and a target chat identifier. Add captions or topic IDs to provide context and direct delivery.

Instructions

Upload and send a local document or file to a chat. File path must resolve within configured MCP allowed roots. Requires TELEGRAM_SEND_ENABLED=true.

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.
captionNoOptional caption text describing the media file (Markdown or plain text).
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.
topic_idNoForum topic identifier (thread ID) in a supergroup where forum topics are enabled.
file_pathYesLocal filesystem path to the file to upload or send. Must resolve within configured MCP allowed roots.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already mark this as a non-read, non-idempotent mutation, so no restatement is needed. The description adds two operation-level traits beyond annotations: file_path must resolve within configured MCP allowed roots, and TELEGRAM_SEND_ENABLED=true must be set. These help the agent avoid permission and configuration failures.

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?

The description is two short sentences. The first leads with the core action, and the second packs only the two operation-level constraints an agent must know. There is no filler, redundancy, or repetition of the title.

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?

With a full 5-parameter schema, detailed per-parameter descriptions, and an output schema, the description only needed to state purpose and operation-level constraints, which it does. The allowed-root restriction and environment flag complete the picture for a safe first call.

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%, and the schema already explains chat_id formats, file_path string/array support, caption, topic_id, and account behavior. The tool description only restates the file_path allowed-roots constraint already present in the schema, adding no new parameter semantics, so the baseline score of 3 is appropriate.

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 verb 'Upload and send' plus the resource 'local document or file to a chat' precisely states the operation. This clearly separates it from text-focused siblings like send_message and from download_media, so an agent can select it without opening the schema.

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?

The description gives useful context: a local file, a target chat, and the TELEGRAM_SEND_ENABLED=true prerequisite. However, it never names alternatives or says when not to use this tool, such as using send_message for plain text or download_media for retrieval, so the usage guidance is implied rather than explicit.

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