Skip to main content
Glama
grammy-mcp
by louietyj

copyMessage

Copy a Telegram message from one chat to another without a link to the original, optionally changing the caption, parse mode, and reply markup.

Instructions

Use this method to copy messages of any kind. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.

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>",
      "from_chat_id": "<from_chat_id>",
      "message_id": "<message_id>"
    },
    "name": "copyMessage"
  }
}

Input Schema

NameRequiredDescriptionDefault
captionNoNew caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept.
chat_idYesUnique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username`
message_idYesMessage identifier in the chat specified in from_chat_id
parse_modeNoMode for parsing entities in the new caption. See formatting options for more details.
from_chat_idYesUnique identifier for the chat where the original message was sent (or username of the target bot, supergroup or channel in the format `@username`)
reply_markupNoAdditional interface options. An object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
protect_contentNoProtects the contents of the sent message from forwarding and saving
caption_entitiesNoA list of special entities that appear in the new 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; only available when copying to private chats
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.
video_start_timestampNoNew start timestamp for the copied video in the message
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
show_caption_above_mediaNoPass True if the caption must be shown above the message media. Ignored if a new caption isn't specified.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare non-read-only, non-destructive, open-world; the description adds substantive behavior beyond that: which message classes are rejected, the quiz-poll precondition, and that it returns a MessageId (useful since there is no output schema). It does not cover permissions, rate limits, or media/caption override behavior, keeping it below a 5.

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?

Front-loads the capability, then lists constraints, then the forwardMessage distinction, then the return value. Every sentence carries actionable information and nothing is redundant padding.

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 an 18-parameter mutation tool with no output schema, the description supplies the return value and the important precondition/exclusion set, which is the information an agent most needs. Remaining gaps (effect ids, paid broadcast, forum topics) are covered by the fully documented schema, though guidance on when those options matter would strengthen it.

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?

With 18 parameters at 100% schema description coverage, the schema already carries all parameter meaning. The description references correct_option_id (a field of the poll object rather than an input parameter) and adds no syntax or format detail for chat_id, caption overrides, or reply_markup.

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 ('copy messages of any kind') and immediately differentiates from the sibling forwardMessage by noting the copy has no link to the original. The agent can distinguish copyMessage from forwardMessage and copyMessages 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?

Provides explicit exclusions: service messages, paid media, giveaway/giveaway-winner, and invoice messages cannot be copied, and quiz polls only when correct_option_id is known. The forwardMessage comparison implicitly gives the selection criterion (copy vs forward), though it never states 'use forwardMessage when you want the link preserved' as a direct directive.

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