Skip to main content
Glama
iCloud Mail MCP server

iCloud Mail MCP server

by lachsmith

Move messages

move_messages
Destructive

Moves email messages between iCloud Mail folders, including archive, trash, and junk, to organize or delete them without permanent erasure.

Instructions

Moves messages to another folder. destination is a folder path from list_mailboxes, or one of "archive", "trash" or "junk". Moving to trash is how messages are deleted; nothing is erased permanently. Message uids change after a move.

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": {
      "uids": "<uids>",
      "destination": "<destination>"
    },
    "name": "move_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidsYes
mailboxNoFolder the messages are in now.INBOX
destinationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing two behavioral facts an agent cannot infer: moving to trash is a soft delete ("nothing is erased permanently"), and message uids are invalidated after the move. The uid-change warning is especially valuable because it tells the caller to re-fetch identifiers rather than reuse stale ones. The soft-delete note refines, rather than contradicts, destructiveHint=true.

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?

Four short sentences, front-loaded with the action, then destination syntax, then deletion semantics, then the uid caveat. Every sentence carries distinct information and none 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?

For a destructive 3-parameter tool with no output schema, the description covers the essentials: destination vocabulary, deletion semantics, and post-move uid invalidation. Minor gaps remain around failure modes (nonexistent folder), partial-batch behavior, and the 200-uid cap, but nothing critical for correct invocation is missing.

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 only 33% and there are no enums, so the description carries real weight here: it enumerates the magic destination values (archive/trash/junk) that the schema leaves as a bare string. It adds nothing about the uids array (batch cap of 200, positive-integer constraint) or about mailbox defaulting to INBOX, which keeps it from a 5.

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?

Opening sentence gives a specific verb and resource ("Moves messages to another folder") that is clearly distinct from flag-setting siblings like mark_messages and from read-only siblings like search_messages. It does not explicitly name an alternative tool, so it stops short of a 5, but the action is unambiguous.

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?

Establishes clear operational context: destination comes from list_mailboxes or one of three reserved names, and moving to trash is the deletion path. It gives no explicit when-not guidance (e.g. use mark_messages instead when you only want to flag/archive-label without relocating), so it is clear context rather than full routing.

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