Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

create-rule

Create a Mail rule with conditions and actions to automatically mark, flag, delete, or move emails that match specified criteria.

Instructions

Use when: creating a new Mail rule with one or more conditions (field/operator/value) and at least one action (markRead, markFlagged, delete, or moveTo). Set matchAll to require all conditions vs. any. Returns: a confirmation naming the rule and its condition count. Do not use when: toggling an existing rule (use enable-rule / disable-rule) or removing one (use delete-rule). Use list-rules to avoid duplicating an existing rule. Safety: creates a rule that automatically acts on real mail (including delete/move actions) on an ongoing basis — confirm the conditions and actions with the user before calling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
actionsYes
enabledNo
matchAllNo
conditionsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
createdNo

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