Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

editMessageReplyMarkup

Update the inline keyboard on an existing message without altering its content. Specify the message and pass a new reply markup to apply changes instantly.

Instructions

Edit only the reply markup of messages. Returns the edited Message on success, or True if the message is an inline message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idNoRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername).
message_idNoRequired if inline_message_id is not specified. Identifier of the message to edit.
reply_markupNoA JSON-serialized object for an inline keyboard.
inline_message_idNoRequired if chat_id and message_id are not specified. Identifier 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. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It does disclose the operation ('edit only reply markup') and the return behavior (edited Message or True for inline messages), but it does not mention permission requirements, the effect of passing an empty reply_markup (removing the keyboard), or reversibility.

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?

One compact sentence front-loads the action and scope, then gives the return behavior. Every clause contributes essential information with no redundancy.

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?

The description covers the tool's purpose and return values, which is needed since there is no output schema. Conditional parameter requirements and inline_message_id semantics are already described in the schema, so the main gap is the lack of explicit alternative routing, which is minor.

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?

The schema already provides full descriptions for all 5 parameters (100% coverage), so the baseline is 3. The description adds no parameter-level detail beyond 'reply markup' and return behavior, which do not enhance the schema's parameter information.

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 uses a specific verb ('Edit') and precise resource ('reply markup of messages'), and the word 'only' explicitly narrows scope from sibling edit tools like editMessageText and editMessageCaption. This makes the tool's role unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The limitation 'only the reply markup' implicitly tells the agent to choose this tool when just the inline keyboard needs changing, not text/caption/media. However, it does not explicitly name alternatives or state when not to use it, so the guidance is clear but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TONresistor/telegram-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server