Skip to main content
Glama

delete_message

Destructive

Remove one of your own Google Chat messages. It fails if the message has thread replies and cannot be undone; get approval first.

Instructions

Delete one of the user's own messages. Fails if the message has thread replies. Cannot be undone; get the user's approval 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>"
    },
    "name": "delete_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesspaces/XXXX/messages/YYYY

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds behavior they do not capture: the thread-reply precondition that causes failure, the irreversibility of the operation, and the approval requirement. These are exactly the operational constraints an agent needs before calling a destructive tool.

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 with no filler, ordered from the action to the failure condition to the safety warning. Every clause carries information an agent must act on.

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 one-parameter destructive tool with no output schema, the description covers scope, failure mode, and irreversibility. It does not say what happens to the message's thread or what a successful response looks like, a minor gap given the tool's simplicity.

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 the single parameter already carries a format example ('spaces/XXXX/messages/YYYY'), so the baseline is 3. The description adds real meaning on top: the message must belong to the calling user, which is not expressed anywhere in 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+resource ('Delete ... messages') and adds an ownership scope qualifier ('one of the user's own messages') that separates it from edit_message, get_message, and the space-level delete_space. An agent can identify the target operation without opening the 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 two concrete usage conditions: it fails when the message has thread replies, and it requires the user's approval before invoking. It lacks an explicit pointer to an alternative (e.g., edit_message or replying in the thread instead of deleting), so it stops short of full when/when-not routing.

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