Skip to main content
Glama

Mail Archive

mail_archive
Idempotent

Archive a Gmail message from the Hermes inbox by removing its INBOX label; requires user confirmation before use.

Instructions

Archive a message in Hermes's inbox (removes the INBOX label).

Never call without user confirmation. Returns dict with key: id (the message ID that was archived).

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": {
      "message_id": "<message_id>"
    },
    "name": "mail_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (idempotent, non-destructive, closed-world), the description discloses the actual effect on the mailbox (removing the INBOX label) and imposes a confirmation requirement, which is meaningful behavioral context. It stops short of stating whether archiving is reversible or how to restore a message.

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, each earning its place: the action and its effect, the safety precondition, and the return shape. Nothing is buried or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with annotations and an output schema, this covers effect, safety, and return adequately. The only real gap is sourcing the message_id, and the return-value sentence partly duplicates a schema that already exists.

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 coverage is 0%, so the description must carry the parameter burden, yet message_id is only implied via 'a message in Hermes's inbox' and defined only in the return-value sentence. It does not say how to obtain a valid ID (e.g., via mail_search or mail_list_pending).

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?

Names a specific verb and resource ('Archive a message') and disambiguates what archiving means operationally with '(removes the INBOX label)'. It does not distinguish itself from siblings like mail_mark_read or mail_delete_draft, but the action itself is unambiguous.

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?

Provides a hard precondition ('Never call without user confirmation') which is valuable context, but gives no guidance on when to archive versus mark-read or otherwise triage, nor where the message_id comes from. Usage is implied rather than directed.

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