Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

create-newsletter-smart-mailboxes

Scan Apple Mail inboxes to detect newsletter and bulk senders, then propose or create a dedicated smart mailbox per sender after a dry-run review.

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

NameRequiredDescriptionDefault
daysNoLook back this many days in INBOXes
dryRunNoIf true (default), only propose; if false, actually create
minCountNoMinimum messages from sender in the period

Output Schema

NameRequiredDescriptionDefault
countNo
dryRunNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.10.24
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv2.10.8
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
  3. Addedv2.9.0

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is partly structured. The description goes further by disclosing the concrete side effect (writes Apple Mail's SyncedSmartMailboxes.plist with backup and atomic replacement), the bulk-creation risk, and the ~400-message AppleScript scan that can be slow — solid added context. Deductions for not describing return payload shape beyond "match scores" or confirming existing entries are untouched beyond the plist note.

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?

Labeled blocks (Use when / Returns / Do not use when / Safety) front-load the routing decision, and every remaining sentence carries either an alternative, a side effect, or a performance caveat. No filler.

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?

For a mutating, potentially bulk, slow tool, the description covers trigger, alternatives, default behavior, side effects, and cost. An output schema exists, so return values need not be spelled out, and the description still notes what is returned.

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 100%, so the baseline would be 3. The description still adds real meaning: dryRun's default safe-propose behavior and what dryRun=false actually mutates, plus the scan-size performance implication tied to days/minCount.

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 names a specific verb+resource — auto-discovering newsletter/bulk senders in INBOXes and optionally creating one "NL: <sender>" smart mailbox per sender — and explicitly distinguishes itself from the two nearest siblings, create-smart-mailbox and create-mailbox.

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?

It gives both sides of the routing decision: a "Use when" clause for discovery of unknown senders and a "Do not use when" clause naming create-smart-mailbox (known sender) and create-mailbox (real folders) as the alternatives, plus an explicit recommendation to review a dryRun first.

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