Skip to main content
Glama
grammy-mcp
by louietyj

copyMessages

Copy messages of any kind between chats without linking to the original, preserving album grouping and skipping unavailable messages. Use it to duplicate content while keeping the source hidden.

Instructions

Use this method to copy messages of any kind. If some of the specified messages can't be found or copied, they are skipped. 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 forwardMessages, but the copied messages don't have a link to the original message. Album grouping is kept for copied messages. On success, an Array of MessageId of the sent messages 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>",
      "from_chat_id": "<from_chat_id>",
      "message_ids": "<message_ids>"
    },
    "name": "copyMessages"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username`
message_idsYesA list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order.
from_chat_idYesUnique identifier for the chat where the original messages were sent (or username of the target bot, supergroup or channel in the format `@username`)
remove_captionNoPass True to copy the messages without their captions
protect_contentNoProtects the contents of the sent messages from forwarding and saving
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
disable_notificationNoSends the messages silently. Users will receive a notification with no sound.
direct_messages_topic_idNoIdentifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing non-obvious behavior: unresolvable messages are silently skipped rather than erroring, a specific list of message kinds cannot be copied at all, quiz polls depend on the bot already knowing correct_option_id, and album grouping is preserved. It also states the return value (Array of MessageId), which the annotations do not cover.

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 purpose, then ordered from failure behavior to exceptions to the sibling comparison to the return value — a logical progression. It is dense with sub-conditions but almost every sentence carries load; the enumerated list of un-copyable message kinds is the only passage approaching bulk.

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?

With no output schema, the description correctly supplies the return shape and covers the main edge cases an agent must anticipate before calling. It omits permission/precondition context (e.g., that the bot needs send rights on the target chat), which matters for a cross-chat write operation, keeping it at a 4.

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 eight parameters are already documented in structured form and the baseline is 3. The description adds only one semantic hint beyond the schema (the correct_option_id precondition for poll copying); it gives no per-parameter guidance on the target chat, thread, or content-protection flags.

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?

Opens with a specific verb+resource ('copy messages of any kind') and immediately positions itself against the closest sibling, forwardMessages, by naming the exact behavioral difference (copied messages carry no link to the original). An agent can pick between copyMessages and forwardMessages without reading 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?

The forwardMessages comparison effectively gives a when-to-use-this-instead rule for the main alternative, and the skip-on-failure semantics set expectations for partial operations. It stops short of explicit exclusion language (no 'do not use when...', and the singular sibling copyMessage is not addressed), so a 4 rather than a 5.

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