MaillyDocs

Tools

The tools the Mailly MCP server exposes, grouped by area.

Each tool is backed by the same API as the CLI. Tools that change the workspace require confirmed=true, which the assistant should set only when you asked for that exact change. Saving configuration never activates it.

Account and inbox

ToolWhat it does
mailly_accountAccount email, credit balance and granted permissions, with an optional overview
mailly_list_inbox_addressesInbox addresses and available domains
mailly_list_threadsConversations, newest first; searches metadata, not bodies
mailly_read_threadBodies of the latest messages in a conversation
mailly_read_messageOne inbound or sent email body, as Markdown by default
mailly_wait_for_mailWait up to 25 seconds for new mail matching an address, sender or subject; can pull out a verification code or link
mailly_load_imageAn inline or external image referenced by an email
mailly_set_thread_read_stateMark a conversation read or unread
mailly_create_inbox_addressCreate a receiving address
mailly_delete_inbox_addressDelete an address and all of its stored mail
mailly_delete_messageDelete one stored email
mailly_release_messageMove a quarantined email back to the inbox

Drafts and sending

ToolWhat it does
mailly_save_draftSave a reply or follow-up draft for review, without sending
mailly_update_draftEdit an unapproved draft at its current revision
mailly_discard_draftDiscard a draft awaiting review
mailly_list_draftsPending, sent or discarded drafts. With send permission, each pending draft has a review_url you can open on any device to send or discard it without signing in
mailly_approve_draftSend a draft after you confirm the exact text and recipients
mailly_send_emailSend a new email; always validated with dry_run first
mailly_forward_messageForward an email from the address that received it
mailly_list_sent_messagesSent emails with sending and delivery status
mailly_get_sent_messageOne sent email with its attempts and delivery events
mailly_list_delivery_eventsDelivered, bounced and complained events
mailly_replay_delivery_eventPost a delivery event to your webhook again

Domains and webhooks

ToolWhat it does
mailly_list_domainsCustom domains with sending and receiving status
mailly_add_domainSubmit a domain for ownership review
mailly_setup_domainVerify inbound MX and set up sending for an approved domain
mailly_get_inbox_webhooksDefault and per-address inbound webhooks
mailly_save_inbox_webhookSet the workspace default inbound webhook
mailly_save_inbox_webhook_endpointAdd or update an address's webhook endpoint
mailly_remove_inbox_webhookRemove an endpoint or the default webhook
mailly_test_inbox_webhookSend a signed webhook.test event
mailly_get_workspace_settingsMarketing footer and delivery webhook settings
mailly_save_marketing_settingsBrand name and postal address for marketing mail
mailly_save_delivery_webhookCreate or update the delivery-event webhook

Contacts, templates, campaigns and workflows

ToolWhat it does
mailly_list_contacts, mailly_get_contactContacts and their subscription status
mailly_save_contact, mailly_import_contactsCreate or update contacts, one or many
mailly_delete_contact, mailly_suppress_contactDelete or suppress a contact
mailly_get_subscription_status, mailly_resubscribe_recipientCheck or lift a recipient's unsubscribe
mailly_list_audiences, mailly_save_audience, mailly_delete_audience, mailly_preview_audienceStatic and dynamic audiences
mailly_list_templates, mailly_get_template, mailly_render_templateRead and render templates
mailly_save_template_draft, mailly_manage_template, mailly_send_template_testEdit, publish and test templates
mailly_list_campaigns, mailly_get_campaign, mailly_list_campaign_recipientsCampaigns and their reports
mailly_prepare_campaign, mailly_update_campaign_content, mailly_manage_campaign, mailly_resend_campaign_failuresPrepare, edit, pause, resume and retry campaigns
mailly_list_workflows, mailly_get_workflow, mailly_list_workflow_runsWorkflows and their runs
mailly_save_workflow_draft, mailly_manage_workflow, mailly_cancel_workflow_runEdit, publish and cancel workflows

Hosted agents

ToolWhat it does
mailly_list_agents, mailly_save_agentRead and edit hosted agent profiles
mailly_list_agent_runsAgent runs, including drafts waiting for review
mailly_review_agent_draftApprove or discard a reply an agent drafted

On this page