Skip to main content
Glama
grammy-mcp
by louietyj

sendMessage

Sends text messages to Telegram chats or channels, with optional formatting and reply options, and returns the sent message on success.

Instructions

Use this method to send text messages. On success, the sent Message is returned.

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": {
      "chat_id": "<chat_id>",
      "text": "<text>"
    },
    "name": "sendMessage"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText of the message to be sent, 1-4096 characters after entities parsing
chat_idYesUnique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username`
entitiesNoA list of special entities that appear in message text, which can be specified instead of parse_mode
parse_modeNoMode for parsing entities in the message text. See formatting options for more details.
reply_markupNoAdditional interface options. An 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
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 a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
reply_to_message_idNoUse `reply_parameters` instead.
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. The relevant Stars will be withdrawn from the bot's balance.
disable_notificationNoSends the message silently. Users will receive a notification with no sound.
link_preview_optionsNoLink preview generation options for the message
business_connection_idNoUnique identifier of the business connection on behalf of which the message will be sent
direct_messages_topic_idNoIdentifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
suggested_post_parametersNoAn object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
ephemeral_message_parametersNoAn object containing the parameters of the ephemeral message to send

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already flag this as a non-read-only, open-world, non-destructive write, so safety is covered. The description adds one genuinely useful fact beyond them — that a Message object is returned on success — but says nothing about rate limits, the paid-broadcast billing path, or that ephemeral/suggested-post parameters exist, which matter for a 17-parameter mutating call.

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?

Two short sentences, front-loaded with purpose, with zero filler or redundancy. It is efficient but arguably under-specified rather than exemplary, so it falls short of a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 17 parameters, deep nested objects, no output schema, and multiple sibling send-variants, two sentences leave major gaps: no return-value structure beyond 'the sent Message', no notes on required identifiers like direct_messages_topic_id, and no mention of the paid-broadcast tradeoff.

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 all 17 parameters, including nested reply_markup variants and ephemeral_message_parameters, are documented in the schema itself. The description adds no parameter meaning at all, which is acceptable at this coverage level but earns only the baseline.

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?

States a specific verb and resource: 'send text messages.' The word 'text' implicitly separates it from the media-oriented siblings (sendPhoto, sendDocument, sendVoice), but the description never names or contrasts any of them explicitly, so an agent must infer the boundary itself.

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 when-to-use versus when-not guidance, no mention of alternatives such as sendRichMessage or sendMessageDraft, and no prerequisites (bot membership, chat_id format, direct-message topics). The only signal is the restated purpose, which is not routing guidance.

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

Deploy Server

Other Tools