Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

sendDocument

Send files up to 50 MB to any Telegram chat or channel. Provide a file_id, URL, or upload directly, with optional caption and formatting.

Instructions

Send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
captionNoDocument caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing.
chat_idYesUnique identifier for the target chat or username of the target channel (in the format @channelusername).
documentYesFile to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data.
thumbnailNoThumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320.
parse_modeNoMode for parsing entities in the document caption. See formatting options for more details.
reply_markupNoAdditional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user.
protect_contentNoProtects the contents of the sent message from forwarding and saving.
caption_entitiesNoA JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode.
reply_parametersNoDescription of the message to reply to.
message_effect_idNoUnique identifier of the message effect to be added to the message; for private chats only.
message_thread_idNoUnique identifier for the target message thread (topic) of the forum; for forum supergroups only.
allow_paid_broadcastNoPass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message.
disable_notificationNoSends the message silently. Users will receive a notification with no sound.
business_connection_idNoUnique identifier of the business connection on behalf of which the message will be sent.
direct_messages_topic_idNoUnique identifier for the target direct messages topic; for bots only.
suggested_post_parametersNoInformation about suggested post parameters; for channel chats only.
disable_content_type_detectionNoDisables automatic server-side content type detection for files uploaded using multipart/form-data.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral transparency burden. It usefully discloses that a Message is returned on success and that file size is limited to 50 MB. However, it does not mention side effects, error conditions, authentication requirements, or multipart upload behavior, which are significant gaps for a tool with no annotation safety hints.

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 sentences with no filler. The first sentence front-loads the action and resource, and the second sentence adds the success return value and a key size constraint. Every sentence earns its place.

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?

The description covers the success return value, which is important because there is no output schema, and it mentions the file size limit. However, for a 17-parameter tool with no annotations, it lacks routing guidance and does not explain when sendDocument should be chosen over specialized media senders. The schema fills parameter gaps, but the description leaves some invocation context unspecified.

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 even without parameter details in the description. The description does not add any parameter semantics beyond the schema; 'general files' loosely reflects the document parameter, but it adds no meaningful detail about chat_id, document formats, or optional fields. This is acceptable only because the schema is complete.

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?

The description states a clear verb and resource: 'Send general files.' It is clear that this tool sends documents, and the phrase 'general files' loosely differentiates it from specialized media senders like sendPhoto and sendAudio. However, it does not explicitly name or contrast against sibling tools, so it stops short of full differentiation.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use sendDocument versus related alternatives such as sendPhoto, sendVideo, or sendAudio. The phrase 'general files' implies a category, but the description does not state exclusions, preferred cases, or conditions that would route an agent to a different send method. The 50 MB limit is a constraint, not usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TONresistor/telegram-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server