Skip to main content
Glama

Fluxmail Cloud

Create draft

create_draft

Create a draft in the mailbox. With replyToMessageId, the draft is a reply: recipients and a subject left out come from the original message, and replyAll includes all of its recipients. 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
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
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"
      +        },
      +        "attachments": {
      +          "items": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "filename": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "mimeType": {
      +                "type": "string"
      +              },
      +              "sizeBytes": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "filename",
      +              "mimeType",
      +              "sizeBytes"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "body": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "html": {
      +              "type": "string"
      +            },
      +            "text": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "bodyTruncation": {
      +          "additionalProperties": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "nextOffset": {
      +                "type": "number"
      +              },
      +              "totalChars": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "totalChars"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "object"
      +        },
      +        "date": {
      +          "type": "string"
      +        },
      +        "flags": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "draft": {
      +              "type": "boolean"
      +            },
      +            "read": {
      +              "type": "boolean"
      +            },
      +            "starred": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "read",
      +            "starred",
      +            "draft"
      +          ],
      +          "type": "object"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "subject": {
      +          "type": "string"
      +        },
      +        "threadId": {
      +          "type": "string"
      +        },
      +        "to": {
      +          "items": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "email": {
      +                "type": "string"
      +              },
      +              "name": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "email"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "threadId",
      +        "accountId",
      +        "to",
      +        "subject",
      +        "date",
      +        "flags"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. Changed8 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 / 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. Changed46 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 / 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 / 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.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, closed-world, so the safety profile is covered. The description adds value the structured fields don't: hard caps of 32,768 characters per body field and 30 attachments per draft. It stops short of stating that repeat calls create duplicate drafts or where the draft lands.

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 sentences, front-loaded with the core action, then the reply-mode conditional, then the hard limits. No restatement of the title and no 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?

Eleven optional parameters, an output schema for return values, and rich schema descriptions; the description fills the remaining gaps that matter for correct invocation (reply inheritance, size and attachment caps). An agent has enough to call this correctly on the first attempt.

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 91%, so baseline is 3. The description nevertheless contributes real semantics the schema does not: replyToMessageId causes recipients and subject to be inherited from the original message, and replyAll only takes effect in combination with it — behavior an agent could not infer from the property descriptions alone.

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?

Specific verb + resource ("Create a draft in the mailbox") with an added clarification that the draft may be a reply when replyToMessageId is supplied. It is clearly distinguishable from send_email/update_draft by the object it produces, though it never explicitly contrasts itself with those siblings.

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?

The conditional mode is spelled out: with replyToMessageId the draft becomes a reply, recipients and subject fall back to the original, and replyAll expands to all original recipients. That is clear usage context, but there is no guidance on when to prefer update_draft over create_draft, or when to draft versus send directly.

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