Sendmux Email Inbox API + Sending
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SENDMUX_API_KEY | No | Fallback API key for single-key setups; smx_mbx_* or smx_root_* | |
| SENDMUX_MCP_HOST | No | HTTP host | 127.0.0.1 |
| SENDMUX_MCP_PATH | No | HTTP path | /mcp |
| SENDMUX_MCP_PORT | No | HTTP port | 8765 |
| OPENAPI_INPUT_DIR | No | Alternative OpenAPI input directory | |
| SENDMUX_APP_BASE_URL | No | App API base URL | https://app.sendmux.ai/api/v1 |
| SENDMUX_MCP_SURFACES | No | Comma-separated list of surfaces (mailbox, management, sending) for combined server | |
| SENDMUX_MCP_TRANSPORT | No | Transport (stdio, http, streamable-http) | stdio |
| SENDMUX_MAILBOX_API_KEY | No | Mailbox API key (smx_mbx_*), required when mailbox surface is selected | |
| SENDMUX_MCP_APP_OPENAPI | No | Override app OpenAPI snapshot path or URL | |
| SENDMUX_SENDING_API_KEY | No | Sending API key (smx_mbx_*), required when sending surface is selected | |
| SENDMUX_SENDING_BASE_URL | No | Sending API base URL | https://smtp.sendmux.ai/api/v1 |
| SENDMUX_MANAGEMENT_API_KEY | No | Management API key (smx_root_*), required when management surface is selected | |
| SENDMUX_MCP_ALLOWED_ORIGINS | No | Allowed browser origins (comma-separated) | |
| SENDMUX_MCP_SENDING_OPENAPI | No | Override sending OpenAPI snapshot path or URL | |
| SENDMUX_MCP_TIMEOUT_SECONDS | No | Request timeout in seconds | 30 |
| SENDMUX_MCP_HTTP_BEARER_TOKEN | No | Bearer token for HTTP transport (required unless SENDMUX_MCP_ALLOW_UNAUTHENTICATED_HTTP is true) | |
| SENDMUX_MCP_OPENAPI_INPUT_DIR | No | Override OpenAPI input directory | |
| SENDMUX_MCP_RETRY_MAX_ATTEMPTS | No | Maximum retry attempts | 3 |
| SENDMUX_MCP_ALLOW_UNAUTHENTICATED_HTTP | No | Allow unauthenticated HTTP connections | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mailbox_get_attachmentA | Use this after finding a message attachment. It returns metadata plus a fresh short-lived download_url for that exact attachment; fetch the URL promptly, and call this tool again if it expires. |
| mailbox_read_attachmentA | Use this after finding a message attachment when you need the attachment contents. Text-like attachments are downloaded server-side and returned as text, so agents do not need a generic web_fetch tool. Binary or oversized attachments return metadata plus a fresh download link. |
| mailbox_upload_attachmentA | Use this before sending a mailbox attachment. For real files set presign_upload_url=true with filename, content_type, and size_bytes, then PUT the file to the returned short-lived URL promptly and send the returned blob_id. Inline content_base64 is a last resort for tiny agent-authored files only and is capped at 32 KiB decoded. |
| mailbox_wait_for_messageA | Use this to wait briefly for new mail instead of manual polling. It polls for up to 25 seconds, returns a matching message with attachment metadata when found, or a clean no_message result so you can call again. |
| mailbox_list_calendar_eventsA | List events in the selected mailbox or look up a caller-held UID. Requires calendar.read. UID search is eventually consistent: an empty immediate lookup leaves an uncertain create unresolved and never authorises repeating it. |
| mailbox_create_calendar_eventA | Save an event without invitations or email reminders. Requires calendar.write. Retain the required UID before dispatch; after an uncertain result reconcile by UID lookup and never repeat the create after an empty immediate lookup. |
| mailbox_get_calendar_eventA | Read one event before editing or deleting it. Requires calendar.read. Retain its current concurrency token for the next conditional change. |
| mailbox_delete_calendar_eventA | Delete an event only when the user asks. Requires calendar.write and the reviewed If-Match value. This does not send cancellation emails; reload after a conflict. |
| mailbox_update_calendar_eventA | Edit an event without sending invitations or email reminders. Requires calendar.write and the reviewed If-Match value. Reload after a conflict before making another change. |
| mailbox_get_calendar_event_changesA | Read bounded event changes from a retained state. Requires calendar.read. When sync_required is true, perform a full event resync; these coalesced changes are not a complete activity history. |
| mailbox_list_calendarsA | List calendars in the selected mailbox. Requires calendar.read. Use a small limit and continue with the returned cursor. |
| mailbox_create_calendarA | Create a private calendar only when the user asks. Requires calendar.write. This does not send invitations or email reminders. |
| mailbox_get_calendarA | Read one calendar in the selected mailbox. Requires calendar.read. |
| mailbox_delete_calendarA | Requires calendar.write. Fetch the calendar and pass its ETag in If-Match. A calendar containing events returns 409 conflict. |
| mailbox_get_changesA | Use this to resume mailbox sync from a prior state cursor. Do not use it for ad hoc message search. |
| mailbox_get_connectionA | Validate the current Mailbox credential and read its team, connection label, permissions and authorised mailboxes. No mailbox selection or mailbox storage access is required. |
| mailbox_list_draftsA | List saved drafts in the selected inbox, newest first. Requires mailbox.read. Use a small limit and continue with the returned cursor. |
| mailbox_create_draftA | Save a message for review without sending it. Requires mailbox.read and mailbox.drafts.write. Use source.action for reply, reply_all, forward or adopt; explicit content overrides prepared defaults. Adoption requires Idempotency-Key; reuse it when retrying the same create request. |
| mailbox_get_draftA | Read a saved draft and its current revision before editing or sending. Requires mailbox.read. Keep the revision and schedule version for later changes. |
| mailbox_delete_draftA | Delete a saved draft only when the user asks. Requires mailbox.read and mailbox.drafts.write. Deletion finishes in the background; a send already in progress cannot be deleted. |
| mailbox_update_draftA | Edit a saved draft without sending it. Requires mailbox.read and mailbox.drafts.write. Pass the reviewed expected_revision; reload after a conflict before making another edit. |
| mailbox_control_draft_scheduleA | Reschedule or cancel a saved draft send only when the user asks. Requires mailbox.read and email.send. Pass the current expected_revision and expected_schedule_version; scheduled_for=null cancels. Cancellation fails once sending has begun. |
| mailbox_send_draftA | Send only the saved revision the user approved. Requires mailbox.read and email.send. Pass expected_revision; to schedule within 30 days also pass scheduled_for and expected_schedule_version. After cancelling a schedule, include the current schedule version. |
| mailbox_list_foldersA | Use this to inspect mailbox folders before filing or moving messages. It is read-only. |
| mailbox_list_identitiesA | Use this to list sender identities available to the mailbox. Prefer mailbox_get_identity when only the default identity is needed. |
| mailbox_get_identityA | Use this to read the mailbox sender identity and display name. Use it before composing replies when the sender should match the mailbox identity. |
| mailbox_update_identityA | Use this only when the user explicitly asks to change sender identity details. Do not use it for one-off message composition. |
| mailbox_list_granted_mailboxesA | Use this first when the token can access more than one mailbox. It searches only the mailboxes granted to this connection and returns IDs to pass as mailbox_id. |
| mailbox_get_meA | Use this to identify the authenticated mailbox before acting on mail. It returns profile details for the mailbox key currently in use. |
| mailbox_list_messagesA | Use this to scan mailbox messages by cursor without fetching full bodies. Filter by folder_id, keyword/not_keyword, dates, sender/recipient, text query, unread state, or has_attachment; attachment metadata includes a short-lived download_url. |
| mailbox_batch_delete_messagesA | Use this only when the user explicitly asks to delete messages and supplies or confirms the message IDs. Deletion is a mailbox mutation. |
| mailbox_batch_get_messagesA | Use this when the user supplies several message IDs or a prior search returns multiple candidates. It avoids repeated single-message calls. |
| mailbox_batch_update_messagesA | Use this to mark, flag, move to a folder, or set keywords/labels on multiple messages after the user has confirmed the desired change. Do not use it for read-only tasks. |
| mailbox_get_messageA | Use this to fetch one message summary or detail by message_id. Use mailbox_list_body or mailbox_list_content when the body content is required. |
| mailbox_get_attachment_textA | Read or poll a previously requested attachment extraction. Requires mailbox.read. This does not start conversion; cache expiry or source removal returns not_found. Check status and outcome before using text. |
| mailbox_request_attachment_textA | Extract readable text from an attachment up to 7500000 bytes at no extra charge. Requires mailbox.read. Repeated requests reuse the current extraction for 24 hours. OCR is unavailable; check status and outcome, and use the original download if extraction cannot complete. |
| mailbox_list_bodyA | Use this to read the raw or simplified body for a known message_id. Prefer it when the task needs message text but not every MIME detail. |
| mailbox_list_contentA | Use this to read structured content for a known message_id. Prefer it when headers, participants, or body parts affect the answer. |
| mailbox_count_messagesA | Use this to count messages matching mailbox filters without listing every result. Follow with mailbox_list_messages only when examples are needed. |
| mailbox_search_message_snippetsA | Use this to search message snippets by query text. Narrow with folder_id, keyword/not_keyword, dates, sender/recipient, unread state, or has_attachment; use returned message IDs with a read tool before making content-specific claims. |
| mailbox_send_messageA | Use this to send a message from the authenticated mailbox. For attachments, call mailbox_upload_attachment first using presign_upload_url or tiny content_base64, then pass the returned blob_id. Include an Idempotency-Key for retries. |
| mailbox_get_sender_choicesB | Intersects current team, inbox and credential policies with provider restrictions and selected delivery groups. Subdomains require separate authorisation. Sending checks these permissions again before submission. |
| mailbox_get_sessionA | Use this before complex mailbox work to discover supported mailbox capabilities, limits, and endpoint metadata. Do not use it for message search. |
| mailbox_list_threadsB | Use this to scan conversation threads without loading every message. Continue with next_cursor only when additional threads are needed. |
| mailbox_get_threadA | Use this to read one thread summary by thread_id. Use mailbox_list_thread_messages when the task needs the messages in the thread. |
| mailbox_list_thread_messagesA | Use this to list messages inside a known thread. Use message body tools only for messages that need full content. |
| qubrics_mailbox_get_attachmentA | Use this after finding a message attachment. It returns metadata plus a fresh short-lived download_url for that exact attachment; fetch the URL promptly, and call this tool again if it expires. |
| qubrics_mailbox_read_attachmentA | Use this after finding a message attachment when you need the attachment contents. Text-like attachments are downloaded server-side and returned as text, so agents do not need a generic web_fetch tool. Binary or oversized attachments return metadata plus a fresh download link. |
| qubrics_mailbox_upload_attachmentA | Use this before sending a mailbox attachment. For real files set presign_upload_url=true with filename, content_type, and size_bytes, then PUT the file to the returned short-lived URL promptly and send the returned blob_id. Inline content_base64 is a last resort for tiny agent-authored files only and is capped at 32 KiB decoded. |
| qubrics_mailbox_wait_for_messageA | Use this to wait briefly for new mail instead of manual polling. It polls for up to 25 seconds, returns a matching message with attachment metadata when found, or a clean no_message result so you can call again. |
| qubrics_mailbox_list_calendar_eventsA | List events in the selected mailbox or look up a caller-held UID. Requires calendar.read. UID search is eventually consistent: an empty immediate lookup leaves an uncertain create unresolved and never authorises repeating it. |
| qubrics_mailbox_create_calendar_eventA | Save an event without invitations or email reminders. Requires calendar.write. Retain the required UID before dispatch; after an uncertain result reconcile by UID lookup and never repeat the create after an empty immediate lookup. |
| qubrics_mailbox_get_calendar_eventA | Read one event before editing or deleting it. Requires calendar.read. Retain its current concurrency token for the next conditional change. |
| qubrics_mailbox_delete_calendar_eventA | Delete an event only when the user asks. Requires calendar.write and the reviewed If-Match value. This does not send cancellation emails; reload after a conflict. |
| qubrics_mailbox_update_calendar_eventA | Edit an event without sending invitations or email reminders. Requires calendar.write and the reviewed If-Match value. Reload after a conflict before making another change. |
| qubrics_mailbox_get_calendar_event_changesA | Read bounded event changes from a retained state. Requires calendar.read. When sync_required is true, perform a full event resync; these coalesced changes are not a complete activity history. |
| qubrics_mailbox_list_calendarsA | List calendars in the selected mailbox. Requires calendar.read. Use a small limit and continue with the returned cursor. |
| qubrics_mailbox_create_calendarA | Create a private calendar only when the user asks. Requires calendar.write. This does not send invitations or email reminders. |
| qubrics_mailbox_get_calendarA | Read one calendar in the selected mailbox. Requires calendar.read. |
| qubrics_mailbox_delete_calendarA | Requires calendar.write. Fetch the calendar and pass its ETag in If-Match. A calendar containing events returns 409 conflict. |
| qubrics_mailbox_get_changesA | Use this to resume mailbox sync from a prior state cursor. Do not use it for ad hoc message search. |
| qubrics_mailbox_get_connectionA | Validate the current Mailbox credential and read its team, connection label, permissions and authorised mailboxes. No mailbox selection or mailbox storage access is required. |
| qubrics_mailbox_list_draftsA | List saved drafts in the selected inbox, newest first. Requires mailbox.read. Use a small limit and continue with the returned cursor. |
| qubrics_mailbox_create_draftA | Save a message for review without sending it. Requires mailbox.read and mailbox.drafts.write. Use source.action for reply, reply_all, forward or adopt; explicit content overrides prepared defaults. Adoption requires Idempotency-Key; reuse it when retrying the same create request. |
| qubrics_mailbox_get_draftA | Read a saved draft and its current revision before editing or sending. Requires mailbox.read. Keep the revision and schedule version for later changes. |
| qubrics_mailbox_delete_draftA | Delete a saved draft only when the user asks. Requires mailbox.read and mailbox.drafts.write. Deletion finishes in the background; a send already in progress cannot be deleted. |
| qubrics_mailbox_update_draftA | Edit a saved draft without sending it. Requires mailbox.read and mailbox.drafts.write. Pass the reviewed expected_revision; reload after a conflict before making another edit. |
| qubrics_mailbox_control_draft_scheduleA | Reschedule or cancel a saved draft send only when the user asks. Requires mailbox.read and email.send. Pass the current expected_revision and expected_schedule_version; scheduled_for=null cancels. Cancellation fails once sending has begun. |
| qubrics_mailbox_send_draftA | Send only the saved revision the user approved. Requires mailbox.read and email.send. Pass expected_revision; to schedule within 30 days also pass scheduled_for and expected_schedule_version. After cancelling a schedule, include the current schedule version. |
| qubrics_mailbox_list_foldersB | Use this to inspect mailbox folders before filing or moving messages. It is read-only. |
| qubrics_mailbox_list_identitiesA | Use this to list sender identities available to the mailbox. Prefer mailbox_get_identity when only the default identity is needed. |
| qubrics_mailbox_get_identityA | Use this to read the mailbox sender identity and display name. Use it before composing replies when the sender should match the mailbox identity. |
| qubrics_mailbox_update_identityA | Use this only when the user explicitly asks to change sender identity details. Do not use it for one-off message composition. |
| qubrics_mailbox_list_granted_mailboxesA | Use this first when the token can access more than one mailbox. It searches only the mailboxes granted to this connection and returns IDs to pass as mailbox_id. |
| qubrics_mailbox_get_meB | Use this to identify the authenticated mailbox before acting on mail. It returns profile details for the mailbox key currently in use. |
| qubrics_mailbox_list_messagesA | Use this to scan mailbox messages by cursor without fetching full bodies. Filter by folder_id, keyword/not_keyword, dates, sender/recipient, text query, unread state, or has_attachment; attachment metadata includes a short-lived download_url. |
| qubrics_mailbox_batch_delete_messagesA | Use this only when the user explicitly asks to delete messages and supplies or confirms the message IDs. Deletion is a mailbox mutation. |
| qubrics_mailbox_batch_get_messagesA | Use this when the user supplies several message IDs or a prior search returns multiple candidates. It avoids repeated single-message calls. |
| qubrics_mailbox_batch_update_messagesA | Use this to mark, flag, move to a folder, or set keywords/labels on multiple messages after the user has confirmed the desired change. Do not use it for read-only tasks. |
| qubrics_mailbox_get_messageA | Use this to fetch one message summary or detail by message_id. Use mailbox_list_body or mailbox_list_content when the body content is required. |
| qubrics_mailbox_get_attachment_textA | Read or poll a previously requested attachment extraction. Requires mailbox.read. This does not start conversion; cache expiry or source removal returns not_found. Check status and outcome before using text. |
| qubrics_mailbox_request_attachment_textA | Extract readable text from an attachment up to 7500000 bytes at no extra charge. Requires mailbox.read. Repeated requests reuse the current extraction for 24 hours. OCR is unavailable; check status and outcome, and use the original download if extraction cannot complete. |
| qubrics_mailbox_list_bodyA | Use this to read the raw or simplified body for a known message_id. Prefer it when the task needs message text but not every MIME detail. |
| qubrics_mailbox_list_contentB | Use this to read structured content for a known message_id. Prefer it when headers, participants, or body parts affect the answer. |
| qubrics_mailbox_count_messagesA | Use this to count messages matching mailbox filters without listing every result. Follow with mailbox_list_messages only when examples are needed. |
| qubrics_mailbox_search_message_snippetsA | Use this to search message snippets by query text. Narrow with folder_id, keyword/not_keyword, dates, sender/recipient, unread state, or has_attachment; use returned message IDs with a read tool before making content-specific claims. |
| qubrics_mailbox_send_messageA | Use this to send a message from the authenticated mailbox. For attachments, call mailbox_upload_attachment first using presign_upload_url or tiny content_base64, then pass the returned blob_id. Include an Idempotency-Key for retries. |
| qubrics_mailbox_get_sender_choicesB | Intersects current team, inbox and credential policies with provider restrictions and selected delivery groups. Subdomains require separate authorisation. Sending checks these permissions again before submission. |
| qubrics_mailbox_get_sessionA | Use this before complex mailbox work to discover supported mailbox capabilities, limits, and endpoint metadata. Do not use it for message search. |
| qubrics_mailbox_list_threadsA | Use this to scan conversation threads without loading every message. Continue with next_cursor only when additional threads are needed. |
| qubrics_mailbox_get_threadA | Use this to read one thread summary by thread_id. Use mailbox_list_thread_messages when the task needs the messages in the thread. |
| qubrics_mailbox_list_thread_messagesB | Use this to list messages inside a known thread. Use message body tools only for messages that need full content. |
| sending_upload_attachmentA | Use this before sending a Sending API attachment. For real files use sending_create_attachment_upload and PUT the file outside model context. Inline content_base64 is a last resort for tiny agent-authored files only and is capped at 32 KiB decoded. |
| sending_create_attachment_uploadA | Use this when a remote or shell-capable agent needs a short-lived upload URL for an outbound Sending API attachment. Provide filename, content_type, and exact size_bytes, PUT the file bytes outside model context with the returned headers, then pass the returned attachment_id to sending_send_email. |
| sending_get_attachmentA | Use this to inspect a temporary Sending attachment_id before sending. It returns metadata only, not file bytes. |
| sending_send_emailA | Use this to send one outbound email through the sending API. For attachments, call sending_upload_attachment first for local/tiny content or sending_create_attachment_upload for delegated file PUTs, then pass attachments as attachment_id refs. Inline base64 is only for tiny generated content. Include an Idempotency-Key so retries do not create duplicate sends. |
| sending_send_email_batchA | Use this to send multiple outbound emails in one request. For attachments, prefer uploaded attachment_id refs; avoid inline base64 except for tiny generated content. Use it only when the user confirms every recipient and message. |
| sending_get_connectionA | Validate the current Sending credential and read its team, connection label and permissions. Requires email.send. This does not send email or check credits or provider readiness. |
| qubrics_sending_upload_attachmentA | Use this before sending a Sending API attachment. For real files use sending_create_attachment_upload and PUT the file outside model context. Inline content_base64 is a last resort for tiny agent-authored files only and is capped at 32 KiB decoded. |
| qubrics_sending_create_attachment_uploadA | Use this when a remote or shell-capable agent needs a short-lived upload URL for an outbound Sending API attachment. Provide filename, content_type, and exact size_bytes, PUT the file bytes outside model context with the returned headers, then pass the returned attachment_id to sending_send_email. |
| qubrics_sending_get_attachmentA | Use this to inspect a temporary Sending attachment_id before sending. It returns metadata only, not file bytes. |
| qubrics_sending_send_emailA | Use this to send one outbound email through the sending API. For attachments, call sending_upload_attachment first for local/tiny content or sending_create_attachment_upload for delegated file PUTs, then pass attachments as attachment_id refs. Inline base64 is only for tiny generated content. Include an Idempotency-Key so retries do not create duplicate sends. |
| qubrics_sending_send_email_batchA | Use this to send multiple outbound emails in one request. For attachments, prefer uploaded attachment_id refs; avoid inline base64 except for tiny generated content. Use it only when the user confirms every recipient and message. |
| qubrics_sending_get_connectionA | Validate the current Sending credential and read its team, connection label and permissions. Requires email.send. This does not send email or check credits or provider readiness. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 104 tools
The set contains literal duplicates: every `mailbox_*` tool is repeated as `qubrics_mailbox_*` (and `sending_*` as `qubrics_sending_*`) with byte-identical descriptions, so an agent has no basis to choose between them. On top of that, several near-variants overlap heavily (mailbox_get_attachment vs mailbox_read_attachment vs mailbox_get_attachment_text vs mailbox_request_attachment_text; list_body vs list_content vs get_message).
Names mix three prefix families (bare `mailbox_`, `qubrics_mailbox_`, `sending_`, `qubrics_sending_`) with no discernible rule for when the prefix is applied. The verb_noun portion is mostly consistent, but the duplicated prefixed/unprefixed twins make the naming scheme arbitrary and unpredictable.
104 tools for what is effectively a ~35-tool mail/calendar/sending API is an extreme mismatch, and most of the excess is pure duplication rather than added capability. This bloats the tool list, wastes context, and multiplies the chance of misselection.
The underlying domain coverage is genuinely broad: messages (list/get/body/content/snippets/count/batch get/update/delete), drafts full lifecycle incl. scheduling, calendar and events CRUD plus change sync, attachments (upload/download/extract), folders, identities, threads, sender choices, and outbound sending with batch. Minor gaps exist (no explicit reply/forward tool outside draft `source.action`, no message move-as-standalone beyond batch update), but core workflows are covered.