Skip to main content
Glama
jayvee6

apple-mail-mcp

by jayvee6

move_matching

Bulk move emails matching criteria (sender, subject, or date) from one mailbox to another in a single pass. Requires at least one filter to prevent accidental full-mailbox moves.

Instructions

Bulk-move every email in a source mailbox that matches the given criteria into a destination mailbox, in one pass. Each call matches a single from/subject substring; to file a sender that spans several unrelated addresses, issue one call per address into the same folder. At least one filter (from_filter, subject_filter, after_date, before_date) is required — this guards against accidentally moving an entire mailbox. The destination must already exist (call create_folder first if needed). Omit limit to move ALL matches (fast native bulk move); set limit to cap the count (slower, per-message). Returns the number of messages moved. On very large mailboxes this can take a few minutes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOptional cap on how many messages to move. Omit to move ALL matches (fast native bulk move); set to move at most N (slower, per-message).
after_dateNoOnly move messages received after this date. ISO 8601: "YYYY-MM-DD".
before_dateNoOnly move messages received before this date. ISO 8601: "YYYY-MM-DD".
from_filterNoSubstring match on the sender — display name OR address, case-insensitive. E.g. "crypto.com" matches both "news.crypto.com" addresses and a "Crypto.com" display name. A sender using several unrelated addresses with no shared substring needs one call per address into the same folder.
src_accountYesSource account to scan, e.g. "iCloud".
src_mailboxNoSource mailbox to scan. Defaults to "INBOX".INBOX
dest_accountYesDestination account, e.g. "iCloud".
dest_mailboxYesDestination mailbox name. Must already exist — call create_folder first if needed.
subject_filterNoSubstring match on subject line.
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so excellently. It discloses the safety guard (required filter), performance differences (fast native bulk move vs. slower per-message), return value (number of messages moved), and potential long runtime on large mailboxes.

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 information-dense and front-loaded with the primary purpose. Every sentence provides necessary context—safety, prerequisites, performance, and return value—without filler or redundancy.

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?

Given no output schema and complex multi-parameter behavior, the description covers all essential context: required filters, destination existence, limit semantics, return count, and performance caveats. It is complete for an agent to invoke the tool correctly.

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%, with each parameter already having detailed descriptions. The tool description reinforces key semantics (like limit behavior and from_filter matching) but does not add significant new meaning beyond the schema, so baseline 3 is appropriate.

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 explicitly states the tool's function: bulk-moving every email matching given criteria from a source mailbox to a destination in one pass. This clearly distinguishes it from siblings like move_email or archive_email by emphasizing the bulk, criteria-based nature.

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?

Provides explicit usage guidance: one call per substring, requiring at least one filter, creating the destination folder first if needed, and explaining when to omit vs. set the limit. This tells the agent exactly how and when to use the tool, including important prerequisites and trade-offs.

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/jayvee6/apple-mail-mcp'

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