Skip to main content
Glama

Edit message

messages_edit
Idempotent

Edit message

Edits the message on the platform. Needs message:edit, within the platform's edit window.

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": {
      "messageId": "<messageId>",
      "content": "<content>"
    },
    "name": "messages_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesUp to the platform's `limits.characters`, or `limits.captionCharacters` when the message carries media. Longer content fails with `contentRejected`.
messageIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / content / description
      Added value: +"Up to the platform's `limits.characters`, or `limits.captionCharacters` when the message carries media. Longer content fails with `contentRejected`."
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, open-world behavior. The description adds two things the annotations do not: an authorization scope requirement and an edit-window time limit that can cause failure, which is real operational context. It still omits whether the edit replaces the entire body or what errors beyond `contentRejected` look like.

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?

Two short sentences, front-loaded with the action and followed by the constraints that gate it. The opening sentence largely restates the name and title, so there is a small amount of redundancy.

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?

For a two-parameter mutation with no output schema, the safety profile and gating constraints are covered by annotations plus the description. What is missing is the meaning of `messageId` and any statement about replacement semantics or failure modes besides `contentRejected`.

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 coverage is only 50%: `content` is well documented in-schema with limit and error semantics, but `messageId` carries no description anywhere. The tool description contributes nothing about either parameter, so it does not compensate for the undocumented identifier that determines which message is mutated.

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 (Edits) and resource (the message on the platform), which is unambiguous. It does not distinguish itself from close siblings such as messages_unsend or statuses_update, so it stops short of a 5.

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?

Provides a prerequisite (`message:edit` scope) and a temporal constraint (the platform's edit window), which implies when the call will succeed. It never says when to edit versus unsend-and-repost, nor what to do when the window has closed, so guidance is implied rather than explicit.

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.

Resources