Skip to main content
Glama

archive_emails

Archive specific Gmail messages by removing their INBOX label so they stay in All Mail and remain searchable; use message-level IDs, and restore by reapplying the INBOX label.

Instructions

Archive specific MESSAGES by removing their INBOX label — they stay in All Mail and remain searchable. Message-level only; use unlabel_thread with label_ids=["INBOX"] to archive a whole conversation. Reversible with label_messages(["INBOX"]). Every id is read back afterwards, so the response reports the verified count and names any id that does not exist.

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": {
      "account": "<account>",
      "message_ids": "<message_ids>"
    },
    "name": "archive_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount id ("personal", "tamu").
message_idsYesGmail message ids to archive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses the actual data effect (message stays in All Mail and remains searchable), reversibility, and post-call verification behavior including that the response reports a verified count and names nonexistent ids. This is exactly the behavioral context annotations cannot carry.

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 tight sentences, front-loaded with the core action and mechanism, then the scope boundary, then reversal and verification. No filler or restated name.

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?

With no output schema, the description still explains what the caller gets back (verified count, flagged missing ids), and it covers effect, reversibility, and scope for a two-parameter mutation. Nothing an agent needs in order to call it 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 100%, so the schema documents both parameters; the description adds meaning by framing message_ids as the unit of operation ('message-level only') and by clarifying the read-back treatment of each id. The label_ids syntax cited is illustrative of the sibling call, which reinforces understanding of the archive mechanism.

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 the exact verb and resource ('Archive specific MESSAGES') and explains the mechanism ('by removing their INBOX label'), which disambiguates it from thread-level siblings. The agent can tell immediately this is message-scoped, non-destructive archiving.

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?

Explicitly scopes the tool to message-level use and names the alternative for conversations ('use unlabel_thread with label_ids=["INBOX"]'). It also names the exact inverse call for reversal, so both the when-to-use and how-to-undo conditions are stated.

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