Skip to main content
Glama

list_mailboxes

Retrieve all mailboxes for an email account, showing mailbox names and unread message counts. Use this tool to view mailbox structure and monitor unread emails.

Instructions

List all mailboxes for an email account.

Args: account: Account name. Uses JXA_MAIL_DEFAULT_ACCOUNT env var or first account if not specified.

Returns: List of mailbox dictionaries with 'name' and 'unreadCount' fields.

Example: >>> list_mailboxes("Work") [{"name": "INBOX", "unreadCount": 5}, ...]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNo

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