Skip to main content
Glama

Send a Telegram message

send_telegram_message
Destructive

Sends a text message as the user in a Telegram conversation the account already has (chat and chatTitle from list_telegram_chats or the other Telegram tools); it cannot start a conversation from a phone number or a username. The conversation can be a person, a group, a channel where the account may post, a bot or the user's own Saved Messages: text sent to a bot can be a command the bot executes, and a message in a channel is published to all its subscribers. The result gives the conversation's name and type (user, bot, self, group, supergroup, channel). Text only, no attachments. The message is sent immediately and cannot be unsent from Fezola (no drafts). Returns the sent message id, its conversation and its date. Fezola sends once and does not retry: TELEGRAM_SEND_UNCERTAIN means Telegram did not confirm and the message may have been delivered; TELEGRAM_SEND_NOT_SENT means nothing was sent (Telegram too slow before the send). TELEGRAM_CHAT_TITLE_MISMATCH means chatTitle is not the name of that conversation. TELEGRAM_FLOOD_WAIT and TELEGRAM_SLOWMODE_WAIT give the seconds Telegram asks to wait. TELEGRAM_SEND_RATE_LIMITED means the Fezola limit of 20 messages per minute or 200 per day for that account is reached. TELEGRAM_SEND_DISABLED means the user turned sending off for that account in Fezola.

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": {
      "accountId": "<accountId>",
      "chat": "<chat>",
      "chatTitle": "<chatTitle>",
      "text": "<text>"
    },
    "name": "send_telegram_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesConversation: the `chat` id returned by the other Telegram tools.
textYesMessage text, sent as written. Plain text, 4096 characters max.
accountIdYesTelegram source that sends, as returned by the other Telegram tools.
chatTitleYesName of the conversation designated by `chat`, as returned by the Telegram tools (`label` in list_telegram_chats, `chatLabel` on messages; "Saved Messages" for the user's own chat). Checked against the conversation, ignoring case, accents and extra spaces: on a mismatch nothing is sent and the error gives the real name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag destruction and open-world access; the description adds substantial context beyond them: sending is immediate and cannot be undone or drafted, Fezola sends once with no retry, and each error code (TELEGRAM_SEND_UNCERTAIN, TELEGRAM_SEND_NOT_SENT, TELEGRAM_CHAT_TITLE_MISMATCH, FLOOD_WAIT, SLOWMODE_WAIT) is explained. Concrete rate limits of 20/minute and 200/day and the per-account disable state are also disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and its scope, then targets, then return value, then failure modes — a sensible order. The error-code enumeration is dense and could be trimmed, but each entry carries decision-relevant information about whether a message may have been delivered.

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?

For a destructive, open-world send with no output schema, the description covers everything an agent needs: valid conversation sources, side effects on channels and bots, irreversibility, return payload shape, and the full error taxonomy including retry ambiguity. Nothing material is left to inference.

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?

Schema coverage is 100%, so the baseline is 3; the description nevertheless adds operational meaning — chatTitle is validated against the conversation and a mismatch aborts the send, chat must originate from the other Telegram tools, and text goes out exactly as written. It does not restate the 4096-character bound, but the schema handles that.

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?

States a specific verb and resource ("Sends a text message as the user in a Telegram conversation") and immediately bounds scope: text only, no attachments, cannot start a conversation from a phone number or username. It also names where the chat identifiers come from (list_telegram_chats), so the agent can distinguish it from sibling Telegram tools without opening a schema.

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?

Clear prerequisites — the conversation must already exist and chat/chatTitle must come from list_telegram_chats or the other Telegram tools — plus an explicit exclusion (cannot initiate via phone number or username). It does not explicitly contrast with send_chat_message or reply_telegram_message, so the agent must infer which sending tool fits which surface.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources