create-newsletter-smart-mailboxes
Auto-discover newsletter and bulk senders in your inboxes, then propose or create a dedicated smart mailbox per sender. Start with a dry run to review before making changes.
Instructions
Use when: auto-discovering newsletter/bulk senders in your INBOX(es) and (optionally) creating a dedicated smart mailbox per sender (named "NL: "). Defaults to a safe dry run that only proposes. Returns: the proposed or created smart mailboxes with their match scores. Do not use when: you already know the exact sender (use create-smart-mailbox) or want real folders (use create-mailbox). Safety: with dryRun=false it edits Apple Mail's SyncedSmartMailboxes.plist (backed up, atomic, existing entries preserved) and can create many smart mailboxes at once — review a dryRun first. It scans up to ~400 recent messages per inbox via AppleScript, which can be slow on large mailboxes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create-newsletter-smart-mailboxes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look back this many days in INBOXes | |
| dryRun | No | If true (default), only propose; if false, actually create | |
| minCount | No | Minimum messages from sender in the period |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| dryRun | No |