Skip to main content
Glama

Delete a message

delete_message
Destructive

Permanently delete a Google Chat message. Use force to also remove threaded replies when the message started a thread.

Instructions

Permanently deletes a message. With user authentication the user can delete their OWN messages; space managers can also delete others' messages in spaces they manage — otherwise PERMISSION_DENIED (a Chat permission rule, not a missing scope). If the message started a thread that has replies, the delete fails with FAILED_PRECONDITION; force=true deletes the replies too but works only with app (service-account) authentication. Deletion cannot be undone — read the message with get_message first if its content matters. Returns an empty object on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoAlso delete threaded replies (app authentication only; ignored for user auth).
messageYesThe full message name from list_messages/send_message, e.g. "spaces/AAA/messages/BBB.CCC".
Behavior5/5

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

Beyond the annotations, the description discloses permanence, irreversibility, thread deletion behavior, the fact that force only works with app authentication, and the empty-object success response. It also explains that PERMISSION_DENIED is a permission rule rather than a missing scope, which is valuable diagnostic context.

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?

The description is information-dense but well organized: core action first, then permissions, then failure modes, then warnings, then return value. Every sentence earns its place, and critical caveats like irreversibility and force-auth restriction are explicitly surfaced.

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?

For a destructive tool with no output schema, the description is remarkably complete. It covers authorization contexts, error conditions, the force edge case, irreversibility, a pre-deletion safety step, and the success return value. An agent has everything needed to decide whether and how to invoke it correctly.

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 description coverage is 100%, so the baseline is 3. The main description largely restates the parameter semantics already present in the schema, such as the message name source and the force authentication constraint, without adding meaningfully new parameter-level detail.

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?

The description opens with a specific verb and resource—'Permanently deletes a message'—and immediately clarifies scope by distinguishing own messages from space-manager deletions. This makes the tool clearly distinguishable from siblings like get_message, send_message, and update_message.

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?

The description gives explicit operating conditions: user vs. manager permissions, PERMISSION_DENIED vs. FAILED_PRECONDITION, and when force=true is valid. It also instructs the agent to read with get_message before deleting if content matters. It does not explicitly mention update_message as the non-destructive alternative, which keeps it just short of a perfect score.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/A1-x-Tech/mcp-google-chat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server