Skip to main content
Glama

Draft email

draft_email
Read-onlyIdempotent

Drafts one email the user sends themselves. Use when the user wants to email someone or needs an .eml file for Apple Mail, Outlook or Thunderbird. Only body is required. Leave to empty for a draft with no recipient. Returns a mailto: link that opens the email app with recipient, subject and body filled in, plus the full .eml draft text. If the link is over 2,000 characters, warning says so: give the user the .eml text instead. Nothing is sent or stored. Do not use for Instagram, LinkedIn, SMS or bulk email: Send Out cannot send those, so tell the user and offer an email draft instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoOptional CC email address or comma-separated addresses.
toNoRecipient address, or several separated by commas, such as "alex@example.com, sam@example.com". Leave empty for a draft with no recipient that the user fills in.
bccNoOptional BCC email address or comma-separated addresses.
bodyYesEmail body as plain text with line breaks (at most 50,000 characters), such as "Hi team, phase 1 is done and ready for review."
subjectNoEmail subject line, such as "Sprint review notes". Optional.
filenameNoOptional .eml filename (without or with .eml).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesYesShort notes to pass on to the user, including any warning.
statusYesAlways ok when the draft was made. Bad input returns an error instead.
warningNoWarning if the mailto URL exceeds safe client length limits.
filenameYesSuggested file name for the .eml file.
mailto_urlYesRFC 6068 mailto URI for instant client-side draft opening.
url_lengthYesTotal length of the mailto URL.
eml_contentYesRFC 822/5322 .eml MIME draft text ready to save or open.
character_countYesLength of the email body in characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "body": "Phase 1 is complete and ready for review.",
      -    "subject": "Project Milestone",
      -    "to": "alex@example.com"
      -  }
      -]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "body": "Phase 1 is complete and ready for review.",
      +    "subject": "Project Milestone",
      +    "to": "alex@example.com"
      +  }
      +]
  3. Changed5 schema fields changed
    • changedInput schema / properties / body / description
      Previous value: -"Email body text (at most 50,000 characters). Plain text or formatted with line breaks."New value: +"Email body as plain text with line breaks (at most 50,000 characters), such as \"Hi team, phase 1 is done and ready for review.\""
    • changedInput schema / properties / subject / description
      Previous value: -"Email subject line."New value: +"Email subject line, such as \"Sprint review notes\". Optional."
    • changedInput schema / properties / to / description
      Previous value: -"Recipient email address or comma-separated addresses."New value: +"Recipient address, or several separated by commas, such as \"alex@example.com, sam@example.com\". Leave empty for a draft with no recipient that the user fills in."
    • addedOutput schema / properties / notes / description
      Added value: +"Short notes to pass on to the user, including any warning."
    • addedOutput schema / properties / status / description
      Added value: +"Always ok when the draft was made. Bad input returns an error instead."
  4. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  5. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  6. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.