Skip to main content
Glama

Archive an email

archive_message
Destructive

Moves an email out of its folder into the mailbox's archive (the Archive folder, or All Mail on Gmail). The message is not deleted. Returns the source and destination folders and the new uid.

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": {
      "accountId": "<accountId>",
      "uid": "<uid>"
    },
    "name": "archive_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesIMAP UID of the message, as returned by search and listing tools.
folderNoIMAP folder containing the message. Defaults to INBOX.INBOX
accountIdYesAccount id, as returned by list_accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description adds genuinely useful context: the message is relocated, not deleted, so an agent won't fear data loss. It also discloses the return payload (source folder, destination folder, new uid), which no output schema provides. The mild tension between 'not deleted' and destructiveHint=true is a clarification, not a contradiction.

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, front-loaded with the action and destination, then the non-destructive clarification, then the return shape. No filler or repetition of the title.

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 simple three-parameter mutation with full schema coverage and no output schema, the description covers what it does, what it does not do (delete), and what comes back. 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.

Parameters3/5

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

Schema description coverage is 100% (accountId, uid, folder all documented with defaults and format), so the schema carries parameter meaning. The description adds no extra parameter guidance, such as confirming that the folder param must be the message's current folder, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Moves an email out of its folder into the mailbox's archive') and even disambiguates the destination per provider (Archive folder vs All Mail on Gmail). It never names the sibling move_message, so an agent must infer that arbitrary destinations are out of scope for this tool.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'The message is not deleted' hints at archive-vs-trash and the fixed destination hints at archive-vs-move, but there is no explicit when-to-use line or named alternative (e.g. use move_message for a non-archive folder).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources