Skip to main content
Glama
grammy-mcp
by louietyj

sendMediaGroup

Sends 2–10 photos, videos, documents, or audio files as a single Telegram album, returning the sent messages so agents can confirm delivery.

Instructions

Use this method to send a group of photos, live photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an Array of Message objects that were sent 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>",
      "media": "<media>"
    },
    "name": "sendMediaGroup"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaYesAn Array describing messages to be sent, must include 2-10 items
chat_idYesUnique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username`
protect_contentNoProtects the contents of the sent messages 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 messages silently. Users will receive a notification with no sound.
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 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

A3.7/5.0
Behavior3/5

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

Annotations already declare a non-read-only, open-world, non-destructive send operation, so the safety profile is covered. The description adds the success return shape ('an Array of Message objects') — valuable since no output schema exists — and the same-type grouping constraint. It omits other behaviorally relevant traits such as the 2-10 item limit, notification behavior, or paid broadcast semantics, which remain only in the schema.

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?

Three short sentences, front-loaded with the core action, then the constraint, then the return value — no redundancy. Minor filler in the opener ('Use this method to') keeps it from being maximally tight.

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 11-parameter, nested-object tool with no output schema, the description covers purpose, one key constraint, and the return type. The remaining gaps (2-10 item range, forum/thread targeting, business connection semantics) are documented in the schema, so an agent can still call 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 description coverage is 100%, so all 11 parameters including the nested media union and reply_parameters are already documented in the schema; baseline is 3. The description adds no parameter-level meaning beyond the media-type mixing rule, which itself is not tied to a named parameter.

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 ('send a group of photos, live photos, videos, documents or audios as an album'), which implicitly but clearly distinguishes it from the single-media siblings like sendPhoto, sendVideo, and sendDocument. An agent can tell this is the batch/album variant without opening the schema.

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?

Provides one concrete usage constraint ('Documents and audio files can be only grouped in an album with messages of the same type'), which tells the agent how to compose a valid album. However, it never states when to prefer this over repeated single-media sends, nor does it name any alternative tool or exclusion.

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