Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

create-rule

Create a rule to automate email actions (mark, delete, move) based on conditions like sender, subject, or content.

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
Behavior4/5

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

Discloses that the rule automatically acts on real mail with potential destructive actions (delete, move) and advises user confirmation. However, does not mention error handling, idempotency, or behavior when a rule with the same name exists. No annotations are provided, so the description carries the full burden.

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 concise with no wasted words. Structured into clear sections: use case, return info, alternatives, and safety. Front-loaded with the most important information.

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 annotations and no parameter descriptions in the schema, the description covers usage, return value, behavior, and safety adequately. Only minor omissions (e.g., default for enabled) but overall very complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description adds meaning for all key parameters: explains conditions structure (field/operator/value), actions (markRead, markFlagged, delete, moveTo, moveToAccount), and matchAll logic. It compensates fully for the lack of schema descriptions.

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?

Clearly states the verb 'creating' and resource 'Mail rule'. The description explicitly distinguishes this tool from siblings like enable-rule, disable-rule, delete-rule, and list-rules by mentioning when not to use.

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 'Use when:' and 'Do not use when:' guidance with specific alternative tool names (enable-rule, disable-rule, delete-rule, list-rules). This helps the agent decide when to invoke this tool.

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

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