Skip to content

MCP tools: mail

Read and manage Thunderbird mail over MCP. write tools are registered only when ATBRIDGE_ALLOW_WRITES=1 — see the MCP overview. Pick a sender identity with accounts_list (system).

ToolAccessPurposeKey parameters
mail_fetchreadTrigger Get Messages (new-mail check) now — call before searching for very recent mailaccount_key
mail_foldersreadList folders across all accounts
mail_searchreadSearch subject + body, newest firstquery, from, to, subject, folder, account, since, until (YYYY-MM-DD or ISO 8601), limit, snippet, verbose
mail_listreadRecent messages in a folderfolder (default INBOX), account, limit, verbose
mail_getreadOne message: headers, body, attachmentsidentifier, body (text|html|raw), include_headers
mail_threadreadA whole conversationidentifier, limit
mail_attachmentsreadList a message’s attachments (index, filename, type, size, partName, inline)identifier
mail_attachment_getreadRead one attachment’s content (text for text/*, else base64)identifier, index or part_name, encoding (base64|text)
mail_sendwriteCompose + send (or draft/template/later)to[], subject, html/text, attachments[], identity, mode
mail_draft_editwriteEdit an existing draft — only the fields you pass changeidentifier, subject, to[], cc[], bcc[], html/text
mail_replywriteReply to a messageidentifier, reply_type (replyToSender|replyToAll|replyToList), body
mail_forwardwriteForward a messageidentifier, forward_type (forwardInline|forwardAsAttachment), to[]
mail_movewriteMove to another folder (bulk: identifiers[] or selector)identifier | identifiers[] | selector, folder, max
mail_deletewriteTrash / hard delete (bulk: identifiers[] or selector)identifier | identifiers[] | selector, hard, max
mail_markwriteUpdate flags (bulk: identifiers[] or selector)identifier | identifiers[] | selector, read, flagged, tags[], max
mail_folder_createwriteCreate a folder (nested Parent/Child)account, name
mail_folder_renamewriteRename a folderaccount, path, name
mail_folder_deletewriteDelete a folder (special-use protected)account, path
mail_empty_trashwritePermanently empty an account’s Trashaccount, max

Branded HTML email (mail_compose) lives with the AI tools.

Was this page helpful?