Skip to main content
Glama

Reply to a Telegram message

reply_telegram_message
Destructive

Replies as the user to a message of a Telegram conversation (chat, chatTitle and message from list_recent_telegram, search_telegram or get_telegram_chat). The reply is attached to that message, or fails with TELEGRAM_MESSAGE_NOT_FOUND when the conversation has no such message; it is not sent as an unattached message instead. Text only, sent immediately, and cannot be unsent from Fezola. Returns the sent message id, its conversation, its date and the message it replies to. 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). Same limits and error codes as send_telegram_message.

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>",
      "messageId": "<messageId>",
      "text": "<text>"
    },
    "name": "reply_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.
messageIdYesMessage to reply to: its `message` id in that conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the text is sent immediately, cannot be unsent from Fezola, that the reply fails with TELEGRAM_MESSAGE_NOT_FOUND rather than degrading to a standalone message, that channel posts go to all subscribers, and that text to a bot may be executed as a command. That is exactly the kind of consequence-level detail an agent needs before an irreversible send.

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-loads the core purpose and the attachment constraint, then layers failure mode, side effects and conversation types in a sensible order. There is some redundancy in the return-value coverage — 'Returns the sent message id, its conversation, its date...' is restated by 'The result gives the conversation's name and type' — which could be tightened into one sentence.

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 no output schema, the description carries the return-shape burden and does so (message id, conversation, date, replied-to message, conversation name and type). Combined with the failure mode, irreversibility warning, channel/bot semantics and the pointer to send_telegram_message for limits, an agent has everything needed to invoke it correctly.

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 coverage is 100%, so the schema already documents chat, chatTitle, messageId, text and accountId, including the chatTitle case/accent-insensitive check. The description adds only modest extra meaning, mainly the range of conversation types a `chat` may denote and the fact that messageId determines the attachment target. Adequate, but the schema is doing most of the work.

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 ('Replies as the user to a message of a Telegram conversation') and immediately pins down the distinguishing semantics: the reply is attached to a specific message rather than sent standalone. It also names the source tools (list_recent_telegram, search_telegram, get_telegram_chat) that supply the required ids, so an agent can tell this apart from send_telegram_message without opening either 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?

Gives clear when-to-use context by tying the inputs to the listing/search/get tools, and implicitly rules out the unattached case ('it is not sent as an unattached message instead'), which points the agent at send_telegram_message for that path. It also defers to send_telegram_message for 'same limits and error codes.' What's missing is an explicit statement of when to prefer send_telegram_message instead, but the contrast is close to explicit.

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