Skip to main content
Glama

applescript-mcp

mail_get_email

Retrieve specific emails from Mail.app on macOS using search criteria like subject, sender, date, or mailbox. Includes option to fetch email body if needed.

Instructions

[Mail operations] Get a specific email by search criteria from Mail.app

Input Schema

NameRequiredDescriptionDefault
accountNoName of the account to search in (e.g., 'iCloud', 'Gmail', 'Exchange'). If not specified, searches all accounts with preference for iCloud.iCloud
dateReceivedNoDate received to search for (format: YYYY-MM-DD)
includeBodyNoInclude email body in the result if true
mailboxNoName of the mailbox to search in (e.g., 'Inbox', 'Sent')Inbox
senderNoSender email or name to search for (partial match)
subjectNoSubject text to search for (partial match)
unreadOnlyNoOnly search unread emails if true

Input Schema (JSON Schema)

{ "properties": { "account": { "default": "iCloud", "description": "Name of the account to search in (e.g., 'iCloud', 'Gmail', 'Exchange'). If not specified, searches all accounts with preference for iCloud.", "type": "string" }, "dateReceived": { "description": "Date received to search for (format: YYYY-MM-DD)", "type": "string" }, "includeBody": { "default": false, "description": "Include email body in the result if true", "type": "boolean" }, "mailbox": { "default": "Inbox", "description": "Name of the mailbox to search in (e.g., 'Inbox', 'Sent')", "type": "string" }, "sender": { "description": "Sender email or name to search for (partial match)", "type": "string" }, "subject": { "description": "Subject text to search for (partial match)", "type": "string" }, "unreadOnly": { "description": "Only search unread emails if true", "type": "boolean" } }, "required": [], "type": "object" }

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/joshrutkowski/applescript-mcp'

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