Skip to main content
Glama

Create a draft in the provider mailbox

create_draft

Creates an email draft; never sends by itself. cc and bcc are optional; bcc recipients are hidden from the others.

Writes a draft into the connected mailbox. Never sends by itself. After a successful draft, also creates a pending send so the agent can call send_draft, which only sends once the person approves in the app prompt or on the approval page. If the inbox has no stored credential, records a demo draft marked isDemo:true instead (send not available). To attach files, pass attachments: [{ messageId, partId, inboxId? }] using the partId from a message's attachments array (list_messages / get_message); inboxId defaults to the draft's inbox and may be another inbox of this account. At most 5 files and 10 MB in all; Outlook inboxes take files under 3 MB each; not on the trial plan. The person sees each file by name and size before approving. A draft with files cannot be edited afterwards (make a new draft with create_draft) and is never sent under Send on my behalf. Only files already in a mailbox can be attached; for any other file, ask the human to upload it to Drive/Dropbox and paste a share link in the body. Drafting rules (required): write the email body as the human would send it, in a natural voice, at an appropriate length, with no jargon. Never put meta/product text in the body or subject (no "IMAP", "beta", "MCP", "Inbox Triage", "not sent", "draft test", "connector", etc.) unless the human explicitly asked for that phrasing. Do not narrate the tooling; just write the message. Prefer matching the thread's tone when threadId / reply context exists. If the result has checks, ask the person all of its questions together before anything else and do not change the draft unless they say so. Approval is the app prompt or the approval page (approvalUrl); the result says which (approvalPath). Chat approval does not count.

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": {
      "inboxId": "<inboxId>",
      "to": "<to>",
      "subject": "<subject>",
      "text": "<text>"
    },
    "name": "create_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoOptional comma-separated addresses to copy, like to.
toYes
bccNoOptional comma-separated addresses to blind copy, like to. Hidden from the other recipients.
textYesEmail body as the human would send it. No meta/product/tooling narration.
inboxIdYes
subjectYes
threadIdNo
attachmentsNoFiles from existing mail to attach. Their names and sizes come from the mailbox, not from you.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Files from existing mail to attach. Their names and sizes come from the mailbox, not from you.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "inboxId": {
      +        "description": "The inbox that message is in; defaults to the draft's inbox",
      +        "type": "string"
      +      },
      +      "messageId": {
      +        "description": "A message already synced in this account",
      +        "type": "string"
      +      },
      +      "partId": {
      +        "description": "The partId of one of that message's attachments",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "messageId",
      +      "partId"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false): it discloses the pending-send/approval handshake, the demo-draft fallback with isDemo:true when no credential is stored, attachment quotas (5 files, 10 MB total, 3 MB per file on Outlook, unavailable on trial), post-attach immutability, the Send-on-my-behalf exclusion, and that "checks" must be surfaced to the human before any edit. It even clarifies which approval channels count, which is exactly the kind of nuance annotations cannot carry.

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 lead sentence is front-loaded and efficient, but the body runs long and the "Drafting rules (required)" block is verbose, with the no-meta-text instruction repeated in the description and again in the text parameter's schema description. The operational details earn their space; the prose-style coaching is padded.

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?

There is no output schema, yet the description still describes the relevant result fields (checks, approvalPath/approvalUrl, isDemo), which is what an agent needs to act after the call. With 8 parameters and a multi-step approval workflow, the remaining gap is the undocumented semantics of top-level inboxId and threadId.

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 only 50%, and the description compensates well for the highest-risk gaps: cc/bcc optionality and bcc visibility, and a full explanation of the attachments object shape with messageId/partId provenance and the inboxId default. It does less for to, subject, inboxId, and threadId — threadId gets only an indirect nod ("matching the thread's tone when threadId / reply context exists"), and the top-level inboxId default is never stated.

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?

States a specific verb and resource ("Creates an email draft") and immediately bounds it with "never sends by itself," which cleanly separates it from the sibling send_draft. An agent can tell what this does and what it does not do 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?

Gives clear operating context: after a draft succeeds a pending send exists so send_draft can be called, approval must come from the app prompt or approvalUrl, and drafts with files cannot be edited (make a new one with create_draft instead). It also tells the agent to redirect non-mailbox files to a human upload plus a share link. It stops short of naming every sibling alternative (e.g. update_draft_from_card, show_draft), so it is clear but not exhaustive.

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