Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

move_email

Destructive

Transfer an email between IMAP folders on any provider, including Gmail, Outlook, and custom domains, by specifying the account, UID, source folder, and target folder.

Instructions

Move an email between IMAP folders — works with any provider (Gmail, Outlook, custom domains).

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": {
      "accountId": "<accountId>",
      "uid": "<uid>",
      "sourceFolder": "<sourceFolder>",
      "targetFolder": "<targetFolder>"
    },
    "name": "move_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesThe UID of the email to move
accountIdYesThe ID of the account to use
sourceFolderYesThe current folder of the email
targetFolderYesThe destination folder
confirmationIdNoConfirmation token from a prior confirmation-required response. Required to execute write operations when server is in --confirm mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is covered. The description's added value is the provider-compatibility note (Gmail, Outlook, custom domains), but it never explains that the message is removed from the source folder or how the confirmation-required path behaves.

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?

A single sentence with the action front-loaded and zero filler. 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?

With a fully described five-parameter schema and destructive annotations, the description needs only to frame the operation, which it does. The one meaningful omission is the confirmation-token workflow, which the schema partially covers but which materially affects whether the call succeeds.

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%, so all five parameters including confirmationId are already documented in the schema. The description only restates the source/target folder concept without adding format details such as folder path syntax or UID uniqueness per folder.

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 (move) and resource (email) plus the mechanism (between IMAP folders), which cleanly separates it from delete_email, forward_email, and reply_email. It does not, however, distinguish itself from modify_labels, which is the Gmail-idiomatic alternative for relocating mail.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is given. There is no mention of using list_folders to discover valid source/target values, no note that Gmail moves may be better served by modify_labels, and no explanation of when the confirmationId flow kicks in.

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