Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by sweetrb

save-template

Destructive

Create reusable email templates with placeholders and optional default recipients, or update existing templates by ID. Templates persist on disk for later use.

Instructions

Use when: creating a reusable email template (name, subject, body, optional default to/cc), or updating one by passing its existing id. Subject/body may contain placeholders for later use. Returns: the saved template's name and id (reuse the id with use-template / get-template / delete-template). Do not use when: composing a one-off message (use create-draft / send-email) or filling in a template to send (use use-template). Safety: writes the template to the on-disk templates store (APPLE_MAIL_MCP_TEMPLATES_FILE) and persists across restarts; passing an existing id overwrites that template.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "save-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoDefault CC recipients
idNoTemplate ID (for updating existing template)
toNoDefault recipients
bodyYes
nameYes
subjectYes

Output Schema

NameRequiredDescriptionDefault
idNo
okNo
nameNo

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.8.14
  4. Removedv2.8.10
  5. First observedv2.6.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and openWorldHint=false, and the description earns credit by explaining exactly what the destructive behavior is ('passing an existing id overwrites that template') and where the write lands (on-disk templates store via APPLE_MAIL_MCP_TEMPLATES_FILE, persisted across restarts). It also states the return payload (name and id). It stops short of stating whether the overwrite is reversible or requires confirmation, which is the remaining behavioral gap.

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 labeled and front-loaded (Use when / Returns / Do not use when / Safety), so an agent gets routing information before detail. The Returns line slightly overlaps the output schema but carries unique workflow value by naming the sibling tools the returned id feeds into.

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 six-parameter mutation tool with an output schema, the definition covers routing, overwrite semantics, persistence location, return value, and field meaning. The only omissions — placeholder syntax and address format — are minor and partly inferable from the schema types.

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 50% — name, subject, and body have no schema descriptions — and the description compensates by identifying all three plus the optional default to/cc and the id-for-update semantics. It adds the extra semantic point that subject/body may contain placeholders. It does not specify the expected address syntax for the to/cc string arrays or the placeholder syntax, leaving a small gap.

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 opens with a specific verb+resource ('creating a reusable email template') and explicitly covers the second mode ('updating one by passing its existing id'). It names the fields involved (name, subject, body, optional default to/cc), so an agent can distinguish it from create-draft, send-email, and use-template without opening any schema.

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 provides an explicit 'Use when' block and a 'Do not use when' block that routes two adjacent intents to named alternatives (create-draft/send-email for one-off messages, use-template for sending from a template). This is the full when/when-not/alternatives pattern.

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