Skip to main content
Glama
grammy-mcp
by louietyj

forwardMessages

Forwards multiple messages of any kind to a target chat, skipping unavailable or protected items and preserving album grouping.

Instructions

Use this method to forward multiple messages of any kind. If some of the specified messages can't be found or forwarded, they are skipped. Service messages and messages with protected content can't be forwarded. Album grouping is kept for forwarded 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": "forwardMessages"
  }
}

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 forward. 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`)
protect_contentNoProtects the contents of the forwarded 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 forwarded; required if the messages are forwarded to a direct messages chat

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare that the tool is not read-only, may affect open-world state, and is not destructive. The description adds useful behavior details: skipped messages, restrictions on service messages and protected content, album grouping, and the returned MessageId array. It does not cover permission requirements, rate limits, or failure behavior beyond skipping.

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?

The description is compact, front-loads the core action, and then lists relevant exceptions and return behavior. Every sentence contributes, with no wasted or redundant wording.

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 a seven-parameter mutation tool with no output schema, the definition explains the return value and key edge cases such as skipping and protected content. It is nearly complete, though it could mention prerequisites or permission requirements for forwarding.

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 input schema already documents all seven parameters, including ordering constraints for message_ids and forum-thread handling. The description adds no parameter-specific meaning beyond the existing schema, so the baseline score of 3 is appropriate.

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?

The description states a specific verb and resource: forwarding multiple messages of any kind. It clearly implies a batch operation, helping distinguish it from the singular sibling forwardMessage, though it does not name alternatives explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It says when to use the tool—forwarding multiple messages—and notes that unfound or unforwardable messages are skipped, but it does not guide the agent toward alternatives such as forwardMessage or copyMessages, nor does it state when not to use this tool.

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