Skip to main content
Glama

Move Email

mail_move
Idempotent

Move an email to a different mailbox using its message ID and target mailbox, with source mailbox and account auto-resolved when omitted. Use for organizing or archiving messages.

Instructions

Move an email to a different mailbox. Source mailbox and account are auto-resolved from the message ID if not provided. Use when: organizing emails into folders, archiving messages

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": {
      "messageId": "<messageId>",
      "targetMailbox": "<targetMailbox>"
    },
    "name": "mail_move"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount name. If omitted, auto-resolved from the message ID.
messageIdYes
sourceMailboxNoSource mailbox name. If omitted, auto-resolved from the message ID.
targetMailboxYesDestination mailbox name

Output Schema

NameRequiredDescriptionDefault
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (not read-only, not destructive, idempotent, closed-world), so the description's main contribution is the auto-resolution of source mailbox and account from the message ID. It omits mutation-relevant behavior: what happens if the target mailbox does not exist (auto-created? error?), whether cross-account moves are allowed, and whether the move is reversible. Useful but not rich beyond the structured fields.

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?

Three short sentences, purpose first, then a key behavioral fact, then usage triggers — well front-loaded with no filler. The usage clause could be folded into the first sentence, but nothing 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?

An output schema exists, so return values need no explanation, and the annotations cover the safety profile. For a simple two-required-parameter mutation the description is nearly sufficient; only failure modes (nonexistent target mailbox, permission errors) are unaddressed.

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 75%, with account, sourceMailbox and targetMailbox documented and only messageId bare. The description's auto-resolution sentence adds a small amount of meaning (that source and account may be derived rather than supplied) but largely paraphrases the schema's own parameter descriptions. Baseline 3 is appropriate given the existing coverage.

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 and resource ("Move an email to a different mailbox") that clearly separates it from the notes_move and mail_* read/send siblings. It stops short of explicitly contrasting with adjacent tools like mail_set_flags, which also change message organization, but the move semantics are 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 "Use when: organizing emails into folders, archiving messages" clause gives positive triggers, which is more than most siblings offer. However, there are no exclusions (e.g., when to use mail_set_flags or a copy tool instead) and no named alternatives, so the agent must infer the boundary conditions itself.

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