Skip to main content
Glama

Put an email back in the inbox

restore_to_inbox
Idempotent

Moves an archived, filed or trashed email back to the inbox, on the mail server too.

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": {
      "email_id": "<email_id>"
    },
    "name": "restore_to_inbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
email_idYesEmail id, as returned by search_emails or list_to_answer.

Output Schema

NameRequiredDescriptionDefault
email_idYes
restoredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / email_id
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "restored"
      -]New value: +[
      +  "restored",
      +  "email_id"
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the mutation and safety profile are covered structurally. The description adds one genuinely new fact — the change is mirrored 'on the mail server too' — but says nothing about failure modes (e.g. permanently deleted email) or permission requirements.

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?

One sentence, no filler, with the action and destination front-loaded and the server-side caveat as a trailing qualifier. Nothing could be removed without losing information.

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, non-destructive mutation with full schema coverage and an output schema, the description covers the essential 'what and where'. Only the lack of any pointer to the alternative move_email path keeps it below complete.

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?

There is a single parameter with 100% schema description coverage that already names its source (search_emails or list_to_answer). The description adds no format, constraint or edge-case guidance, so the schema baseline of 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 ('Moves ... back'), the resource (an email) and the destination (the inbox), plus the source states it accepts (archived, filed, trashed). That is enough to distinguish it from archive_email/trash_email/move_email, though no sibling is named explicitly.

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 phrase 'archived, filed or trashed' implies when the tool applies, but there is no explicit 'use this instead of move_email when…' or stated precondition. An agent can infer the use case but not the boundaries against the closely related move_email sibling.

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.