Skip to main content
Glama

get_unread_emails

Retrieve unread emails from specified mailboxes using the JXA Mail MCP server. Configure account, mailbox, and limit parameters to fetch messages sorted by date.

Instructions

Get unread emails from a mailbox.

Args: account: Account name. Uses JXA_MAIL_DEFAULT_ACCOUNT env var or first account if not specified. mailbox: Mailbox name. Uses JXA_MAIL_DEFAULT_MAILBOX env var or "Inbox" if not specified. limit: Maximum number of emails to return (default: 50)

Returns: List of unread emails sorted by date (newest first).

Example: >>> get_unread_emails("Work", limit=20) [{"subject": "New message", "read": false, ...}, ...]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNo
mailboxNo
limitNo

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/imdinu/jxa-mail-mcp'

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