Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

sendAudio

Send audio files in MP3 or M4A format to Telegram chats, enabling recipients to play them in the built-in music player. Supports up to 50 MB per file.

Instructions

Send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size. For sending voice messages, use the sendVoice method instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audioYesAudio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data.
titleNoTrack name.
captionNoAudio 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 audio in seconds.
performerNoPerformer of the audio.
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 audio 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.6/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 burden of behavioral disclosure. It adds useful operational constraints: audio must be .MP3 or .M4A, files are limited to 50 MB, and a Message is returned on success. It does not discuss side effects, authorization, or rate limits, but the provided constraints and outcome are substantial and relevant.

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 four sentences with no wasted words. It front-loads the primary purpose, then adds format constraints, the success return value, the size limit, and the sibling alternative in a logical order. Every sentence earns its place.

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?

The tool is moderately complex with 19 parameters, but the schema covers all of them, so the description only needs to add selection guidance and behavioral context. It covers the key decision point (sendAudio vs. sendVoice), return behavior, format requirements, and size limit. It does not mention all optional parameters, but that is already handled by the schema, making the description complete enough for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already provides 100% parameter description coverage, so the baseline is 3. The description adds extra semantic value beyond the schema by specifying the accepted audio formats (.MP3 or .M4A) and the 50 MB size limit, which are not explicitly present in the audio parameter description. This helps the agent validate inputs before calling the tool.

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 starts with a specific verb and resource: 'Send audio files'. It further clarifies the purpose by explaining when it is appropriate ('if you want Telegram clients to display them in the music player'), which distinguishes it from voice-message sending. It also clearly names the sibling alternative, sendVoice, so an agent can choose correctly.

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

Usage Guidelines5/5

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

The description explicitly states the intended use case ('if you want Telegram clients to display them in the music player') and provides an exclusion: 'For sending voice messages, use the sendVoice method instead.' This gives clear when-to-use and when-not-to-use guidance, plus the exact alternative.

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