Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

save-attachment

Save an email attachment to disk by specifying the message ID, attachment name, and save path.

Instructions

Use when: writing one of a message's attachments to disk, by message id and attachmentName, into the savePath directory (saved as savePath/attachmentName). Returns: a confirmation of the saved file path. Do not use when: you don't know the attachment name (use list-attachments first) or want the bytes inline rather than on disk (use fetch-attachment). Safety: writes a file to disk — savePath must be a directory inside the configured allowed roots, and attachmentName may not contain path separators or '..'; calls outside those constraints are rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
savePathYes
attachmentNameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
savedPathNo
attachmentNameNo

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