Skip to main content
Glama
p-l-ta

mail-mcp

by p-l-ta

create_rule

Create a custom rule in Mail.app with conditions and actions, such as moving or flagging messages. A backup of existing rules is made before saving.

Instructions

Create a new Mail.app rule. A timestamped backup of SyncedRules.plist is made before writing. Mail.app may need to be restarted for the rule to take effect.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDisplay name for the rule.
actionsYesAt least one action should be set.
match_allNotrue = ALL conditions must match (AND); false = ANY (OR).
conditionsYesOne or more match conditions.
Behavior4/5

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

The description adds valuable behavioral info beyond annotations: mentions backup creation (safety) and potential need for restart. This supplements the annotations which only note non-readonly and non-destructive.

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 only two sentences, with no wasted words. The purpose is stated first, followed by essential behavioral notes. Front-loaded and compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has nested objects well-documented in schema, and the description adds backup and restart info. However, it lacks any mention of return values or error handling (e.g., what happens if creation fails), which would be helpful for a creation tool with no output schema.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all parameters well. The tool description does not add any parameter-specific meaning beyond what is already there, so baseline 3 is appropriate.

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 clearly states 'Create a new Mail.app rule', using a specific verb and resource. It distinguishes itself clearly from sibling tools like update_rule, delete_rule, and list_rules.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides context: a backup is made and restart may be needed. However, it does not explicitly state when to use this tool versus alternatives like update_rule, or when not to use it.

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/p-l-ta/mail-mcp'

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