Skip to main content
Glama

edit_message

Idempotent

Modify the text or entities of an existing outgoing Telegram message, with an AI signature added by default; append [nosig] to omit it.

Instructions

Edit the text or entities of an existing outgoing message. Appends an AI attribution signature by default; place [nosig] at the very end of the text to omit it.

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": "<chat>",
      "message_id": "<message_id>",
      "text": "<text>"
    },
    "name": "edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesTarget chat reference (canonical ID, `@username`, or `"me"`).
textYesReplacement message text (optionally ending with `[nosig]` to suppress AI signature).
message_idYesID of the outgoing message to edit.
parse_modeNoInput formatting mode (`markdown`, `plain`, or `html`; default `markdown`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), so the bar is lower, and the description still contributes a genuinely non-obvious side effect: an AI attribution signature is appended unless '[nosig]' is placed at the very end. That detail is essential for predicting the resulting message text. It does not cover permission requirements or failure modes for editing an ineligible message.

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?

Two sentences, front-loaded with the core action, and the second sentence carries only the signature side effect and its escape hatch. Every clause earns its place with no redundant restatement of the name.

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?

For a 4-parameter mutation tool with no output schema and annotations covering the safety profile, the description supplies the key surprising behavior (appended signature) and the scope constraint (outgoing only). It stops short of stating what the tool returns or what happens when the message is not editable, which would be useful for an open-world mutating call.

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?

With 100% schema description coverage, the baseline is 3: chat, message_id, text, and parse_mode are all documented in the schema, including the '[nosig]' suffix behavior for text. The description's mention of 'entities' does not map to any parameter in the schema, which adds a small amount of ambiguity but no meaningful syntax guidance beyond the schema.

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 ('text or entities of an existing outgoing message'), with the 'outgoing' qualifier doing real work to separate it from send_message or transform_message. An agent can tell this mutates an already-sent message rather than composing a new one.

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 is only implied: 'existing outgoing message' signals this is for messages already sent, so an agent can infer that new content goes to send_message instead. There is no explicit when-not guidance — nothing about incoming messages, time limits, or what to do if the edit is rejected.

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