Skip to main content
Glama

Draft shared mailbox email

draft_shared_mailbox_email

Saves a Gmail draft in the firm's shared mailbox. Optional attachments (PDF/images), thread_id, or draft_id to add files. Does not send. A first call returns a preview; a second call with confirm true and that preview_id applies the change. Sign-in required.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "draft_shared_mailbox_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC email(s), comma-separated.
toNoRecipient email(s), comma-separated. Required unless draft_id is set.
bccNoBCC email(s), comma-separated.
bodyNoEmail body. Required unless draft_id is set.
confirmNofalse or omitted returns a preview; true applies the change identified by preview_id.
is_htmlNoBody is HTML. Defaults to plain text.
subjectNoSubject line. Required unless draft_id is set.
draft_idNoExisting Gmail draft id. When set, keeps that draft's headers, body and thread and appends attachments.
thread_idNoGmail thread id from search_shared_mailbox or get_shared_mailbox_thread.
message_idNoGmail message id from search_shared_mailbox or get_shared_mailbox_thread.
preview_idNopreview_id is the id returned by this tool's preview call. Required when confirm is true.
attachmentsNoFiles to attach (max 10, 20 MB total). Each item is filename + mime_type + content_base64, or a public https url. PDF, PNG, JPEG, GIF, WebP.
idempotency_keyNoOptional. A retry with the same key returns the first result without a second write. Defaults to preview_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Files to attach (max 10, 20 MB total). Each item is filename + mime_type + content_base64, or a public https url. PDF, PNG, JPEG, GIF, WebP.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "content_base64": {
      +        "description": "File bytes, base64. Alternative to url.",
      +        "type": "string"
      +      },
      +      "filename": {
      +        "description": "File name. Required with content_base64; taken from the url path when omitted.",
      +        "type": "string"
      +      },
      +      "mime_type": {
      +        "description": "MIME type, e.g. application/pdf or image/jpeg. Taken from the url response when omitted.",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "Public https:// link. Alternative to content_base64.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / body / description
      Previous value: -"Email body."New value: +"Email body. Required unless draft_id is set."
    • addedInput schema / properties / draft_id
      Added value: +{
      +  "description": "Existing Gmail draft id. When set, keeps that draft's headers, body and thread and appends attachments.",
      +  "type": "string"
      +}
    • changedInput schema / properties / subject / description
      Previous value: -"Subject line."New value: +"Subject line. Required unless draft_id is set."
    • changedInput schema / properties / to / description
      Previous value: -"Recipient email(s), comma-separated."New value: +"Recipient email(s), comma-separated. Required unless draft_id is set."
    • removedInput schema / required
      Removed value: -[
      -  "to",
      -  "subject",
      -  "body"
      -]
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false), and the description adds genuine value beyond them: sign-in is required and the write is gated behind a preview/confirm cycle keyed by preview_id. It also discloses that setting draft_id preserves existing headers, body, and thread and only appends attachments, which is important non-obvious behavior. Error handling and rate limits are not covered, keeping it at a 4 rather than 5.

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

Conciseness4/5

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

Four short sentences, front-loaded with the core action and the crucial "Does not send" caveat before the workflow detail. The middle sentence about optional attachments, thread_id, or draft_id is denser and less clear than the rest but wastes little space.

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?

For a 13-parameter mutation tool with no output schema, the description covers the essential contract: what gets created, that nothing is sent, the confirm gate, and the draft_id merge behavior. Return values are not explained, but preview_id is documented in the schema, so an agent has enough to call it correctly.

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?

Schema coverage is 100%, so the schema already documents all 13 parameters thoroughly, including the attachment constraints and idempotency_key. The description adds only a compressed hint that attachments/thread_id/draft_id let you add files to an existing draft, and that sentence is slightly garbled, so the baseline 3 is appropriate.

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 description names a specific verb and resource ("Saves a Gmail draft in the firm's shared mailbox") and immediately scopes it with "Does not send," which is enough to distinguish it from the send_shared_mailbox_email sibling without opening a 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 clearly establishes the use case (drafting rather than sending) and spells out the two-call preview/confirm protocol, so an agent knows how to invoke it safely. It stops short of naming alternatives such as draft_matter_email or draft_outlook_email, but the draft-vs-send distinction is explicit.

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