Skip to main content
Glama
Google Messages MCP

Google Messages MCP

by ilakskill

Archive conversations (two-step)

gmsg_archive_conversations
Destructive

Archive Google Messages conversations safely with a two-step confirmation flow, targeting specific conversation IDs or every chat in the inbox; archived chats remain recoverable.

Instructions

Two-step archive. Call 1 (no confirm_token): resolves targets (conversation_ids, or all_in_inbox=true which scrolls the whole inbox) and returns {count, targets:[{conversation_id,name}]} plus a confirm_token valid 5 minutes, single use, bound to the sorted id list; NOTHING is archived. Call 2 with the same selector (same conversation_ids, or all_in_inbox=true) and the token: archives each conversation one by one via its item menu and returns {archived:[ids], failed:[{id,reason}]}; a per-item failure never aborts the batch. Archived conversations are recoverable with gmsg_unarchive_conversations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gmsg_archive_conversations"
  }
}

Input Schema

NameRequiredDescriptionDefault
all_in_inboxNoEvery conversation currently in the inbox.
confirm_tokenNo
conversation_idsNoSpecific conversations. Exactly one of conversation_ids / all_in_inbox.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only supply destructiveHint=true; the description adds far more, including the confirm_token's 5-minute lifetime, single-use nature and binding to the sorted id list, the fact that failures are isolated per item rather than aborting the batch, and the exact return payloads of both calls. It also discloses that archives are reversible.

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?

The two-step pattern is front-loaded in the opening phrase and every clause carries operative detail, but the single dense paragraph with long run-on sentences is harder to scan than it needs to be. Slightly tighter structure would make the two phases easier to parse.

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?

Despite having no output schema, the description specifies both return shapes, the per-item failure format, and the token's lifecycle, which is everything needed to drive a two-phase destructive operation correctly. The reversibility note closes the remaining risk gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the undocumented parameter is confirm_token, which the description fully explains (valid 5 minutes, single use, bound to the sorted id list, obtained from call 1). It also clarifies that all_in_inbox scrolls the entire inbox and that the selector must be repeated identically in call 2.

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 names a specific verb and resource ('archive ... conversations') and immediately distinguishes the two phases of the operation, so an agent knows exactly what it does. It also separates itself from the sibling gmsg_unarchive_conversations by naming it as the reversal path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states explicitly what each call does: call 1 without a token performs only resolution and archives NOTHING, call 2 with the same selector plus the token performs the archive. The recovery alternative (gmsg_unarchive_conversations) is named, and the requirement that both calls use the same selector is spelled out.

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