Skip to main content
Glama
mcp-telegram-agent

mcp-telegram-agent

edit_message_text

Update the text or keyboard of an already sent Telegram message to correct content or change interaction options, including inline buttons and reply keyboards.

Instructions

Edit the text or keyboard of a previously sent message (does not work for media albums).

編輯先前已發送的文字訊息內容或鍵盤佈局。

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": {
      "message_id": "<message_id>",
      "text": "<text>"
    },
    "name": "edit_message_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
chat_idNo
message_idYes
parse_modeNoMarkdown
inline_buttonsNo
reply_keyboardNo
remove_keyboardNo
one_time_keyboardNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.7

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It discloses one useful constraint — media albums cannot be edited — but omits the edit-window limit, the authorship requirement, and whether the edit replaces or merges with the existing keyboard.

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 core constraint is front-loaded in a single compact sentence. The full Chinese restatement roughly doubles the length without adding new information, a minor cost.

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?

An output schema exists, so return values need not be explained. Still, for an 8-parameter mutation tool with zero annotation coverage and zero schema descriptions, the description leaves too much implicit — especially chat_id/message_id pairing and keyboard behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, so the schema gives no help on message_id, chat_id, parse_mode, inline_buttons, reply_keyboard, remove_keyboard, or one_time_keyboard. The description's phrase 'text or keyboard' vaguely gestures at two of the parameters but adds no meaning for any of them.

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?

States a specific verb and resource: 'Edit the text or keyboard of a previously sent message.' This clearly distinguishes it from the send_* siblings, which create new messages rather than modify existing ones.

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 parenthetical '(does not work for media albums)' gives one exclusion, and 'previously sent' implies the edit-after-send context. However, it never names what to use instead for albums (e.g., send_media_album) nor states prerequisites such as the bot having authored the original message.

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