Skip to main content
Glama

Fluxmail Cloud

Send email

send_email
DestructiveIdempotent

Send an email from a connected mailbox. There are three modes: direct (to, subject and body), an existing draft (draftId), or a reply (replyToMessageId, optionally with replyAll) that takes its recipients, subject and threading from the original. Repeating a successful send with the same idempotencyKey and arguments returns the saved result instead of sending again. Reusing a key with different arguments, or after a failed or uncertain send, returns an error. Cloud limits bodyText and bodyHtml to 32,768 characters each and attachments to 30 per draft.

Input Schema

NameRequiredDescriptionDefault
ccNoRecipients, each "Name <a@x.com>" or "a@x.com"
toNoRecipients, each "Name <a@x.com>" or "a@x.com"
bccNoRecipients, each "Name <a@x.com>" or "a@x.com"
fromNoConnected address or an available send-as address
draftIdNoSend this existing draft
subjectNoDefaults to "Re: ..." when replying
bodyHtmlNoHTML body
bodyTextNoPlain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines.
replyAllNoWith replyToMessageId: reply to all original recipients
accountIdNoAccount to operate on. Optional when exactly one account is connected.
attachmentsNo
idempotencyKeyYesReuse this key when retrying the same delivery
replyToMessageIdNoMessage being replied to; threads correctly and computes recipients if "to" is omitted

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "accountId": {
      +          "type": "string"
      +        },
      +        "error": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code"
      +          ],
      +          "type": "object"
      +        },
      +        "kind": {
      +          "type": "string"
      +        },
      +        "operationId": {
      +          "type": "string"
      +        },
      +        "result": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "id": {
      +              "type": "string"
      +            },
      +            "threadId": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "threadId"
      +          ],
      +          "type": "object"
      +        },
      +        "status": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "operationId",
      +        "accountId",
      +        "kind",
      +        "status"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. Changed9 schema fields changed
    • changedInput schema / properties / accountId / anyOf
      Previous value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 512,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / attachments / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "content": {
      -          "description": "base64",
      -          "type": "string"
      -        },
      -        "contentId": {
      -          "description": "Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>",
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "disposition": {
      -          "description": "Defaults to attachment",
      -          "enum": [
      -            "inline",
      -            "attachment"
      -          ],
      -          "type": "string"
      -        },
      -        "filename": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "mimeType": {
      -          "minLength": 1,
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "filename",
      -        "mimeType",
      -        "content"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "content": {
      +          "description": "base64",
      +          "type": "string"
      +        },
      +        "contentId": {
      +          "description": "Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>",
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "disposition": {
      +          "description": "Defaults to attachment",
      +          "enum": [
      +            "inline",
      +            "attachment"
      +          ],
      +          "type": "string"
      +        },
      +        "filename": {
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "mimeType": {
      +          "maxLength": 255,
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "filename",
      +        "mimeType",
      +        "content"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / bcc / anyOf
      Previous value: -[
      -  {
      -    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      -    "items": {
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      +    "items": {
      +      "maxLength": 512,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "maxItems": 100,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / cc / anyOf
      Previous value: -[
      -  {
      -    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      -    "items": {
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      +    "items": {
      +      "maxLength": 512,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "maxItems": 100,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / draftId / anyOf
      Previous value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 512,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / replyToMessageId / anyOf
      Previous value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 512,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / subject / anyOf
      Added value: +[
      +  {
      +    "maxLength": 998,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / subject / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • changedInput schema / properties / to / anyOf
      Previous value: -[
      -  {
      -    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      -    "items": {
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      +    "items": {
      +      "maxLength": 512,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "maxItems": 100,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed52 schema fields changed
    • changedInput schema / $schema
      Previous value: -"https://json-schema.org/draft/2020-12/schema"New value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / accountId / anyOf
      Added value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / accountId / description
      Added value: +"Account to operate on. Optional when exactly one account is connected."
    • removedInput schema / properties / accountId / maxLength
      Removed value: -512
    • removedInput schema / properties / accountId / minLength
      Removed value: -1
    • removedInput schema / properties / accountId / type
      Removed value: -"string"
    • addedInput schema / properties / attachments / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "content": {
      +          "description": "base64",
      +          "type": "string"
      +        },
      +        "contentId": {
      +          "description": "Content-ID for an inline image, referenced from bodyHtml as cid:<contentId>",
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "disposition": {
      +          "description": "Defaults to attachment",
      +          "enum": [
      +            "inline",
      +            "attachment"
      +          ],
      +          "type": "string"
      +        },
      +        "filename": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "mimeType": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "filename",
      +        "mimeType",
      +        "content"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / attachments / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "content": {
      -      "type": "string"
      -    },
      -    "contentId": {
      -      "maxLength": 255,
      -      "type": "string"
      -    },
      -    "disposition": {
      -      "enum": [
      -        "inline",
      -        "attachment"
      -      ],
      -      "type": "string"
      -    },
      -    "filename": {
      -      "maxLength": 255,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "mimeType": {
      -      "maxLength": 255,
      -      "minLength": 1,
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "filename",
      -    "mimeType",
      -    "content"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / attachments / maxItems
      Removed value: -30
    • removedInput schema / properties / attachments / type
      Removed value: -"array"
    • addedInput schema / properties / bcc / anyOf
      Added value: +[
      +  {
      +    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      +    "items": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / bcc / description
      Added value: +"Recipients, each \"Name <a@x.com>\" or \"a@x.com\""
    • removedInput schema / properties / bcc / items
      Removed value: -{
      -  "maxLength": 512,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / bcc / maxItems
      Removed value: -100
    • removedInput schema / properties / bcc / type
      Removed value: -"array"
    • addedInput schema / properties / bodyHtml / description
      Added value: +"HTML body"
    • removedInput schema / properties / bodyHtml / maxLength
      Removed value: -32768
    • changedInput schema / properties / bodyHtml / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / bodyText / description
      Added value: +"Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines."
    • removedInput schema / properties / bodyText / maxLength
      Removed value: -32768
    • changedInput schema / properties / bodyText / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / cc / anyOf
      Added value: +[
      +  {
      +    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      +    "items": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / cc / description
      Added value: +"Recipients, each \"Name <a@x.com>\" or \"a@x.com\""
    • removedInput schema / properties / cc / items
      Removed value: -{
      -  "maxLength": 512,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / cc / maxItems
      Removed value: -100
    • removedInput schema / properties / cc / type
      Removed value: -"array"
    • addedInput schema / properties / draftId / anyOf
      Added value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / draftId / description
      Added value: +"Send this existing draft"
    • removedInput schema / properties / draftId / maxLength
      Removed value: -512
    • removedInput schema / properties / draftId / minLength
      Removed value: -1
    • removedInput schema / properties / draftId / type
      Removed value: -"string"
    • addedInput schema / properties / from / anyOf
      Added value: +[
      +  {
      +    "format": "email",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / from / description
      Added value: +"Connected address or an available send-as address"
    • removedInput schema / properties / from / format
      Removed value: -"email"
    • removedInput schema / properties / from / pattern
      Removed value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    • removedInput schema / properties / from / type
      Removed value: -"string"
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Reuse this key when retrying the same delivery"
    • addedInput schema / properties / replyAll / description
      Added value: +"With replyToMessageId: reply to all original recipients"
    • changedInput schema / properties / replyAll / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • addedInput schema / properties / replyToMessageId / anyOf
      Added value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / replyToMessageId / description
      Added value: +"Message being replied to; threads correctly and computes recipients if \"to\" is omitted"
    • removedInput schema / properties / replyToMessageId / maxLength
      Removed value: -512
    • removedInput schema / properties / replyToMessageId / minLength
      Removed value: -1
    • removedInput schema / properties / replyToMessageId / type
      Removed value: -"string"
    • addedInput schema / properties / subject / description
      Added value: +"Defaults to \"Re: ...\" when replying"
    • removedInput schema / properties / subject / maxLength
      Removed value: -998
    • changedInput schema / properties / subject / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • addedInput schema / properties / to / anyOf
      Added value: +[
      +  {
      +    "description": "Recipients, each \"Name <a@x.com>\" or \"a@x.com\"",
      +    "items": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / to / description
      Added value: +"Recipients, each \"Name <a@x.com>\" or \"a@x.com\""
    • removedInput schema / properties / to / items
      Removed value: -{
      -  "maxLength": 512,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / to / maxItems
      Removed value: -100
    • removedInput schema / properties / to / type
      Removed value: -"array"
  4. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses idempotency semantics in detail: repeating a successful send with the same key and arguments returns the saved result, while reusing a key with different arguments or after a failed/uncertain send returns an error. It also states cloud limits for body sizes and attachment counts, adding concrete operational behavior not present in the annotations.

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?

The description is front-loaded with the core action and then moves efficiently through modes, idempotency, and limits. Every sentence carries useful information, with no repeated schema text or filler.

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

Completeness5/5

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

Given the tool's complexity, 13 parameters, high schema coverage, rich annotations, and an output schema, the description covers the key behavioral and mode-selection context an agent needs to invoke it correctly. Remaining details such as recipient formatting, account selection, and attachment structure are adequately covered by the schema.

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

Parameters4/5

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

Schema coverage is 92%, so the schema already documents most parameters. The description still adds useful mode-level semantics by tying to, subject, and body to direct mode; draftId to draft mode; and replyToMessageId plus replyAll to reply mode, while explaining the idempotencyKey contract beyond its schema description.

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

Purpose5/5

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

The description states a specific verb and resource ('Send an email from a connected mailbox') and immediately distinguishes the three supported send modes: direct, existing draft, and reply. This lets an agent separate send_email from sibling tools like create_draft, update_draft, preview_send, and forward_email.

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

Usage Guidelines4/5

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

It clearly explains when each mode applies: direct with to/subject/body, draftId for an existing draft, and replyToMessageId with optional replyAll for replies. It does not explicitly name alternatives such as preview_send for previewing or forward_email for forwarding, so it stops short of full when-not-to-use guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources