Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

sendVoice

Send audio files as playable voice messages in Telegram. Supports OGG/OPUS, MP3, or M4A formats, with captions and reply options.

Instructions

Send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format. On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
voiceYesAudio file 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.
captionNoVoice message caption, 0-1024 characters after entities parsing.
chat_idYesUnique identifier for the target chat or username of the target channel (in the format @channelusername).
durationNoDuration of the voice message in seconds.
parse_modeNoMode for parsing entities in the voice message 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.

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden and does well: it discloses display semantics, format enforcement, the 50MB size cap, and the return contract ('On success, the sent Message is returned'). The return-value note is especially valuable given there is no output schema. It omits permission requirements and failure behavior, but for a send operation the format and size constraints are the critical behavioral traits.

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?

Four sentences, each earning its place: distinguishing purpose, format eligibility, return value, and size limit. The purpose is front-loaded in the first clause, and the whole description is compact relative to the tool's 16-parameter complexity. There is no redundancy or filler.

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?

For a tool with zero annotations and no output schema, the description covers the essential contract: what it does, which formats qualify, the size ceiling, and what is returned. It misses only peripheral context — permission requirements, explicit mutation notice, and failure behavior — which are conventional for send-type Telegram API tools and unlikely to mislead an agent.

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%, setting the baseline at 3. The format and size constraints in the description relate to the voice parameter but do not add meaning beyond the schema's already-detailed per-parameter descriptions (file_id, URL, or multipart upload for voice). No parameter is left undocumented and the description does not need to compensate.

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 description opens with a specific verb-resource pair ('Send audio files') and immediately defines the distinguishing display mode: 'if you want Telegram clients to display the file as a playable voice message.' This behaviorally separates it from sibling sendAudio (audio played as a music file) and sendVideoNote without ambiguity, so an agent can select it correctly without inspecting either tool.

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?

The conditional 'if you want Telegram clients to display the file as a playable voice message' gives clear selection context. The format requirements (.OGG/OPUS, .MP3, .M4A) and the 50MB cap provide actionable constraints on when a call will succeed. However, no alternative tool is named explicitly (e.g., 'for music files use sendAudio instead'), so exclusion guidance is implied rather than stated.

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