{"serverInfo":{"name":"SuperMailbox","version":"0.1.0"},"authentication":{"required":true,"schemes":["oauth2"]},"tools":[{"name":"get_profile","description":"Return the authenticated SuperMailbox identity and connected mailbox count.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"list_mail_accounts","description":"List the current user's connected and explicitly shared email accounts. Each address identifies the connected account, not every address that can receive mail there: aliases, custom-domain addresses and forwarded recipients may differ. An address missing from this list does not prove that its messages are unavailable. To find mail addressed to it, search across connected mailboxes with search_emails using the to filter and inspect message recipients, subject to search coverage and folder limits. list_sender_identities lists approved From addresses, not all inbound recipients. Entries may include canSend and sendUnavailableReason; smtp_auth_rejected means Outlook receiving is available while SMTP sending is unavailable. Every send action rechecks mailbox and sender authorization.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"get_mail_ingestion_status","description":"Report whether background mailbox ingestion is enabled, the scheduler is live, and a running sweep is making progress. This is worker readiness only; it does not claim that any mailbox or thread cache is complete or current.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"list_mailbox_changes","description":"Read a bounded page from the durable forward-only mailbox feed. This reads the encrypted cache cursor only and never contacts a mail provider. On the first call, omit afterCursor; bootstrap:true starts at the oldest retained change. Persist nextCursor when present and pass it unchanged on later calls. If status is reset_required and recoveryCursor is present, reconcile the reported gap before resuming. If no recoveryCursor is returned, the feed is not initialized yet; retry the bootstrap call later. Messages contain sender/recipient and available RFC linkage headers, never body or subject; compare sender against known creator addresses to decide direction.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"afterCursor":{"type":"string","minLength":1,"maxLength":4096},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["accountId"],"additionalProperties":false}},{"name":"list_cached_mailbox_summaries","description":"Read one bounded, cache-only page of metadata from the partial OpenSearch mailbox subset. Use only when CRM explicitly requests bootstrap or gap reconciliation; this never contacts a provider and does not start a background or recurring scan. Pass nextCursor unchanged to continue the requested scan. Every page has complete:false and snapshot:false; pages can miss late-indexed or concurrently changing messages, and exhausting the cursor does not prove history complete or clear a mailbox gap. Do not restart automatically after exhaustion. Use list_mailbox_changes for ongoing new arrivals. Only sender/recipient addresses, timestamps, and opaque message/thread/folder IDs are returned; no subject, snippet, or body.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"after":{"description":"Inclusive receivedAt lower bound. Choose the earliest watched outgoing message or other explicit reconciliation window; this value is bound to nextCursor.","type":"string","maxLength":64,"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"afterCursor":{"description":"Opaque cursor returned by the prior page. Keep accountId, after, and limit unchanged.","type":"string","minLength":1,"maxLength":4096},"limit":{"description":"Maximum summaries in this page; defaults to 50.","type":"integer","minimum":1,"maximum":100}},"required":["accountId"],"additionalProperties":false}},{"name":"get_cached_thread_search_capability","description":"Check cache-only recipient-search capability for one mailbox. `supported` means a bounded, read-only OpenSearch query succeeded for this exact account generation; it does not mean the index contains messages or covers the mailbox. `pending` should be retried later. Unsupported scopes must not fall back to a live provider search.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256}},"required":["accountId"],"additionalProperties":false}},{"name":"list_mail_folders","description":"List folders for one connected mailbox.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256}},"required":["accountId"],"additionalProperties":false}},{"name":"list_sender_identities","description":"List the approved From addresses for one mailbox. This is not a complete list of inbound aliases or forwarded recipient addresses.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256}},"required":["accountId"],"additionalProperties":false}},{"name":"search_emails","description":"Search connected mailboxes. Results are compact summaries; use get_email to read a message. Without folderId, search uses Inbox in the selected connected mailbox(es); when accountId is omitted, it searches the connected mailboxes available to your account. To search Sent, Drafts, or another folder, first call list_mail_folders, then pass that folder's folderId together with the same accountId. This tool has no all-folders selector. Results may combine indexed matches with provider search. A nextCursor continues this same search and may advance provider traversal even when messages is empty; resume with that exact cursor and unchanged account, query, filters, and limit. Prefer that continuation over starting a new search. pendingAccountIds identifies mailboxes still searching. semanticPending:true means semantic results are not ready yet, even when messages is empty and nextCursor is absent. This is independent of provider freshness and pendingAccountIds. freshness.checkedAt is the last confirmed check for this result scope: treat recent results as usable within the ten-minute freshness window and do not raise a freshness warning within the thirty-minute tolerance window. A recent checkedAt stays usable when freshness.stale is true or freshness.refreshing is true; those flags can reflect cache maintenance or an incomplete snapshot, not a provider failure. Missing checkedAt means the age is unknown and is not itself evidence that messages are stale. coverage.complete and cachedSubset describe search coverage independently from the age of returned messages. Only when there is no nextCursor and semanticPending is true, retry the identical query and filters once after about five seconds, omitting cursor, and setting waitForFresh:false. Check semanticPending on the follow-up; if it remains true, treat results as incomplete rather than as no matches. failures identifies settled errors. Without nextCursor, a pending provider search can be checked later by repeating the identical query and filters without a cursor and with waitForFresh:false. A pending cursor or incomplete coverage is not proof that a mailbox is empty; continue that exact search when a complete answer is required. Set waitForFresh only when the user explicitly asks for a live refresh. If that bounded wait expires, return the cached matches and last confirmed check time without describing the timeout itself as a mail failure.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"waitForFresh":{"description":"Wait briefly for a provider refresh instead of immediately returning a cached copy. Check the returned freshness timestamps and stale/refreshing flags.","type":"boolean"},"maxWaitMs":{"description":"Maximum refresh wait in milliseconds (up to 15000). At the deadline, a cached copy may be returned with freshness metadata; this is not a guarantee of a fresh response.","type":"integer","minimum":1,"maximum":15000},"accountId":{"type":"string","minLength":1,"maxLength":256},"query":{"type":"string","maxLength":4096},"from":{"type":"string","maxLength":320},"to":{"type":"string","maxLength":320},"subject":{"type":"string","maxLength":1024},"after":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"before":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"isRead":{"type":"boolean"},"isStarred":{"type":"boolean"},"hasAttachments":{"type":"boolean"},"sort":{"description":"Text searches default to relevance. Inbox and folder lists default to newest first. Choose relevance, newest first, or oldest first explicitly.","type":"string","enum":["received_desc","received_asc","relevance"]},"folderId":{"description":"Opaque folder ID from list_mail_folders. Requires the same accountId because folders belong to one mailbox.","type":"string","minLength":1,"maxLength":2048},"limit":{"type":"integer","minimum":1,"maximum":50},"cursor":{"type":"string","maxLength":4096}},"additionalProperties":false}},{"name":"get_email","description":"Read a message body and attachment metadata by its opaque message ID. freshness.checkedAt is the last confirmed mailbox check; a recent value remains usable within the thirty-minute provider-latency tolerance even if freshness.stale or freshness.refreshing is true. Missing checkedAt means freshness is unknown, not that the message body is old. Set waitForFresh only when the user explicitly asks for a live refresh; a bounded timeout returns the cached body and does not by itself indicate failure. Reading does not mark the message as read.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."},"waitForFresh":{"description":"Wait briefly for a provider refresh instead of immediately returning a cached copy. Check the returned freshness timestamps and stale/refreshing flags.","type":"boolean"},"maxWaitMs":{"description":"Maximum refresh wait in milliseconds (up to 15000). At the deadline, a cached copy may be returned with freshness metadata; this is not a guarantee of a fresh response.","type":"integer","minimum":1,"maximum":15000}},"required":["accountId","messageId"],"additionalProperties":false}},{"name":"get_thread","description":"Fetch a complete bounded mail thread directly from the provider. `complete:true` confirms the thread was not truncated; threads beyond safe provider bounds return a retryable error. Messages may include RFC Message-ID, In-Reply-To, and References fields; scope RFC IDs by accountId because they are not globally unique.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":2048}},"required":["accountId","threadId"],"additionalProperties":false}},{"name":"get_cached_thread","description":"Read only the durable mailbox cache; this tool never calls IMAP or another provider. `status:'ok'` and `complete:true` mean the cached thread graph is complete. `cache.stale` is a compatibility alias for `cache.threadStale`, which describes that thread snapshot; account-wide mailbox freshness is separate in `cache.mailboxFreshness.status` (`fresh`, `stale`, or `unknown`). An unknown mailbox watermark is not evidence that cached mail is stale, and only a `stale` state should be described as delayed. `not_cached` and `incomplete` are not proof that the mailbox has no other messages. `checkpoint.complete` describes account-wide folder watermark coverage, separately from thread completeness; inspect `checkpoint.gaps` when a CRM decision needs complete history.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":2048}},"required":["accountId","threadId"],"additionalProperties":false}},{"name":"get_cached_message","description":"Read one exact message from the durable cache without contacting a provider or queuing a refresh. `status:'ok'` means the full message body and linkage metadata are cached. `body_pending` means the message is known but its body is not loaded yet; `not_cached` means no exact cached body is available; these states may be retried. `unsupported` with failureCode `message_body_oversize` is a durable terminal per-message gap: record it and continue with later mailbox-feed events, without retrying the body read.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."}},"required":["accountId","messageId"],"additionalProperties":false}},{"name":"request_cached_thread_refresh","description":"Queue an asynchronous refresh of one cached thread. This returns after durable queue admission and never waits for a provider read; poll `get_cached_thread` later for the resulting messages and completeness state.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"threadId":{"type":"string","minLength":1,"maxLength":2048}},"required":["accountId","threadId"],"additionalProperties":false}},{"name":"find_cached_thread_by_rfc_message_id","description":"Resolve an exact RFC Message-ID using only durable mailbox cache. This never searches the provider. `found` returns cached opaque message/thread IDs, but does not prove that the thread body is complete; queue `request_cached_thread_refresh` and then poll `get_cached_thread`. `not_cached` is not proof that the provider mailbox has no matching message. RFC IDs are scoped to the selected mailbox.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"rfcMessageId":{"type":"string","minLength":5,"maxLength":998,"pattern":"^<[^<>\\s@]+@[^<>\\s@]+>$","description":"Exact RFC Message-ID returned by send_email or reply_to_email. It is searched only within the supplied accountId."}},"required":["accountId","rfcMessageId"],"additionalProperties":false}},{"name":"request_cached_rfc_thread_lookup","description":"Queue a durable, idempotent RFC Message-ID lookup for background provider resolution. This returns immediately without provider I/O; poll `find_cached_thread_by_rfc_message_id` later, then queue `request_cached_thread_refresh` if a thread is found. A negative or not-cached result is not proof that the mailbox has no match. RFC IDs stay scoped to accountId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"rfcMessageId":{"type":"string","minLength":5,"maxLength":998,"pattern":"^<[^<>\\s@]+@[^<>\\s@]+>$","description":"Exact RFC Message-ID returned by send_email or reply_to_email. It is searched only within the supplied accountId."}},"required":["accountId","rfcMessageId"],"additionalProperties":false}},{"name":"search_cached_threads_by_recipient","description":"Search only the durable OpenSearch metadata subset for exact participant email matches. This never contacts a mail provider. Results always have `status:'partial'` and `complete:false`; an empty page is not proof that the mailbox has no matches. `cache.mailboxFreshness.status` is `fresh`, `stale`, or `unknown`; unknown means the mailbox checkpoint cannot prove its age, not that returned matches are stale. Continue with the opaque `nextCursor` when present, and use `get_cached_thread` plus the asynchronous refresh request before importing a selected thread.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"recipientEmail":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"limit":{"type":"integer","minimum":1,"maximum":50},"cursor":{"type":"string","maxLength":16384}},"required":["accountId","recipientEmail"],"additionalProperties":false}},{"name":"find_message_by_rfc_message_id","description":"Find an exact RFC Message-ID in one selected mailbox and return its opaque message/thread IDs. This searches mailbox headers across folders, verifies exact equality after IMAP search, and requires read access only.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"rfcMessageId":{"type":"string","minLength":5,"maxLength":998,"pattern":"^<[^<>\\s@]+@[^<>\\s@]+>$","description":"Exact RFC Message-ID returned by send_email or reply_to_email. It is searched only within the supplied accountId."}},"required":["accountId","rfcMessageId"],"additionalProperties":false}},{"name":"search_threads_by_recipient","description":"Find thread candidates in one selected mailbox by exact participant email across selectable folders, excluding Drafts, Trash, and Junk. Returns metadata only, capped at 50 threads. Verify each candidate with get_thread before importing it. `complete:false` means folder, scan, or result bounds left part of this search scope unsearched; do not treat it as no matches.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"recipientEmail":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"limit":{"type":"integer","minimum":1,"maximum":50}},"required":["accountId","recipientEmail"],"additionalProperties":false}},{"name":"get_attachment","description":"Fetch one attachment on demand. The file is returned as an embedded MCP resource; metadata includes its safe filename, MIME type, and size.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."},"attachmentId":{"type":"string","minLength":1,"maxLength":2048}},"required":["accountId","messageId","attachmentId"],"additionalProperties":false}},{"name":"create_draft","description":"Create an unsent draft in one connected mailbox. Supply a stable operationId and reuse it only to retry the exact same draft. Returns a queued operation immediately; this is not confirmation of provider completion. Poll get_mail_action with the returned operationId. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"to":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"cc":{"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"bcc":{"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"subject":{"type":"string","maxLength":998},"textBody":{"type":"string","maxLength":100000},"htmlBody":{"type":"string","maxLength":200000},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."}},"required":["accountId","to","subject","operationId"],"additionalProperties":false}},{"name":"send_draft","description":"Send the exact saved version of a provider-backed draft, including its saved attachments. Before calling, inspect the draft and verify its recipients, subject, body, and attachments. Files attached in SuperMailbox webmail are saved in your mailbox provider. Supply a stable operationId and reuse it only to retry this exact send; an uncertain result must not be retried with a new operationId. Returns a queued operation immediately; this is not confirmation of provider completion. Poll get_mail_action with the returned operationId. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"draftId":{"type":"string","minLength":1,"maxLength":2048,"description":"Worker-managed draft ID returned by search_emails, get_email, create_draft, or an action result."},"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Exact draft version returned by search_emails, get_email, or create_draft. Sending fails if the saved draft changed."},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["accountId","draftId","expectedVersion","operationId"],"additionalProperties":false}},{"name":"send_email","description":"Send email using the selected mailbox. ChatGPT-selected files can be attached with attachments; compatible MCP clients can pass direct public HTTPS links using attachmentUrls. Attachments are downloaded for this send and their bytes are not persisted by SuperMailbox. Each file is limited to 10 MiB; both parameters together allow at most 20 files and 25 MiB total. Supply a stable operationId and reuse it for retries of this exact message; reusing it with different content is rejected. An uncertain SMTP attempt is never automatically sent again. Without attachments, returns a queued operation; poll get_mail_action for completion. With attachments, returns the provider result directly. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"to":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"cc":{"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"bcc":{"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"subject":{"type":"string","maxLength":998},"textBody":{"type":"string","maxLength":100000},"htmlBody":{"type":"string","maxLength":200000},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attachments":{"description":"Optional user-selected attachments. Up to 20 files are accepted; each is limited to 10 MiB and all files together to 25 MiB.","maxItems":20,"type":"array","items":{"type":"object","properties":{"download_url":{"type":"string","minLength":1,"maxLength":8192},"file_id":{"type":"string","minLength":1,"maxLength":256},"mime_type":{"type":"string","maxLength":256},"file_name":{"type":"string","maxLength":1024}},"required":["download_url","file_id"],"additionalProperties":false}},"attachmentUrls":{"description":"Optional direct public HTTPS attachment links from MCP clients that do not support file inputs. Set fileName explicitly when needed; the URL path is never used as the attachment name. URLs must use port 443, resolve only to public IP addresses, and not redirect. Combined with attachments, at most 20 files and 25 MiB total are accepted. Files are fetched for this send and are not stored by SuperMailbox.","maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":8192},"fileName":{"type":"string","minLength":1,"maxLength":1024},"mimeType":{"type":"string","maxLength":256}},"required":["url"],"additionalProperties":false}},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."}},"required":["accountId","to","subject","operationId"],"additionalProperties":false}},{"name":"reply_to_email","description":"Reply to a message and optionally attach ChatGPT-selected files with attachments or direct public HTTPS links with attachmentUrls. Files are fetched for this reply and their bytes are not persisted by SuperMailbox. Each is limited to 10 MiB; both parameters together allow at most 20 files and 25 MiB total. Supply a stable operationId and reuse it only for retries of this exact reply. An uncertain SMTP attempt is never automatically sent again. Without attachments, returns a queued operation; poll get_mail_action for completion. With attachments, returns the provider result directly. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."},"textBody":{"type":"string","minLength":1,"maxLength":100000},"htmlBody":{"type":"string","maxLength":200000},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyAll":{"type":"boolean"},"attachments":{"description":"Optional user-selected attachments. Up to 20 files are accepted; each is limited to 10 MiB and all files together to 25 MiB.","maxItems":20,"type":"array","items":{"type":"object","properties":{"download_url":{"type":"string","minLength":1,"maxLength":8192},"file_id":{"type":"string","minLength":1,"maxLength":256},"mime_type":{"type":"string","maxLength":256},"file_name":{"type":"string","maxLength":1024}},"required":["download_url","file_id"],"additionalProperties":false}},"attachmentUrls":{"description":"Optional direct public HTTPS attachment links from MCP clients that do not support file inputs. Set fileName explicitly when needed; the URL path is never used as the attachment name. URLs must use port 443, resolve only to public IP addresses, and not redirect. Combined with attachments, at most 20 files and 25 MiB total are accepted. Files are fetched for this send and are not stored by SuperMailbox.","maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":8192},"fileName":{"type":"string","minLength":1,"maxLength":1024},"mimeType":{"type":"string","maxLength":256}},"required":["url"],"additionalProperties":false}}},"required":["accountId","messageId","operationId","textBody"],"additionalProperties":false}},{"name":"forward_email","description":"Forward a message with an optional note and quote. Original attachments are omitted by default; set includeOriginalAttachments:true to add them. Attach ChatGPT-selected files with attachments or pass direct public HTTPS links with attachmentUrls. User-supplied files are fetched for this forward and their bytes are not persisted by SuperMailbox. Each is limited to 10 MiB; both input parameters together allow at most 20 files and 25 MiB total. Without attachments, returns a queued operation; poll get_mail_action for completion. With attachments, returns the provider result directly. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."},"to":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"cc":{"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"bcc":{"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"textBody":{"type":"string","maxLength":100000},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"includeOriginalAttachments":{"description":"Explicitly include attachments from the message being forwarded. Requires the mail.attachments.read permission; defaults to false.","type":"boolean"},"attachments":{"description":"Optional user-selected attachments. Up to 20 files are accepted; each is limited to 10 MiB and all files together to 25 MiB.","maxItems":20,"type":"array","items":{"type":"object","properties":{"download_url":{"type":"string","minLength":1,"maxLength":8192},"file_id":{"type":"string","minLength":1,"maxLength":256},"mime_type":{"type":"string","maxLength":256},"file_name":{"type":"string","maxLength":1024}},"required":["download_url","file_id"],"additionalProperties":false}},"attachmentUrls":{"description":"Optional direct public HTTPS attachment links from MCP clients that do not support file inputs. Set fileName explicitly when needed; the URL path is never used as the attachment name. URLs must use port 443, resolve only to public IP addresses, and not redirect. Combined with attachments, at most 20 files and 25 MiB total are accepted. Files are fetched for this send and are not stored by SuperMailbox.","maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":8192},"fileName":{"type":"string","minLength":1,"maxLength":1024},"mimeType":{"type":"string","maxLength":256}},"required":["url"],"additionalProperties":false}}},"required":["accountId","messageId","operationId","to"],"additionalProperties":false}},{"name":"mark_email_read","description":"Set the read state of a message. Returns a queued operation immediately; this is not confirmation of provider completion. Poll get_mail_action with the returned operationId. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."},"isRead":{"type":"boolean"},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."}},"required":["accountId","messageId","isRead"],"additionalProperties":false}},{"name":"set_email_starred","description":"Set whether an email is starred. Returns a queued operation immediately; this is not confirmation of provider completion. Poll get_mail_action with the returned operationId. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."},"isStarred":{"type":"boolean"},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."}},"required":["accountId","messageId","isStarred"],"additionalProperties":false}},{"name":"archive_email","description":"Archive a message from its current folder. Returns a queued operation immediately; this is not confirmation of provider completion. Poll get_mail_action with the returned operationId. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."}},"required":["accountId","messageId"],"additionalProperties":false}},{"name":"move_email","description":"Move a message to another folder. Returns a queued operation immediately; this is not confirmation of provider completion. Poll get_mail_action with the returned operationId. Never retry an uncertain send with a new operationId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"messageId":{"type":"string","minLength":1,"maxLength":2048,"description":"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."},"destinationFolderId":{"type":"string","minLength":1,"maxLength":2048},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."}},"required":["accountId","messageId","destinationFolderId"],"additionalProperties":false}},{"name":"get_mail_action","description":"Get the status of an accepted mail action. Only completed confirms provider success; uncertain means do not repeat a send automatically.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","minLength":1,"maxLength":256},"operationId":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","description":"High-entropy stable idempotency key, such as a UUID. Reuse the same value only when retrying that exact send."}},"required":["accountId","operationId"],"additionalProperties":false}},{"name":"list_mail_rules","description":"List SuperMailbox rules for a connected mailbox. Rules apply only to new incoming mail, in creation order; the first enabled match wins. These are SuperMailbox rules, not provider-native filters.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"description":"Limit results to one connected mailbox.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false}},{"name":"create_mail_rule","description":"Create a SuperMailbox rule for future incoming mail. At least one sender, recipient or subject condition is required; all supplied conditions must match. The first enabled matching rule wins. Actions may move future messages to another folder, Trash, Junk, or add a supported Gmail label. This does not create a provider-native filter or change historical mail.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Connected mailbox ID returned by list_mail_accounts."},"enabled":{"type":"boolean"},"conditions":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":320},"to":{"type":"string","minLength":1,"maxLength":320},"subject":{"type":"string","minLength":1,"maxLength":998}},"additionalProperties":false},"action":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"move"},"folderId":{"type":"string","minLength":1,"maxLength":4096}},"required":["type","folderId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"label"},"folderId":{"type":"string","minLength":1,"maxLength":4096}},"required":["type","folderId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"trash"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"spam"}},"required":["type"],"additionalProperties":false}]}},"required":["name","accountId","enabled","conditions","action"],"additionalProperties":false}},{"name":"update_mail_rule","description":"Replace a SuperMailbox rule. It affects new incoming mail only; the first enabled matching rule wins. Set enabled=false to pause it, including while billing is past due or the mailbox is offline. Re-enabling establishes a fresh new-mail boundary. This is not a provider-native filter.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Rule ID returned by list_mail_rules."},"name":{"type":"string","minLength":1,"maxLength":100},"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Connected mailbox ID returned by list_mail_accounts."},"enabled":{"type":"boolean"},"conditions":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":320},"to":{"type":"string","minLength":1,"maxLength":320},"subject":{"type":"string","minLength":1,"maxLength":998}},"additionalProperties":false},"action":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"move"},"folderId":{"type":"string","minLength":1,"maxLength":4096}},"required":["type","folderId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"label"},"folderId":{"type":"string","minLength":1,"maxLength":4096}},"required":["type","folderId"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"trash"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"spam"}},"required":["type"],"additionalProperties":false}]}},"required":["id","name","accountId","enabled","conditions","action"],"additionalProperties":false}},{"name":"delete_mail_rule","description":"Delete a SuperMailbox rule so it will no longer act on future incoming mail. Existing messages are not changed. This remains available if the mailbox is offline or billing is past due. These are SuperMailbox rules, not provider-native filters.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Rule ID returned by list_mail_rules."}},"required":["id"],"additionalProperties":false}},{"name":"list_ai_agents","description":"List your AI agents and their settings. Results are limited to your account and omit saved AI provider credentials. Requires the separate OAuth scope ai_agents:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Connected mailbox ID returned by list_mail_accounts."}},"additionalProperties":false}},{"name":"list_ai_agent_models","description":"List model choices available to your agents, including the model-specific Intelligence levels. This returns labels and opaque option IDs only, never API keys or subscription tokens. Requires the separate OAuth scope ai_agents:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"create_ai_agent","description":"Create an AI agent for new incoming mail. It stays paused unless enabled is explicitly true. Configure message visibility conditions, instructions, model, and mail-action permissions. Agent permissions cannot exceed your own mailbox access. Requires the separate OAuth scope ai_agents:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Connected mailbox ID returned by list_mail_accounts."},"name":{"type":"string","minLength":1,"maxLength":80},"enabled":{"type":"boolean"},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The same mailbox visibility conditions used when sharing a mailbox. All include rules must match; any exclusion wins."},"instructions":{"type":"string","minLength":1,"maxLength":12000},"modelOptionId":{"description":"Opaque model option ID returned by list_ai_agent_models; do not send provider credentials.","anyOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"null"}]},"reasoningEffort":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"webSearchEnabled":{"type":"boolean"},"permissions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Message permissions for this agent. Omit to use the owner's full-access default. This cannot grant mailbox settings or sharing administration."}},"required":["accountId","name","enabled","conditions","instructions"],"additionalProperties":false}},{"name":"update_ai_agent","description":"Replace an AI agent's configuration. Set enabled=false to pause it. Model selection uses an opaque option ID from list_ai_agent_models; saved API keys and provider connections cannot be changed here. Requires the separate OAuth scope ai_agents:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Agent ID returned by list_ai_agents."},"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Connected mailbox ID returned by list_mail_accounts."},"name":{"type":"string","minLength":1,"maxLength":80},"enabled":{"type":"boolean"},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The same mailbox visibility conditions used when sharing a mailbox. All include rules must match; any exclusion wins."},"instructions":{"type":"string","minLength":1,"maxLength":12000},"modelOptionId":{"description":"Opaque model option ID returned by list_ai_agent_models; do not send provider credentials.","anyOf":[{"type":"string","minLength":1,"maxLength":160},{"type":"null"}]},"reasoningEffort":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"webSearchEnabled":{"type":"boolean"},"permissions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Message permissions for this agent. Omit to use the owner's full-access default. This cannot grant mailbox settings or sharing administration."}},"required":["id","accountId","name","enabled","conditions","instructions"],"additionalProperties":false}},{"name":"set_ai_agent_enabled","description":"Pause an agent or explicitly turn it on. Pausing remains available if the AI Agents add-on is inactive; enabling requires an active add-on and ready runtime. Requires the separate OAuth scope ai_agents:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Agent ID returned by list_ai_agents."},"enabled":{"type":"boolean"}},"required":["id","enabled"],"additionalProperties":false}},{"name":"delete_ai_agent","description":"Delete one of your AI agents. This does not delete email or cancel an AI Agents subscription. Requires the separate OAuth scope ai_agents:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Agent ID returned by list_ai_agents."}},"required":["id"],"additionalProperties":false}},{"name":"list_ai_agent_runs","description":"Read a page of AI agent run history for your account. Use this to see which new messages were handled and the recorded outcomes. Requires the separate OAuth scope ai_agents:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Connected mailbox ID returned by list_mail_accounts."},"agentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Agent ID returned by list_ai_agents."},"before":{"type":"string","minLength":1,"maxLength":512,"pattern":"^[A-Za-z0-9_-]+$"},"limit":{"type":"integer","minimum":1,"maximum":100}},"additionalProperties":false}},{"name":"get_ai_agent_run","description":"Read one of your AI agent run records and its recorded actions. This does not replay the run or perform mailbox actions. Requires the separate OAuth scope ai_agents:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Run ID returned by list_ai_agent_runs."}},"required":["id"],"additionalProperties":false}},{"name":"list_ai_connections","description":"List your AI provider profiles and external MCP connections. This reports connection state only and never returns API keys, OAuth tokens, or request headers. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"open_byok_setup","description":"Open SuperMailbox AI setup to enter or rotate an API key securely. API keys must not be sent in an MCP message or tool argument. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"start_chatgpt_connection","description":"Start or reconnect your ChatGPT subscription using a short-lived device code. Complete the sign-in at the returned OpenAI verification page; no account password or token is requested here. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"get_chatgpt_connection_status","description":"Check the state of one short-lived ChatGPT device-code sign-in without replaying it. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sessionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sessionId"],"additionalProperties":false}},{"name":"disconnect_ai_connection","description":"Disconnect one of your BYOK or ChatGPT profiles and revoke its runtime access. This cannot remove the built-in AI profile. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["profileId","expectedRevision"],"additionalProperties":false}},{"name":"connect_external_mcp","description":"Connect an external MCP server. Only unauthenticated or browser-based OAuth is supported through MCP. Header credentials and bearer tokens must be configured in SuperMailbox AI setup. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"endpointUrl":{"type":"string","maxLength":2048,"format":"uri"},"authMode":{"type":"string","enum":["none","oauth"]}},"required":["name","endpointUrl","authMode"],"additionalProperties":false}},{"name":"reconnect_external_mcp","description":"Reauthorize an existing OAuth MCP connection that needs reauthentication. This preserves its connector ID and existing AI-profile attachments and never creates a duplicate. Complete the provider sign-in at the returned URL; no API key, header or extra permission is accepted here. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"connectorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["connectorId"],"additionalProperties":false}},{"name":"disconnect_external_mcp","description":"Disconnect one of your external MCP servers and remove its attachments from your AI profiles. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"connectorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["connectorId"],"additionalProperties":false}},{"name":"attach_external_mcp_to_profile","description":"Attach ready external MCP connectors to one of your runtime profiles. Use connector IDs from list_ai_connections. Sending headers or credentials is not supported. Requires the separate OAuth scope ai_connections:manage.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedRevision":{"type":"integer","minimum":1,"maximum":9007199254740991},"connectorIds":{"maxItems":64,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["profileId","expectedRevision","connectorIds"],"additionalProperties":false}}],"resources":[],"prompts":[]}