Skip to main content
Glama

updateDraft

Replaces an existing draft message's content with new subject, body, recipients, or attachments, using the draft ID to locate and update it.

Instructions

Update an existing draft's content. Replaces the draft message with new content.

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": {
      "id": "<id>"
    },
    "name": "updateDraft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoList of CC recipient email addresses
idYesThe ID of the draft to update
toNoList of recipient email addresses. Each entry must be either 'addr@example.com' or 'Display Name <addr@example.com>'; non-ASCII display names are RFC 2047 encoded automatically. Other RFC 5322 forms (groups, comments, a quoted display name containing a '<') are sent through unencoded.
bccNoList of BCC recipient email addresses
rawNoThe entire email message in base64url encoded RFC 2822 format, ignores other params if provided
bodyNoThe body of the email. Supports plain text or HTML (auto-detected). Use HTML tags like <p>, <br>, <b> for formatted emails.
subjectNoThe subject of the email
threadIdNoThe thread ID to associate this draft with
attachmentsNoFile attachments to include
includeBodyHtmlNoWhether to include the parsed HTML in the return for each body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. "Replaces the draft message with new content" hints at replacement semantics but is ambiguous about whether omitted fields are cleared or preserved, what happens if the id is invalid, and what permissions are needed — all material for a mutation tool with 10 parameters.

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?

It is short and front-loaded, but the second sentence largely restates the first rather than adding information, so the description is compact without being dense with value.

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

Completeness2/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 annotations and no output schema, two sentences are not enough. Nothing explains mutation semantics for partial payloads, error conditions, or return behavior, so an agent could call it correctly in shape but not confidently in behavior.

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 description coverage is 100%, including nuanced notes such as raw overriding other params and recipient format rules, so the schema does the heavy lifting. The description adds no parameter meaning beyond what is already structured, which is the baseline 3 case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ("Update an existing draft's content"), so an agent knows exactly what it mutates. It stops short of distinguishing itself from close siblings like createDraft, sendDraft, or getDraft, leaving that differentiation to the names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus createDraft or sendDraft, no prerequisites (e.g., draft must already exist, required scopes), and no exclusions. The agent must infer all selection logic from the tool name.

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

Deploy Server

Other Tools