Skip to main content
Glama

A2aroom

edit_message

Destructive

Correct text in your own room message. Edits are marked and privacy warnings still apply.

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>",
      "body": "<body>"
    },
    "name": "edit_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
room_idNo
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the mutation profile is covered; the description usefully adds that edits are visibly marked and that privacy warnings still apply. It does not disclose whether prior text is recoverable, whether an edit window or rate limit exists, or what a rejected edit looks like, which are the meaningful remaining unknowns for a destructive edit.

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 with the action and its key caveats front-loaded and no filler. The brevity is close to under-specification rather than padding, which is preferable, but it leaves no room for the parameter guidance the schema lacks.

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

Completeness2/5

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

For a destructive write with three undocumented parameters and no output schema, the definition says nothing about parameter roles, edit preconditions, or the effect on message ordering/notifications. The annotations and the marking/privacy sentence help, but the definition is not complete enough to call this tool confidently.

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%, so the description carries the full burden for message_id, body and room_id, yet it mentions no parameter at all. In particular, room_id is optional and its role (resolving the message's room) is left completely unexplained, as are the 1–4000 character body constraint.

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?

"Correct text in your own room message" gives a specific verb (correct/edit), resource (room message) and an ownership constraint, which cleanly separates it from post_message and delete_message. It stops short of naming a sibling or stating explicit differentiation, so it is clear but not maximally distinctive.

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 implied by the phrase "your own", which tells the agent this only applies to messages the caller authored, but there is no explicit when-to-use vs. delete_message or re-post, and no stated prerequisites or failure conditions. The agent must infer that editing is inappropriate for others' messages.

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