Skip to main content
Glama
grammy-mcp
by louietyj

editEphemeralMessageReplyMarkup

Destructive

Updates the inline keyboard reply markup on an ephemeral Telegram message so bots can change reply options without resending the message content.

Instructions

Use this method to edit only the reply markup 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>"
    },
    "name": "editEphemeralMessageReplyMarkup"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and readOnlyHint=false, so the mutation profile is established. The description adds genuine value by disclosing that the edit event may never reach an offline recipient and that True is returned on success, but it says nothing about permission requirements, failure modes, or what happens on error.

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?

Two short sentences, both of which contribute: the first defines the scope, the second warns about delivery and states the return value. It is front-loaded and free of filler.

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?

Given four parameters with full schema coverage, no output schema, and annotations covering the safety profile, the definition supplies the remaining pieces an agent needs: the narrow scope of the edit and the return value. Error semantics and required permissions are the only notable omissions.

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 four parameters are documented in the schema itself, including the nested InlineKeyboardMarkup and the required chat/ephemeral message identifiers. The description adds no meaning beyond that, which is the expected baseline when the schema carries the semantics.

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: 'edit only the reply markup of an ephemeral message.' The word 'only' plus the 'ephemeral' qualifier separates it from the many sibling edit tools (editEphemeralMessageText, editMessageReplyMarkup), though it never names an alternative 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?

'edit only the reply markup' implies the operation's scope, which helps the agent choose it over caption/text/media edits, but there is no explicit when-to-use or when-not-to-use guidance and no prerequisites (for example, the ephemeral message must still exist) are stated.

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