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
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / email_id
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "restored"
      -]New value: +[
      +  "restored",
      +  "email_id"
      +]
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description does add one thing annotations cannot express: the change propagates 'on the mail server too', which matters for an agent reasoning about side effects. It stops short of covering edge cases such as a message already in the inbox or coverage of spam/deleted folders.

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?

One sentence, front-loaded with the verb, with no filler. The trailing server-sync clause is separated by a comma and slightly awkward, but it earns its place by conveying real behavior.

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?

An output schema exists, so return values need no explanation, and with a single fully documented required parameter the definition covers what an agent needs to invoke it. The remaining gap is behavioral edge cases (already-in-inbox, spam folder), which are minor for a tool this simple.

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 100% and the email_id field description already names where ids come from (search_emails, list_to_answer). The description contributes no additional parameter meaning, so this sits at the baseline for a fully documented schema.

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?

The description supplies a specific verb (moves) and resource (email) plus the exact source states (archived, filed, trashed) and the destination (inbox). That implicitly inverts siblings like archive_email and trash_email, but no sibling is named outright, so the differentiation is inferred rather than stated.

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 from-states give an implied trigger: use this when a message is archived, filed or trashed and needs to go back to the inbox. There is no explicit when-to-use or when-not framing, and it never contrasts itself with move_email or archive_email, which an agent could plausibly pick instead.

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.