Sign inGet started
Menu
TOOL REFERENCE / SOURCE GENERATEDMAILMAN MCP / MAIL

email_create_draft

Creates an unsent draft in the mailbox. Nothing is delivered — the draft appears in the user's Drafts folder where they can review or edit it. This is the safe way to compose. Prefer it over email_send_message whenever the user has not clearly asked you to send, then hand back the draft_id so they can approve and you can call email_send_draft. account_id chooses the mailbox and therefore the sending identity; get it from email_accounts_list and never guess. Set from only for a verified alias on that same account.

Input fields

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The connected mailbox to act on, from email_accounts_list. Never guess this value and never reuse one across mailboxes — it selects both the credential and the permission set the call runs under."
    },
    "from": {
      "description": "Send as this address. Must be an identity the account is allowed to send as (alias or shared mailbox); anything else is INVALID_FROM_IDENTITY. Omit to use the account's default address.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "to": {
      "description": "Recipient addresses. May be empty on a draft.",
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "cc": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "bcc": {
      "description": "Blind copies. Other recipients cannot see these addresses.",
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "text_body": {
      "description": "Plain-text body. Prefer this unless HTML is needed.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "html_body": {
      "description": "HTML body. Supply text_body too so non-HTML clients render something.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "attachments": {
      "description": "Files to attach. Supply either content_base64 or source_url per item.",
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "filename": {
                "type": "string",
                "minLength": 1
              },
              "content_type": {
                "type": "string",
                "minLength": 1,
                "description": "MIME type, e.g. application/pdf."
              },
              "content_base64": {
                "description": "Base64 content. Use for small files.",
                "type": "string"
              },
              "source_url": {
                "description": "URL the server fetches instead of inline content.",
                "type": "string"
              },
              "size_bytes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "filename",
              "content_type"
            ]
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "in_reply_to_message_id": {
      "description": "Draft this as a reply to that message, so the provider keeps threading headers intact. Use email_reply instead if you intend to send immediately.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "account_id"
  ]
}

Tool behavior

May change provider state. Check the explicit account, required access and provider capabilities before invoking.

Inspect isError and per-account errors. General write tools do not all enforce exact-plan approval. This reference does not certify any current AI client version.

YOUR AI POSTAL SYSTEM

YOUR INBOXES.
UNDER CONTROL.

Get started

Start with a free account and one read-only search. Existing accounts keep their connection.