Skip to main content
Glama
grammy-mcp
by louietyj

editEphemeralMessageMedia

Destructive

Edits the media content of an ephemeral Telegram message for a specified receiver, returning true on success; delivery of the edit event is not guaranteed.

Instructions

Use this method to edit the media of an ephemeral message. Note that it is not guaranteed that the user will receive the message edit event, especially if they are offline. On success, True 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>",
      "receiver_user_id": "<receiver_user_id>",
      "ephemeral_message_id": "<ephemeral_message_id>",
      "media": "<media>"
    },
    "name": "editEphemeralMessageMedia"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaYesAn object for the new media content of the message
chat_idYesUnique identifier for the target chat or username of the target supergroup in the format `@username`
reply_markupNoAn object for an inline keyboard
receiver_user_idYesIdentifier of the user who received the message
ephemeral_message_idYesIdentifier of the ephemeral message to edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already disclose that this is a non-read-only, destructive, open-world mutation. The description adds useful behavioral context by warning that the recipient may not receive the edit event, especially when offline, and by stating the success return value.

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?

The description is short, front-loaded, and every sentence contributes value: purpose, delivery caveat, and success return. There is no redundant or filler 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 mutation tool with no output schema, it covers the core purpose, a key delivery caveat, and the success response. It is somewhat incomplete about permissions or media replacement behavior, but annotations and schema cover the main safety and parameter details.

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 the parameter schema carries the main burden of explaining chat_id, receiver_user_id, ephemeral_message_id, media, and reply_markup. The description adds no parameter-specific semantics beyond the schema.

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?

The description states a specific operation and resource: editing the media of an ephemeral message. The ephemeral qualifier distinguishes it from sibling tools such as editMessageMedia and editEphemeralMessageText.

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?

It says to use this method to edit ephemeral message media, but does not explain when to choose it over editMessageMedia, caption editing, text editing, or reply-markup editing. There are no explicit exclusions or prerequisite conditions.

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