Skip to main content
Glama
Xallor Email MCP

Xallor Email MCP

Official
by xallor-ai

draft_email

Create a draft email in a selected account for review before sending, with Markdown body, optional signatures, and reply or forward support.

Instructions

Create a draft email from the given account without sending it. Body content must be Markdown only, without raw HTML; use a blank line between paragraphs. Works identically to send_email — when include_signature is true, uses Gmail's signature first and local fallback only when Gmail returns none. Do not also include a signature in the body; fails if no signature exists or lookup fails. Applies style and supports replies and forwards — but saves the message to the Drafts folder instead of sending. Returns the draft message ID and the draft's Markdown body (draftMarkdown). Copy selections from this complete current body or read_email in Markdown. Explicit HTML remains available through read_email(format: 'html'). Returns the draft's shareable webUrl when available; recipients must have access to the mailbox to open it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account": "<account>",
      "to": "<to>",
      "subject": "<subject>",
      "body": "<body>",
      "include_signature": "<include_signature>"
    },
    "name": "draft_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo
toYes
bccNo
bodyYesEmail content in Markdown only; raw HTML is not supported. Use a blank line between paragraphs.
accountYes
subjectYes
replyAllNoWhen true and `inReplyTo` is set, reply to all recipients instead of just the sender.
inReplyToNoMessage ID to reply to. When set, sends as a threaded reply which includes the quoted thread history automatically. Set to `false` for a new email (not a reply).
attachmentsNoFile attachments to include. The server reads the files from disk and base64-encodes them automatically.
forwardMessageIdNoMessage ID to forward. When set, sends as a forward of the specified message, preserving the original content. Mutually exclusive with `inReplyTo`.
include_signatureYesWhether to append the HTML signature: Gmail first, local fallback only when Gmail returns none; other providers use local. If true, don't include a signature in the body param to avoid double signature. Returns an error if true but no signature is configured for this account.

Output Schema

NameRequiredDescriptionDefault
idYes
draftYes
webUrlNo
warningNo
draftMarkdownNo
draftReadbackErrorNo
webUrlUnavailableReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the signature resolution order (Gmail first, local fallback), the failure mode when no signature exists or lookup fails, the Markdown-only body constraint, and the reply/forward support. It does not cover permissions, rate limits, or whether draft creation is idempotent/reversible.

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

Conciseness3/5

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

The core purpose and the draft-vs-send distinction are front-loaded, which is good, but the middle sentences are run-on and interleave signature behavior, return values, reply/forward, and body-copying advice in a hard-to-parse order. Return-value details (draftMarkdown, webUrl) are buried mid-paragraph rather than grouped.

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

Completeness4/5

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

An output schema exists, so the description needn't fully document returns, though it mentions them anyway. For an 11-parameter, 5-required mutation tool with no annotations, it covers the tricky parts (signature, body format, reply/forward threading) but says nothing about cc/bcc/attachment handling or what happens to an existing draft for the same thread.

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?

At 55% schema coverage, the description adds real meaning for include_signature (signature source, fallback, failure, and 'don't also include a signature in the body') and reinforces the Markdown-only body rule. However, cc, bcc, and attachments receive no treatment beyond the schema, and the description's other parameter talk is partly duplicated by the schema's own field descriptions.

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 first sentence gives a specific verb and resource ('Create a draft email from the given account without sending it') and immediately separates the tool from send_email by the no-send behavior. An agent can identify the operation without opening the schema.

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 explicitly states the relationship to send_email ('works identically... but saves the message to the Drafts folder instead of sending') and points to read_email for HTML, which gives clear alternative routing. It never states a when-not-to-use condition (e.g., send_draft vs draft_email lifecycle), so it falls short of full exclusion guidance.

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