Skip to main content
Glama

dm_message_edit

Destructive

Edit a previously-sent outbound message on the platform. Telegram only — Facebook and Instagram do not expose outbound edits, so Meta quick_replies and buttons cannot be changed after sending. Provide body (new text/caption) and/or reply_markup (pass {} to clear the keyboard); at least one is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoNew message text (or new caption for media messages).
message_idYesMessage hashid OR external_id
reply_markupNoNew inline keyboard / reply_markup. Pass an empty object {} to remove the existing keyboard.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety profile is covered. The description adds real context beyond that: the Telegram-only limitation, and that passing {} to reply_markup clears an existing keyboard. It does not mention auth requirements, rate limits, or edit-window constraints, so it is strong but not exhaustive.

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 action and its platform scope, followed by the constraint. Every sentence carries information, though the Meta quick_replies/buttons clause is somewhat redundant with the preceding 'Facebook and Instagram do not expose outbound edits'.

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?

No output schema exists, and this is a destructive mutation on an open-world platform, yet the description covers platform scope, parameter constraints, and keyboard-clearing behavior adequately. It omits failure modes and edit-window limits, which would be useful for a destructive edit but are not strictly required to invoke correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description contributes a cross-parameter constraint the schema cannot express: 'at least one of body/reply_markup is required' even though only message_id is schema-required. It also reinforces the {} semantics for reply_markup.

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?

States a specific verb (edit) and resource (a previously-sent outbound message) with the scope narrowed to Telegram. An agent can distinguish it from dm_message_send (new message), dm_message_react, and comments_edit without opening 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 Guidelines4/5

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

Explicitly states when the tool is unavailable (Facebook/Instagram do not expose outbound edits, so Meta quick_replies/buttons cannot be changed) and gives the precondition that at least one of body/reply_markup is required. It does not, however, name a sibling alternative for the unsupported platforms, so routing guidance is one step short of complete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.