Skip to main content
Glama
grammy-mcp
by louietyj

editMessageReplyMarkupInline

Destructive

Updates the inline keyboard (reply markup) of an inline Telegram message by inline_message_id, optionally on behalf of a business connection. Use it to change buttons without resending the message.

Instructions

Use this method to edit only the reply markup of inline messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.

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": {
      "inline_message_id": "<inline_message_id>"
    },
    "name": "editMessageReplyMarkupInline"
  }
}

Input Schema

NameRequiredDescriptionDefault
reply_markupNoAn object for an inline keyboard.
inline_message_idYesIdentifier of the inline message
business_connection_idNoUnique identifier of the business connection on behalf of which the message to be edited was sent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructive and open-world behavior, so the bar is lower, and the description still adds value: it discloses the dual return shape (Message object vs True) and a hard 48-hour constraint for business messages not sent by the bot. It does not state whether omitting the markup removes the keyboard or what permissions are required, which are the remaining behavioral gaps.

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 sentences, front-loaded with the operation and followed by return behavior and an edge-case constraint; nothing is redundant. The 48-hour sentence is niche but genuinely load-bearing for correctness.

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?

With no output schema, the description correctly covers return values, and annotations plus the 48-hour restriction cover the mutation-risk profile. For a three-parameter edit tool with full schema coverage, this is nearly complete; only the removal-of-keyboard semantics and permission preconditions are missing.

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 baseline is 3. The description adds no meaning beyond the schema for the three parameters — notably it never explains that supplying no reply_markup strips the existing keyboard, which is the key semantic of the edit.

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 verb and narrowly scoped resource: 'edit only the reply markup of inline messages.' The word 'inline' plus 'only the reply markup' distinguishes it from siblings like editMessageReplyMarkup and editMessageTextInline without needing to open any 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?

Usage context is implied by the 'inline messages' scoping and the 48-hour business-message note, so an agent can infer when it applies. However, there is no explicit when-to-use or when-not-to-use guidance, and no pointer to the non-inline or text-editing siblings as alternatives.

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