Skip to main content
Glama
grammy-mcp
by louietyj

editEphemeralMessageCaption

Destructive

Edit the caption of a Telegram ephemeral message by specifying chat, receiver, message ID, and new caption; returns True on success.

Instructions

Use this method to edit the caption 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>",
      "caption": "<caption>"
    },
    "name": "editEphemeralMessageCaption"
  }
}

Input Schema

NameRequiredDescriptionDefault
captionYesNew caption of the message, 0-1024 characters after entities parsing
chat_idYesUnique identifier for the target chat or username of the target supergroup in the format `@username`
parse_modeNoMode for parsing entities in the message caption. See formatting options for more details.
reply_markupNoAn object for an inline keyboard
caption_entitiesNoA list of special entities that appear in the caption, which can be specified instead of parse_mode
receiver_user_idYesIdentifier of the user who received the message
ephemeral_message_idYesIdentifier of the ephemeral message to edit
show_caption_above_mediaNoPass True if the caption must be shown above the message media. Supported only for animation, photo and video messages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With annotations already flagging a mutating, open-world, destructive operation, the description still adds real context: that delivery of the edit event is not guaranteed, especially for offline users, and that True is returned on success. The one gap is that it doesn't say the existing caption is overwritten or what happens when the message is no longer live.

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 text is three short sentences, and the purpose is stated up front. The offline-delivery caveat and the return value each add value. The only small redundancy is the 'Use this method to...' framing, which slightly restates rather than adds information.

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 8-parameter tool with full schema coverage, the description tells the agent what the tool does, one important behavioral risk, and what success returns. It leaves out what happens on failure and whether the caller needs bot or admin rights in the chat. Those gaps are minor for a well-documented schema.

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 every parameter, including the parse_mode enum and show_caption_above_media, is already documented in the schema. The description adds no extra meaning about any parameter, such as how ephemeral_message_id differs from the regular message id. The baseline of 3 fits.

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 gives a specific verb and resource: 'edit the caption of an ephemeral message'. That scope cleanly separates it from caption tools that act on regular messages and from sibling tools that edit other ephemeral message parts (text, media, reply markup). It stops short of naming any sibling 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?

The instruction 'Use this method to edit the caption of an ephemeral message' implies the right situation through scope, but it never states when to prefer a different tool or what preconditions apply. There are no exclusions, such as what to do when the ephemeral message has expired or the user is unreachable.

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