Skip to main content
Glama
Google Messages MCP

Google Messages MCP

by ilakskill

Unarchive conversations (two-step)

gmsg_unarchive_conversations
Destructive

Restore archived Google Messages conversations via a two-step confirmation: verify selected archived names first, then confirm to unarchive them.

Instructions

Two-step unarchive, operating from the Archived view (drawer > Archived dialog, which lists names only, no ids). Only ids archived through gmsg_archive_conversations are known (remembered by name in ~/.google-messages-mcp/archived-map.json); unknown ids fail with NOT_FOUND. Call 1 (no confirm_token): verifies each name is present in the archived list and returns {count, targets} plus a 5-minute single-use confirm_token bound to the sorted id list; nothing changes. Call 2 with the same conversation_ids and token: unarchives each, returns {unarchived:[ids], failed:[{id,reason}]}.

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": {
      "conversation_ids": "<conversation_ids>"
    },
    "name": "gmsg_unarchive_conversations"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirm_tokenNo
conversation_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true, and the description adds substantial behavior: call 1 is a no-op verification returning {count, targets}, the token is 5-minute single-use and bound to the sorted id list, and call 2 returns per-id success/failure. It even discloses the persistence mechanism (~/.google-messages-mcp/archived-map.json) that explains why only previously archived ids resolve.

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?

Front-loaded with the two-step nature and the operating context, then split into labeled 'Call 1' and 'Call 2' segments that map directly onto the workflow. It is dense but nearly every clause carries actionable information; the parenthetical about the Archived dialog listing names only, no ids, could be trimmed.

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 documents both return shapes ({count, targets} and {unarchived, failed}) and the confirmation-token lifecycle, so an agent knows exactly what to expect from each call. Together with the failure mode and id provenance rule, nothing needed to invoke this correctly is missing.

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 0%, so the description carries the full burden and does it: conversation_ids must be ids archived via gmsg_archive_conversations (names alone are insufficient), and confirm_token is omitted on call 1, then reused on call 2 with the identical id list, expiring after 5 minutes and single-use. This meaningfully constrains both parameters beyond the bare JSON 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 ('Two-step unarchive') and immediately names the operating context (Archived view, drawer > Archived dialog). It is clearly the inverse of the sibling gmsg_archive_conversations, which it explicitly references, so an agent can distinguish the two without opening a 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 strong preconditions: it must be driven from the Archived view, only ids previously archived via gmsg_archive_conversations are known, and unknown ids fail with NOT_FOUND. What's missing is an explicit statement of when this tool is unnecessary or what to do instead (e.g., use gmsg_list_conversations if the id is unknown), but the operational guidance is clear.

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