Skip to main content
Glama
Gmail MCP Server

Gmail MCP Server

by Abhitkumar89

archive_email

Removes an email from the inbox by message ID so users can clear clutter while keeping the message in Gmail. Requires OAuth2 configuration.

Instructions

Archive (remove from INBOX) an email by ID (requires OAuth2 config)

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": {
      "id": "<id>"
    },
    "name": "archive_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesGmail message ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the OAuth2 configuration prerequisite and the key behavioral fact that the message leaves the INBOX rather than being destroyed. It omits whether the action is reversible, whether labels/read state are retained, and what happens to a message that is not in the inbox.

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?

A single compact sentence with the action front-loaded and the constraint attached immediately. The parenthetical auth note is slightly compressed but no sentence is wasted.

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 one-parameter tool with full schema coverage and no output schema, the description covers the action, its INBOX semantics, and the auth prerequisite. The remaining gap is outcome detail (where the message goes, reversibility), which is minor at this complexity level.

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% (the id property is documented as "Gmail message ID"), so the schema already does the heavy lifting. The description only restates "by ID" without adding accepted formats or examples, which is the expected baseline when coverage is high.

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 (archive) and resource (email) and clarifies the semantics with "remove from INBOX," which distinguishes it from the sibling delete_email without naming it. The parenthetical OAuth2 note is a precondition rather than purpose, but the core action 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?

The INBOX-removal gloss implies a non-destructive alternative to delete_email, so an agent can infer when to prefer it. However, there is no explicit "use this instead of X" statement, no guidance on when archiving is inappropriate, and no mention of what to do if the message is already archived.

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