Skip to main content
Glama

edit_message

Destructive

Replace the text of one of your own Google Chat messages after confirming the new wording; recipients see the message as edited.

Instructions

Replace the text of one of the user's own messages. Everyone sees it as edited. Get the user's approval for the new text first.

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

Input Schema

NameRequiredDescriptionDefault
textYes
messageYesspaces/XXXX/messages/YYYY

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true), the description discloses the two traits an agent most needs: the edit is visible to everyone, and human approval must be obtained before calling. These are consistent with the destructive mutation annotation rather than contradicting it. It could still say whether the original text is recoverable.

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?

Three short sentences, each carrying distinct information: what is replaced, who can see the result, and the approval precondition. Nothing is redundant and the core action is front-loaded.

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 two-parameter destructive mutation with annotations and no output schema, the definition covers the key risk factors: edit visibility, ownership restriction, and the approval requirement. Only edge behavior such as failure modes or whether edit history is retained is left unstated.

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?

Schema coverage is 50%: the 'message' parameter has a format hint ('spaces/XXXX/messages/YYYY') while 'text' is bare. The description's phrase 'the new text' adds modest meaning to 'text' as the replacement payload, but does not explain the message identifier format or any constraints beyond the schema.

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 and resource ('Replace the text of one of the user's own messages') and adds the important scope constraint that only the user's own messages can be edited, which separates it from send_message and delete_message. It stops short of naming a sibling explicitly, so it is clear but not maximally differentiated.

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?

The definition supplies a real precondition ('Get the user's approval for the new text first') that shapes how the tool should be invoked, which is more than nothing. However, it gives no guidance on when to edit versus send a follow-up message or delete and resend, and no note on failure conditions or limits.

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