Skip to main content
Glama
grammy-mcp
by louietyj

editEphemeralMessageText

Destructive

Edit an ephemeral Telegram message's text or rich content by chat, recipient, and message ID; returns true on success, though recipients may not receive the edit event if offline.

Instructions

Use this method to edit an ephemeral text or rich 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>",
      "text_or_rich_message": "<text_or_rich_message>"
    },
    "name": "editEphemeralMessageText"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target supergroup in the format `@username`
entitiesNoA list of special entities that appear in message text, which can be specified instead of parse_mode
parse_modeNoMode for parsing entities in the message text. See formatting options for more details.
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
link_preview_optionsNoLink preview generation options for the message
text_or_rich_messageYesNew text or rich content of the message, a string maps to the `text` parameter and an object maps to the `rich_message` parameter

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare a non-read-only, destructive, open-world mutation, and the description usefully adds a delivery caveat (the recipient may never see the edit event, especially when offline) plus the success return value of True. It does not, however, explain that the new text replaces the old content, nor any permission requirements, which is the key gap for a destructiveHint=true operation.

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 with the purpose front-loaded and no filler. The delivery caveat and return value both earn their place; only the generic "Use this method to..." opener is slightly padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter mutation with nested objects and no output schema, the description covers purpose, a delivery caveat, and the return value, which is reasonable. It still leaves out replacement semantics, error behavior for an invalid ephemeral_message_id, and how it differs from the non-ephemeral editMessageText sibling.

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, including the text_or_rich_message union and the parse_mode/entities options, are already documented in the schema. The description adds no further semantics about parameter interaction or precedence, so the baseline of 3 applies.

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 an ephemeral text or rich message"), which separates it from caption/media/reply-markup ephemeral editors by naming the content it targets. It does not explicitly contrast itself with the non-ephemeral editMessageText, so it stops just short of full sibling differentiation.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative for editing captions, media, or reply markup on the same ephemeral message. The only usable cue is the implied scope in the first sentence.

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