{"serverId":"mcp-registry/io.setip/emailmcp","tools":[{"name":"add_sending_domain","fixed":{"name":"add_sending_domain","description":"Add a customer sending domain. Generates DKIM keys and returns the 4 DNS records the customer needs to add. Works like SendGrid domain authentication — self-hosted.","inputSchema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Customer domain (e.g. company.com)"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":100,"tokensAfter":100},{"name":"check_email_config","fixed":{"name":"check_email_config","description":"Check if email providers are configured, guide setup if needed","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":44,"tokensAfter":44},{"name":"check_ip_status","fixed":{"name":"check_ip_status","description":"Check the status of a pending WireGuard IP provisioning request","inputSchema":{"type":"object","properties":{"request_id":{"type":"string","optional":true,"description":"Request ID from request_email_ip (omit to check saved request)"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":78,"tokensAfter":78},{"name":"create_email_account","fixed":{"name":"create_email_account","description":"Create an email account with SMTP credentials. Returns SMTP password once — save it. The account can then send/receive via this server.","inputSchema":{"type":"object","required":["address"],"properties":{"domain":{"type":"string","optional":true,"description":"Sending domain (auto-derived from address if omitted)"},"address":{"type":"string","description":"Email address (e.g. sales@company.com)"},"display_name":{"type":"string","optional":true,"description":"Display name for the account"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":151,"tokensAfter":151},{"name":"create_email_rule","fixed":{"name":"create_email_rule","description":"Create a rule that triggers actions when incoming emails match conditions. Actions: forward, auto_reply, webhook, flag, move, mcp_tool, log, reject.","inputSchema":{"type":"object","required":["name","match","actions"],"properties":{"name":{"type":"string","description":"Rule name (unique)"},"stop":{"type":"boolean","optional":true,"description":"Stop processing further rules after this one matches (default: false)"},"match":{"type":"object","properties":{"to":{"type":"string","description":"Recipient address or pattern"},"from":{"type":"string","description":"Sender address or pattern (*@domain.com)"},"domain":{"type":"string","description":"Sender domain"},"subject":{"type":"string","description":"Subject contains text"},"body_contains":{"type":"string","description":"Body contains text"},"subject_regex":{"type":"string","description":"Subject regex pattern"},"has_attachments":{"type":"boolean","description":"Has attachments"}},"description":"Match conditions (ALL must match). Use from, domain, subject, subject_regex, body_contains, has_attachments, to, header."},"actions":{"type":"array","items":{"type":"object","required":["type"],"properties":{"to":{"type":"string","description":"For forward: recipient address"},"url":{"type":"string","description":"For webhook: URL to POST to"},"args":{"type":"object","description":"For mcp_tool: arguments to pass","additionalProperties":true},"body":{"type":"string","description":"For auto_reply: reply body text"},"flag":{"type":"string","description":"For flag: flag name (default: important)"},"tool":{"type":"string","description":"For mcp_tool: MCP tool name to invoke"},"type":{"enum":["forward","auto_reply","webhook","flag","move","mcp_tool","log","reject"],"type":"string"},"folder":{"type":"string","description":"For move: target folder"},"reason":{"type":"string","description":"For reject: rejection reason"},"subject":{"type":"string","description":"For auto_reply: reply subject"}}},"description":"Actions to execute when rule matches"},"priority":{"type":"number","optional":true,"description":"Priority (lower = evaluated first, default 100)"},"description":{"type":"string","optional":true,"description":"What this rule does"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":627,"tokensAfter":627},{"name":"create_mailbox","fixed":{"name":"create_mailbox","description":"Create a new local mailbox for receiving email (autonomous mode). Each address gets its own inbox accessible via MCP tools.","inputSchema":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Email address for the mailbox (e.g. sales@company.com)"},"display_name":{"type":"string","optional":true,"description":"Display name for the mailbox"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":119,"tokensAfter":119},{"name":"delete_email_account","fixed":{"name":"delete_email_account","description":"Delete an email account and revoke its SMTP credentials","inputSchema":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Email address of the account to delete"}}},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":72,"tokensAfter":72},{"name":"delete_email_rule","fixed":{"name":"delete_email_rule","description":"Delete an email rule by ID","inputSchema":{"type":"object","required":["rule_id"],"properties":{"rule_id":{"type":"string","description":"Rule ID to delete"}}},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":57,"tokensAfter":57},{"name":"delete_mailbox","fixed":{"name":"delete_mailbox","description":"Delete a local mailbox and all its stored emails (autonomous mode)","inputSchema":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Email address of the mailbox to delete"}}},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":73,"tokensAfter":73},{"name":"get_conversation_context","fixed":{"name":"get_conversation_context","description":"Get full conversation context for a specific thread","inputSchema":{"type":"object","required":["threadId"],"properties":{"threadId":{"type":"string","description":"Thread ID to get conversation for"},"maxEmails":{"type":"number","default":10,"description":"Maximum number of emails to include in context"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":100,"tokensAfter":100},{"name":"get_conversation_threads","fixed":{"name":"get_conversation_threads","description":"Get conversation threads with forwarded emails","inputSchema":{"type":"object","properties":{"limit":{"type":"number","default":20,"description":"Maximum number of threads to return"},"since":{"type":"string","description":"Filter threads active since this date (ISO string)"},"subject":{"type":"string","description":"Filter threads by subject content"},"participant":{"type":"string","description":"Filter threads by participant email address"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":139,"tokensAfter":139},{"name":"get_dns_records","fixed":{"name":"get_dns_records","description":"Generate all required DNS records (A, MX, SPF, DKIM, DMARC) for autonomous email. Outputs copyable records for your DNS provider.","inputSchema":{"type":"object","required":["domain","ipv4"],"properties":{"ipv4":{"type":"string","description":"Your dedicated IPv4 address (from WireGuard provisioning)"},"domain":{"type":"string","description":"Your email domain (e.g. company.com)"},"dmarc_policy":{"enum":["none","quarantine","reject"],"type":"string","optional":true,"description":"DMARC policy (default: reject)"},"dkim_selector":{"type":"string","optional":true,"description":"DKIM selector (default: emailmcp)"},"mail_hostname":{"type":"string","optional":true,"description":"Mail server hostname (default: mail.domain)"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":215,"tokensAfter":215},{"name":"get_domain_dns_records","fixed":{"name":"get_domain_dns_records","description":"Get the DNS records a customer needs to add for a sending domain","inputSchema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Customer domain"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":68,"tokensAfter":68},{"name":"get_domain_verification_emails","fixed":{"name":"get_domain_verification_emails","description":"List mails received in the verification window for a given domain (e.g. to find Apple's verification code without checking the forward_to mailbox).","inputSchema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Domain to filter on"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":94,"tokensAfter":94},{"name":"get_domain_verification_status","fixed":{"name":"get_domain_verification_status","description":"Show active verification windows, the receiver state, and TTLs.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":47,"tokensAfter":47},{"name":"get_email_usage","fixed":{"name":"get_email_usage","description":"Get email usage statistics — delivery rate, bounce rate, per-domain breakdown, top bounce reasons. Reads from persistent stats.","inputSchema":{"type":"object","properties":{"domain":{"type":"string","optional":true,"description":"Filter stats by domain"},"period":{"enum":["hour","day","week","month"],"type":"string","default":"day","description":"Time period for usage statistics"},"account":{"type":"string","optional":true,"description":"Filter stats by account address"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":145,"tokensAfter":145},{"name":"get_forwarded_emails","fixed":{"name":"get_forwarded_emails","description":"Retrieve forwarded emails with optional filtering","inputSchema":{"type":"object","properties":{"limit":{"type":"number","default":50,"description":"Maximum number of emails to return"},"since":{"type":"string","description":"Filter emails since this date (ISO string)"},"threadId":{"type":"string","description":"Filter by conversation thread ID"},"originalSender":{"type":"string","description":"Filter by original sender email address"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":136,"tokensAfter":136},{"name":"get_health_status","fixed":{"name":"get_health_status","description":"Get current health status of the email server — tunnel, SMTP, DNS, IP blocklist checks","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":50,"tokensAfter":50},{"name":"get_idle_status","fixed":{"name":"get_idle_status","description":"Get status of IMAP IDLE watchers — which accounts are being watched, connection status, new email counts","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":55,"tokensAfter":55},{"name":"get_mailbox_status","fixed":{"name":"get_mailbox_status","description":"Get status information for an email mailbox. If IMAP is configured in .env, no credentials needed. Use \"account\" to pick a named account.","inputSchema":{"type":"object","properties":{"account":{"type":"string","optional":true,"description":"Named account (e.g. \"work\", \"personal\"). Omit for default."},"mailbox":{"type":"string","default":"INBOX","description":"Mailbox to check"},"imap_config":{"type":"object","required":["host","email","password"],"properties":{"host":{"type":"string"},"port":{"type":"number","default":993},"email":{"type":"string","format":"email"},"secure":{"type":"boolean","default":true},"password":{"type":"string"}}}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":195,"tokensAfter":195},{"name":"get_smtp_receiver_status","fixed":{"name":"get_smtp_receiver_status","description":"Get the current status of the SMTP forward receiver","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":42,"tokensAfter":42},{"name":"get_suppression_list","fixed":{"name":"get_suppression_list","description":"View all addresses on the bounce suppression list — these addresses will be rejected on send","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":53,"tokensAfter":53},{"name":"get_threads_for_sender","fixed":{"name":"get_threads_for_sender","description":"Get all conversation threads involving a specific sender","inputSchema":{"type":"object","required":["senderAddress"],"properties":{"senderAddress":{"type":"string","description":"Email address of the sender"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":73,"tokensAfter":73},{"name":"list_cloud_providers","fixed":{"name":"list_cloud_providers","description":"List supported cloud providers with pricing, regions, and PTR support info","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":48,"tokensAfter":48},{"name":"list_email_accounts","fixed":{"name":"list_email_accounts","description":"List all configured IMAP email accounts. Shows default and named accounts (work, personal, etc.).","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":54,"tokensAfter":54},{"name":"list_email_accounts_managed","fixed":{"name":"list_email_accounts_managed","description":"List all email accounts with SMTP credentials (optionally filtered by domain)","inputSchema":{"type":"object","properties":{"domain":{"type":"string","optional":true,"description":"Filter by domain"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":71,"tokensAfter":71},{"name":"list_email_rules","fixed":{"name":"list_email_rules","description":"List all email rules with their match conditions, actions, and hit counts","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":46,"tokensAfter":46},{"name":"list_local_mailboxes","fixed":{"name":"list_local_mailboxes","description":"List all local mailboxes on this server (autonomous mode)","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":43,"tokensAfter":43},{"name":"list_mailboxes","fixed":{"name":"list_mailboxes","description":"List all available mailboxes for an email account. If IMAP is configured in .env, no credentials needed. Use \"account\" to pick a named account.","inputSchema":{"type":"object","properties":{"account":{"type":"string","optional":true,"description":"Named account (e.g. \"work\", \"personal\"). Omit for default."},"imap_config":{"type":"object","required":["host","email","password"],"properties":{"host":{"type":"string"},"port":{"type":"number","default":993},"email":{"type":"string","format":"email"},"secure":{"type":"boolean","default":true},"password":{"type":"string"}}}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":173,"tokensAfter":173},{"name":"list_sending_domains","fixed":{"name":"list_sending_domains","description":"List all configured sending domains with their verification status","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":45,"tokensAfter":45},{"name":"provision_start","fixed":{"name":"provision_start","description":"Phase 1: Create a cloud VPS with dedicated IP. Generates WireGuard config. Returns the IP and instructions to connect. Supports DigitalOcean, Vultr, Hetzner, OVH.","inputSchema":{"type":"object","required":["cloud_provider","cloud_api_key","service_domain"],"properties":{"region":{"type":"string","optional":true,"description":"Cloud region (e.g. nyc1, ewr, nbg1, GRA11). Omit for default."},"cloud_api_key":{"type":"string","description":"Cloud provider API key"},"cloud_provider":{"enum":["digitalocean","vultr","hetzner","ovh"],"type":"string","description":"Cloud provider"},"service_domain":{"type":"string","description":"Domain you own for the email service (e.g. emailrelay.xyz). NS will point here."}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":210,"tokensAfter":210},{"name":"provision_status","fixed":{"name":"provision_status","description":"Show current provisioning state — which phases are complete, what to do next","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":47,"tokensAfter":47},{"name":"read_inbox","fixed":{"name":"read_inbox","description":"Read emails from an inbox via IMAP with filtering options. If IMAP is configured in .env, no credentials needed. Use \"account\" to pick a named account (work, personal, etc.).","inputSchema":{"type":"object","properties":{"filter":{"type":"object","properties":{"to":{"type":"string","description":"Filter by recipient email address"},"from":{"type":"string","description":"Filter by sender email address"},"limit":{"type":"number","default":10,"maximum":100,"minimum":1,"description":"Maximum number of emails to read"},"since":{"type":"string","format":"date","description":"Only emails after this date (YYYY-MM-DD)"},"before":{"type":"string","format":"date","description":"Only emails before this date (YYYY-MM-DD)"},"flagged":{"type":"boolean","description":"Only return flagged emails"},"mailbox":{"type":"string","default":"INBOX","description":"Mailbox to read from"},"unread_only":{"type":"boolean","default":false,"description":"Only return unread emails"},"body_contains":{"type":"string","description":"Filter by text in email body"},"subject_contains":{"type":"string","description":"Filter by text in subject line"}}},"account":{"type":"string","optional":true,"description":"Named account to read from (e.g. \"work\", \"personal\"). Omit for default account."},"options":{"type":"object","properties":{"include_body":{"type":"boolean","default":true,"description":"Include email body content"},"mark_as_read":{"type":"boolean","default":false,"description":"Mark emails as read after fetching"},"include_attachments":{"type":"boolean","default":false,"description":"Include attachment information"}}},"imap_config":{"type":"object","properties":{"host":{"type":"string","description":"IMAP server hostname (e.g., imap.gmail.com)"},"port":{"type":"number","default":993,"description":"IMAP server port (default: 993 for SSL)"},"email":{"type":"string","description":"Email address for authentication"},"secure":{"type":"boolean","default":true,"description":"Use SSL/TLS connection"},"password":{"type":"string","description":"Password or app-specific password"}},"description":"Optional if IMAP is configured in .env (IMAP_HOST, IMAP_EMAIL, IMAP_PASSWORD)"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":615,"tokensAfter":615},{"name":"remove_from_suppression","fixed":{"name":"remove_from_suppression","description":"Remove an address from the bounce suppression list (manual override to allow sending again)","inputSchema":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Email address to unblock"}}},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":79,"tokensAfter":79},{"name":"remove_sending_domain","fixed":{"name":"remove_sending_domain","description":"Remove a sending domain and its DKIM keys","inputSchema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Customer domain to remove"}}},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":64,"tokensAfter":64},{"name":"reset_account_password","fixed":{"name":"reset_account_password","description":"Reset the SMTP password for an email account. Returns new password once.","inputSchema":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Email address of the account"}}},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":74,"tokensAfter":74},{"name":"send_email","fixed":{"name":"send_email","description":"Send an email with text or HTML content","inputSchema":{"type":"object","required":["to","subject","text"],"properties":{"cc":{"type":"array","items":{"type":"string"},"optional":true,"description":"Array of CC recipient email addresses"},"to":{"type":"array","items":{"type":"string"},"description":"Array of recipient email addresses"},"bcc":{"type":"array","items":{"type":"string"},"optional":true,"description":"Array of BCC recipient email addresses"},"from":{"type":"string","optional":true,"description":"Personal account address to send from. If set and matching account has personal SMTP/IMAP credentials (via set_personal_email_credentials), sends via that account and IMAP-APPENDs a copy to its Sent folder. If exactly one personal account exists and from is omitted, it is used. If multiple personal accounts exist and from is omitted, the call errors and lists choices."},"html":{"type":"string","optional":true,"description":"HTML content of the email"},"text":{"type":"string","description":"Plain text content of the email"},"subject":{"type":"string","description":"Email subject line"},"provider":{"type":"string","optional":true,"description":"Send via a specific provider instead of the default (e.g. smtp, mailgun, sendgrid, ses, gmail, resend). Requires that provider's credentials in env."},"bulk_mode":{"enum":["individual","bcc","to"],"type":"string","optional":true,"description":"Required when sending to multiple recipients. \"individual\": sends a separate email to each recipient (safest). \"bcc\": puts first recipient in TO:, rest in BCC. \"to\": puts all in TO: (exposes addresses — use only when intended, e.g. team threads)."},"attachments":{"type":"array","items":{"type":"object","properties":{"content":{"type":"string"},"encoding":{"type":"string","default":"base64"},"filename":{"type":"string"}}},"optional":true,"description":"Array of file attachments"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":538,"tokensAfter":538},{"name":"send_template_email","fixed":{"name":"send_template_email","description":"Send an email using a predefined template","inputSchema":{"type":"object","required":["to","template"],"properties":{"to":{"type":"array","items":{"type":"string"},"description":"Array of recipient email addresses"},"subject":{"type":"string","optional":true,"description":"Email subject (can override template subject)"},"provider":{"type":"string","optional":true,"description":"Send via a specific provider instead of the default (e.g. smtp, mailgun, sendgrid, ses, gmail, resend)"},"template":{"type":"string","description":"Template name or path"},"bulk_mode":{"enum":["individual","bcc","to"],"type":"string","optional":true,"description":"Required when sending to multiple recipients. \"individual\": sends a separate email to each recipient (safest). \"bcc\": puts first recipient in TO:, rest in BCC. \"to\": puts all in TO: (exposes addresses — use only when intended)."},"variables":{"type":"object","description":"Template variables to replace","additionalProperties":true}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":287,"tokensAfter":287},{"name":"set_personal_email_credentials","fixed":{"name":"set_personal_email_credentials","description":"Attach a personal account's own SMTP + IMAP credentials (iCloud, Gmail app password, Fastmail, Office365, etc.) to an existing account. Once set, send_email with from=<address> sends via that SMTP and IMAP-APPENDs a copy to its Sent folder. Passwords are AES-256-GCM encrypted at rest with EMAILMCP_SECRET.","inputSchema":{"type":"object","required":["address","smtp_host","smtp_user","smtp_password","imap_host","imap_user","imap_password"],"properties":{"address":{"type":"string","description":"Address of the existing account (must already be created via create_email_account)"},"imap_host":{"type":"string","description":"e.g. imap.mail.me.com, imap.gmail.com, imap.fastmail.com"},"imap_port":{"type":"number","description":"Default 993"},"imap_user":{"type":"string","description":"IMAP username — usually the full email address"},"smtp_host":{"type":"string","description":"e.g. smtp.mail.me.com (iCloud), smtp.gmail.com, smtp.fastmail.com"},"smtp_port":{"type":"number","description":"Default 587"},"smtp_user":{"type":"string","description":"SMTP username — usually the full email address"},"sent_folder":{"type":"string","optional":true,"description":"Override Sent folder name. Auto-discovered via SPECIAL-USE if omitted."},"imap_password":{"type":"string","description":"IMAP password (often same as SMTP)"},"smtp_password":{"type":"string","description":"SMTP password or app-specific password"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":408,"tokensAfter":408},{"name":"setup_autonomous_security","fixed":{"name":"setup_autonomous_security","description":"Auto-configure DKIM, SPF, and DMARC for autonomous email. Generates DKIM keys, creates DNS records, and outputs everything needed.","inputSchema":{"type":"object","required":["domain","ipv4"],"properties":{"ipv4":{"type":"string","description":"Your dedicated IPv4 address"},"domain":{"type":"string","description":"Your email domain"},"dmarc_policy":{"enum":["none","quarantine","reject"],"type":"string","optional":true,"description":"DMARC policy (default: reject)"},"dkim_selector":{"type":"string","optional":true,"description":"DKIM selector (default: emailmcp)"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":174,"tokensAfter":174},{"name":"start_domain_verification","fixed":{"name":"start_domain_verification","description":"Begin a domain-verification window: temporarily set the target domain's MX to verify.setip.io, start (or reuse) the EmailMCP SMTP receiver on :25, and forward any inbound mail for *@domain to forward_to so a human can grab a verification code from the provider (Apple/Google/etc). Auto-tears down after ttl_minutes.","inputSchema":{"type":"object","required":["domain","forward_to"],"properties":{"domain":{"type":"string","description":"Domain whose MX is being temporarily redirected (must be a POC we own in setipio-api)"},"forward_to":{"type":"string","description":"Address where verification mails are relayed in real time"},"ttl_minutes":{"type":"number","description":"Auto-teardown after this many minutes (default 60)"},"real_mx_target":{"type":"string","description":"Optional. If provided, on teardown the MX is set to this target (e.g. apple.com) instead of restoring the pre-window snapshot."}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":267,"tokensAfter":267},{"name":"start_health_monitor","fixed":{"name":"start_health_monitor","description":"Start monitoring the provisioned email server — checks tunnel, SMTP, DNS, and IP reputation every 60 seconds. Auto-restarts on failure.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":65,"tokensAfter":65},{"name":"start_idle_watch","fixed":{"name":"start_idle_watch","description":"Start real-time IMAP IDLE watching on email accounts. Get push notifications when new emails arrive. Works with Gmail, iCloud, Office365, etc.","inputSchema":{"type":"object","properties":{"account":{"type":"string","optional":true,"description":"Account name to watch (e.g. \"work\", \"personal\"). Omit to watch all configured accounts."}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":107,"tokensAfter":107},{"name":"start_smtp_receiver","fixed":{"name":"start_smtp_receiver","description":"Start the SMTP server to receive forwarded corporate emails","inputSchema":{"type":"object","properties":{"port":{"type":"number","default":2525,"description":"Port to listen on (default: 2525)"},"enableThreading":{"type":"boolean","default":true,"description":"Enable conversation threading"},"receivingDomains":{"type":"array","items":{"type":"string"},"default":[],"description":"Domains to accept emails for (empty = accept all)"},"allowedForwarders":{"type":"array","items":{"type":"string"},"default":[],"description":"IP addresses allowed to forward emails (empty = allow all)"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":176,"tokensAfter":176},{"name":"stop_domain_verification","fixed":{"name":"stop_domain_verification","description":"Tear down an active domain-verification window: restore MX (snapshot or supplied real_mx_target), remove the per-domain forwarder. Stops the receiver if no other windows remain.","inputSchema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Domain to tear down"},"real_mx_target":{"type":"string","description":"Optional final MX target (e.g. apple.com). Overrides the snapshot restore."}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":136,"tokensAfter":136},{"name":"stop_idle_watch","fixed":{"name":"stop_idle_watch","description":"Stop IMAP IDLE watching on an account (or all accounts)","inputSchema":{"type":"object","properties":{"account":{"type":"string","optional":true,"description":"Account to stop watching. Omit to stop all."}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":70,"tokensAfter":70},{"name":"stop_smtp_receiver","fixed":{"name":"stop_smtp_receiver","description":"Stop the SMTP forward receiver server","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":37,"tokensAfter":37},{"name":"update_email_rule","fixed":{"name":"update_email_rule","description":"Update an existing email rule (enable/disable, change match/actions/priority)","inputSchema":{"type":"object","required":["rule_id"],"properties":{"stop":{"type":"boolean","optional":true,"description":"Stop after match"},"match":{"type":"object","optional":true,"description":"New match conditions"},"actions":{"type":"array","optional":true,"description":"New actions"},"enabled":{"type":"boolean","optional":true,"description":"Enable or disable the rule"},"rule_id":{"type":"string","description":"Rule ID to update"},"priority":{"type":"number","optional":true,"description":"New priority"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":179,"tokensAfter":179},{"name":"validate_email","fixed":{"name":"validate_email","description":"Validate email addresses and check deliverability","inputSchema":{"type":"object","required":["emails"],"properties":{"emails":{"type":"array","items":{"type":"string"},"description":"Array of email addresses to validate"},"check_mx":{"type":"boolean","default":true,"description":"Check MX records for domain"},"check_smtp":{"type":"boolean","default":false,"description":"Perform SMTP validation"}}},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":123,"tokensAfter":123},{"name":"verify_autonomous_setup","fixed":{"name":"verify_autonomous_setup","description":"Verify that autonomous email is properly configured: DNS records, DKIM, SMTP send/receive","inputSchema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Your email domain to verify"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":78,"tokensAfter":78},{"name":"verify_email_setup","fixed":{"name":"verify_email_setup","description":"Verify IP whitelisting and email provider configuration","inputSchema":{"type":"object","required":["provider"],"properties":{"domain":{"type":"string","description":"Domain to check for DNS records (required if include_dns is true)"},"provider":{"enum":["sendgrid","mailgun","ses","resend","all"],"type":"string","description":"Email provider to verify, or \"all\" for all configured providers"},"test_email":{"type":"string","format":"email","description":"Optional test email address to verify delivery"},"include_dns":{"type":"boolean","default":false,"description":"Include DNS record verification"}}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":181,"tokensAfter":181}],"toolsChanged":51,"tokensSaved":0,"todo":[{"tool":"get_mailbox_status","params":["imap_config"]},{"tool":"list_mailboxes","params":["imap_config"]},{"tool":"read_inbox","params":["filter","options"]}],"note":"Deterministic fixes. Changes marked verify need a human look before shipping (renames, inferred annotations, inferred types, removed text). Parameter descriptions in `todo` need to be written by someone who knows the API."}