Skip to main content
Glama
gmail-mcp

gmail-mcp

gmail_restore_email

Restores a Gmail email or label change using a restore token, reversing a prior trash move or label modification.

Instructions

Undo gmail_delete_email trash moves or gmail_manage_labels changes.

Args: restore_token: Token returned by gmail_delete_email or gmail_manage_labels

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": {
      "restore_token": "<restore_token>"
    },
    "name": "gmail_restore_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
restore_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior2/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 discloses the mutation (undo) and the important precondition that a restore_token from a prior call is required, but says nothing about token lifetime or single-use behavior, whether the restore is itself reversible, or what the response looks like.

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?

Two short blocks with the core behavior front-loaded and the parameter note kept minimal. The sentence wording is slightly awkward ('Undo ... trash moves or ... changes') but no content is wasted or redundant.

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

Completeness3/5

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

For a one-parameter, annotation-free tool with no output schema, the definition covers what it does and where the token comes from. It omits the prerequisites an agent most needs at call time: token expiry/single-use, and whether the originating call must be the immediately preceding one.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

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

Schema coverage is 0% for the single parameter, so the description must compensate and largely does: it identifies restore_token as a value returned by gmail_delete_email or gmail_manage_labels. What it does not add is token format, validity window, or failure behavior for an invalid/expired token.

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 (undo) and names the two exact operations it reverses (gmail_delete_email trash moves, gmail_manage_labels changes), which separates it from the sibling tools it references. It stops short of a fully scoped statement (e.g. whether it can undo sends or drafts), so it is clear but not exhaustive.

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?

Implies use only after a delete or label change, and the Args section establishes the prerequisite that the token must come from one of those calls. There is no explicit 'do not use this for X' exclusion, but the when-to-use condition is unambiguous from the sentence plus token provenance.

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