Skip to main content
Glama

Edit sent fmsg message

edit_message
Idempotent

Edit the body of a message you sent to fix typos, rephrase text, or revert to the original. Provide the complete new body; only your own sent messages and bodies can be changed.

Instructions

Change the body of a message you sent, for example to fix a typo or rephrase it, or revert it to what you first sent. Give the complete new body, not a diff. Participants whose client supports edits see the new text marked as edited; the original stays stored and visible to them, so this does not retract anything. Only your own sent messages can be edited, and only the body: not the topic, recipients or attachments. Fails on drafts (change those before sending) and terminal messages.

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": {
      "id": "<id>",
      "text": "<text>"
    },
    "name": "edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesfmsg message id
textYesthe complete new body; null reverts to the original

Output Schema

NameRequiredDescriptionDefault
idYes
timeYes
changedYesfalse when the body already read that way and nothing was sent
edit_idYesthe edit now in force; null when the message has none
revertedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly=false, destructive=false and idempotent=true, and the description adds real behavior beyond them: the edit is surfaced as 'edited' only to clients that support it, the original body remains stored and visible, and therefore the operation does not retract content. It also discloses failure modes (drafts, terminal messages) and the ownership restriction, which annotations cannot express.

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?

Four sentences, front-loaded with the action and followed by usage examples, semantics of the replacement, side effects, then constraints. Every sentence carries distinct information; nothing restates the name or the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A mutation tool with an output schema present, so return values need no explanation. Ownership, editable fields, failure modes, and the non-retraction guarantee are all covered, leaving nothing an agent needs in order to call it 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% and both parameters are already documented, including that null reverts to the original. The description still adds non-obvious meaning with 'Give the complete new body, not a diff', which changes how an agent constructs the text argument, and it frames the null case as a revert rather than just a reset.

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 and resource ('Change the body of a message you sent') and immediately bounds the scope: body only, own messages only, not topic/recipients/attachments. That scope statement alone lets an agent distinguish edit_message from send_message, reply, or create_draft without opening another 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?

Gives concrete positive cases ('fix a typo or rephrase it, or revert it to what you first sent') and hard exclusions (drafts must be changed before sending; terminal messages fail). The only gap is that the alternative path for drafts is described generically rather than by sibling tool name, so the agent must infer which tool to use instead.

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