Skip to main content
Glama
Apple Mail MCP Server

Apple Mail MCP Server

by tamm

download_attachment

Downloads one or all attachments from a specified email to a chosen directory; use get_email first to find attachment filenames.

Instructions

Download attachment(s) from an email. Use get_email to see filenames.

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": {
      "email_id": "<email_id>"
    },
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
email_idYesEmail ID.
destinationNoSave directory (default: /tmp/mail-attachments/).
attachment_nameNoFilename (omit for all).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it does not state that this writes files to disk, whether existing files are overwritten, what happens on a missing attachment name, or what the successful result looks like. The only behavioral hint is the schema's default destination directory; the description itself adds nothing about side effects or failure modes for a tool that touches the filesystem.

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?

Two short sentences with the core action front-loaded and the prerequisite second; there is no redundant or filler wording. The entire description earns its place.

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

Completeness3/5

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

This is a simple three-parameter tool with full schema coverage and no output schema, so little is strictly required. However, with no annotations and no return-value documentation, an agent still cannot tell whether the result is a list of saved file paths or how partial failures are reported.

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 email_id, destination, and attachment_name are already documented, including the 'omit for all' semantics for attachment_name. The description's 'Use get_email to see filenames' adds minor context about where valid attachment_name values come from, but no format or edge-case detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Download attachment(s) from an email'), making the operation unambiguous. It also points to get_email for filename discovery, which implicitly separates this tool from the read/list siblings, though it does not explicitly contrast with any of them.

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

Usage Guidelines3/5

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

The sentence 'Use get_email to see filenames' gives a useful workflow prerequisite, but there is no explicit when-to-use/when-not guidance, no statement about what happens if the attachment does not exist, and no mention of alternatives. Usage is implied rather than spelled out.

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