Skip to main content
Glama

Draft mail

mail_draft

Creates an Outlook email draft for new messages, replies, reply-alls, or forwards, returns a preview for review, and leaves sending to a separate approval step.

Instructions

Create a draft (NOT sent).

Modes: new (needs to + subject) | reply | reply_all | forward (need mail_ref; forward also needs to). For replies, to/cc are added to the original recipients. Unknown names fail and keep nothing. Returns a preview; send with mail_send after the user approves.

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": {
      "mode": "<mode>",
      "body": "<body>"
    },
    "name": "mail_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoNames or emails, e.g. ['Jana Nováková', 'x@example.com'].
toNoNames or emails, e.g. ['Jana Nováková', 'x@example.com'].
bccNoNames or emails, e.g. ['Jana Nováková', 'x@example.com'].
bodyYesYour text only; signature and quoted original are added automatically.
modeYesnew | reply | reply_all | forward.
subjectNoRequired for 'new'; otherwise defaults to 'RE: …' / 'FW: …'.
mail_refNoThe original mail; required for reply, reply_all and forward.
attachmentsNoFile paths (Windows or /mnt/c/...).
body_formatNomarkdown (default; **bold**, lists, links, tables) | html | text. The tool adds the user's Outlook font and signature.markdown
from_mailboxNoSend from another account or on behalf of a shared mailbox. Replies to mail in another mailbox use that mailbox automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses real behavioral traits: drafts never leave the mailbox, unknown recipient names fail and leave nothing behind (all-or-nothing atomicity), and the call returns a preview rather than sending. That safety profile is exactly what an agent needs before committing a mutation with destructiveHint=false but readOnlyHint=false.

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 critical fact (draft, not sent) is front-loaded, followed by a compact mode table and the error/preview notes. Every line carries information; nothing is padded, even in the telegraphic mode listing.

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?

For a 10-parameter mutation tool with no output schema, the definition covers the essentials: mode prerequisites, recipient resolution failure behavior, what gets auto-appended to the body, and what the return value is (a preview) plus the natural next step. An agent can call this correctly without further probing.

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 already 100%, yet the description adds cross-parameter logic the schema cannot express: 'new' requires to plus subject, reply/reply_all/forward require mail_ref, forward additionally needs to, and replies merge to/cc into the original recipients. The merge behavior is the most valuable addition; the per-mode required markers largely restate schema text.

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?

"Create a draft (NOT sent)" gives a specific verb and resource and immediately rules out the most likely confusion with the sibling mail_send. The parenthetical negation plus the closing "send with mail_send after the user approves" make the boundary between drafting and sending unmistakable.

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 states the workflow condition (draft first, then let the user approve before mail_send) and enumerates which mode to pick with the prerequisites each mode imposes. It does not discuss when drafting would be unnecessary or inappropriate (e.g., short-lived one-off messages), so a small amount of routing guidance is left implicit.

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