Skip to main content
Glama
Sendmux Email Inbox API + Sending

Sendmux Email Inbox API + Sending

Official
by qubrics

Send Mailbox Message

mailbox_send_message

Send an email from the authenticated mailbox with recipients, subject, body, and attachments by passing uploaded blob IDs; include an Idempotency-Key for safe retries.

Instructions

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mailbox_send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoVisible copied recipients.
toNoPrimary recipients. Supply 1 to 50 recipients in total across To, Cc and Bcc.
bccNoHidden copied recipients.
fromNoSender address. Defaults to mailbox identity.
subjectNoSubject line; defaults to empty.
reply_toNoReply-To recipients.
html_bodyNoHTML body.
text_bodyNoPlain text body.
mailbox_idNoMailbox public ID to target when the credential grants access to more than one mailbox. Omit when the credential is scoped to exactly one mailbox.
attachmentsNoAttachments to send with the message.
custom_headersNoCustom X-* headers to include. Mailbox writes reject X-SES-TENANT, X-SES-CONFIGURATION-SET and X-SES-MESSAGE-TAGS case-insensitively.
Idempotency-KeyNoClient-chosen unique key to safely retry the request. Cached for 24h per (mailbox, endpoint, key). Different body with same key returns 409 idempotency_conflict.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.0.17
    • changedInput schema / properties / bcc / description
      Previous value: -"BCC recipients."New value: +"Hidden copied recipients."
    • addedInput schema / properties / bcc / maxItems
      Added value: +50
    • changedInput schema / properties / cc / description
      Previous value: -"CC recipients."New value: +"Visible copied recipients."
    • addedInput schema / properties / cc / maxItems
      Added value: +50
    • changedInput schema / properties / custom_headers / description
      Previous value: -"Custom headers to include."New value: +"Custom X-* headers to include. Mailbox writes reject X-SES-TENANT, X-SES-CONFIGURATION-SET and X-SES-MESSAGE-TAGS case-insensitively."
    • changedInput schema / properties / subject / description
      Previous value: -"Subject line for the outgoing email."New value: +"Subject line; defaults to empty."
    • addedInput schema / properties / subject / maxLength
      Added value: +998
    • changedInput schema / properties / to / description
      Previous value: -"Primary recipients."New value: +"Primary recipients. Supply 1 to 50 recipients in total across To, Cc and Bcc."
    • addedInput schema / properties / to / maxItems
      Added value: +50
    • removedInput schema / properties / to / minItems
      Removed value: -1
  2. Changed4 schema fields changedv1.0.8
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / properties
      Added value: +{
      +  "result": {
      +    "allOf": [
      +      {
      +        "properties": {
      +          "meta": {
      +            "additionalProperties": {},
      +            "properties": {},
      +            "type": "object"
      +          },
      +          "ok": {
      +            "enum": [
      +              true
      +            ],
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "ok",
      +          "meta"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "data": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "message_id": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "queued"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "message_id",
      +              "status"
      +            ],
      +            "type": "object"
      +          },
      +          "meta": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "request_id": {
      +                "example": "req_clxxxxxxxxxxxxxxxxxxxxxxxxx",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "request_id"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "data"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "unevaluatedProperties": {
      +      "not": {}
      +    },
      +    "x-fastmcp-top-level-schema": "MailboxSendResultResponse"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "result"
      +]
  3. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds real operational context beyond them: the two-step attachment flow with an alternative for small inline payloads, and the 24h retry-safety contract implied by the Idempotency-Key. The instruction to supply an Idempotency-Key is consistent with idempotentHint=false, since it tells the agent how to achieve safe retries on a non-idempotent endpoint rather than contradicting the annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, action first, with the prerequisite workflow and retry advice front-loaded and no filler. Every sentence maps to something the agent must do differently at call time.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Rich structured data (full schema coverage, annotations, output schema) carries most of the burden, and the description covers the two non-obvious mechanics. However, for a 12-parameter, nested-object, open-world send tool with dozens of overlapping siblings, the absence of any sibling disambiguation or delivery-side-effect note (recipient limits, sender defaults are only in schema) leaves a meaningful gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every parameter including blob_id provenance, the mailbox_id targeting rule, and the Idempotency-Key conflict behavior. The description's attachment guidance largely restates schema content, adding only the ordering ('call ... first ... then pass'), so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('send a message from the authenticated mailbox'), so the core action is unambiguous. It even names the prerequisite sibling mailbox_upload_attachment, but it never distinguishes itself from other send paths in the sibling list (mailbox_send_draft, qubrics_mailbox_send_message, sending_send_email), leaving an agent to infer which send tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit conditional guidance for two cases: attachments (upload first, then pass blob_id) and retries (include an Idempotency-Key). What is missing is the primary routing decision — when to compose-and-send here versus creating a draft or using the sending_* family — which is the most consequential choice an agent faces with this sibling set.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools