Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

batch-move-messages

Move multiple email messages to a destination mailbox in one operation. Specify IDs and target folder to bulk archive or organize; receive counts of moved and failed messages.

Instructions

Use when: moving multiple messages (1–100 ids) into the same destination mailbox/folder in one call, e.g. bulk archiving. Returns: counts of how many were moved and how many failed, plus the distinct reasons for any failures. Do not use when: moving just one (use move-message) or deleting (use batch-delete-messages). Use list-mailboxes to confirm the destination name exists. Safety: moves many real messages at once — confirm the destination mailbox, and search-messages/list-messages first to confirm the ids. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from — not the destination) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYes
accountNoAccount containing the destination mailbox
mailboxYes
sourceAccountNoAccount the numeric ids were listed from. Required when sourceMailbox is supplied; on its own it pins nothing.
sourceMailboxNoMailbox the numeric ids were listed from (e.g. 'INBOX'). Must be paired with sourceAccount to form an unambiguous scope. Ignored for imap: ids.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
errorsNo
failedNo
mailboxNo
successNo
countDeltaNo
errorsTruncatedNo
Behavior5/5

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

Even with no annotations, the description thoroughly discloses behavior: warns 'moves many real messages at once', advises confirming destination and ids, and explains the id-pinning semantics of sourceMailbox/sourceAccount, including that ambiguous ids are refused. This exceeds typical transparency.

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?

The description is organized into clear labeled segments (Use when, Returns, Do not use, Safety, source instructions), all dense and non-redundant. It front-loads the primary use case before safety details, and every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers use case, exclusion criteria, safety precautions, return values (moved/failed counts and reasons), and parameter pitfalls. With an output schema present and this level of contextual detail, the description is complete for a 5-parameter batch mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema leaves ids and mailbox without descriptions, but the description defines ids as 1-100 and mailbox as the destination. It also adds critical semantics for the sourceAccount/sourceMailbox pairing, clarifying their purpose and the failure mode. With 60% schema coverage, the description compensates the remaining gap effectively.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific action: 'moving multiple messages (1–100 ids) into the same destination mailbox/folder in one call', clearly stating the verb, resource, and scope. It also explicitly contrasts with move-message and batch-delete-messages, making sibling differentiation strong.

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

Usage Guidelines5/5

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

The description provides explicit 'Use when' and 'Do not use when' conditions with named alternative tools, and additionally instructs to use list-mailboxes to confirm destination name. This gives unambiguous selection guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sweetrb/apple-mail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server