mail_duplicates
Reports where Mail stores redundant copies of the same message, showing mailbox counts, worst duplicates, and cross-account overlap so you can identify cleanup targets. Read-only.
Instructions
Where Mail is storing redundant copies of the same message — a REPORT, read-only.
Mail accumulates duplicate rows (a UI drag copies rather than moves, Gmail shows one
message under a label and All Mail, migrations leave copies on two accounts). The
read tools already hide them — mail_search/mail_thread/mail_overview report
result per Message-ID — so this exists to show what is still physically there.
Returns {redundant, mailboxes, worst, cross_account, note}: mailboxes is
{mailbox_url, total, distinct_, redundant} per mailbox worst-first, worst names
individual messages with the most copies ({mailbox_url, id, subject, copies}), and
cross_account counts rows whose Message-ID also exists under another account.
This tool CANNOT delete anything. Cleaning up is macos-apps-mcp dedupe-mail, run
a terminal by the user — thousands of deletes is a job a human starts, not a tool
call. Tell them that command rather than proposing per-message deletes.
Fast and read-only, straight from Mail's index at rest (so it may lag Mail by a few
minutes and never launches Mail). Needs Full Disk Access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||