Skip to main content
Glama

Mail Update Draft

mail_update_draft
Idempotent

Revise an existing Gmail draft in place by changing only specified fields; omitted fields keep stored values. It never sends the draft and requires user confirmation.

Instructions

Revise a draft in place. Does NOT send. Requires user confirmation before calling.

Pass only the fields to change; omitted fields keep their stored values. cc=[] clears Cc, attachments=[] removes all attachments, a list of paths replaces them, and omitting attachments keeps the stored ones. The draft keeps its draft_id. It is rewritten as plain text: formatting added in Gmail is not kept, and an HTML-only draft needs an explicit body.

Returns dict with keys: draft_id, message_id, thread_id, to, cc, subject, warning (always null for this tool).

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": {
      "draft_id": "<draft_id>"
    },
    "name": "mail_update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo
toNo
bodyNo
subjectNo
draft_idYes
attachmentsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (idempotent, non-destructive, closed-world) by disclosing that formatting added in Gmail is lost, that an HTML-only draft needs an explicit body, that draft_id is preserved, and the exact clearing semantics for cc and attachments. These are non-obvious behavioral consequences an agent could not infer from structured fields.

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?

Front-loaded with the key constraint and organized around mutation semantics, so most sentences earn their place. The trailing enumeration of return keys is largely redundant given an output schema exists, which is the only real padding.

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?

Covers the confirmation requirement, mutation semantics, destructive-edge cases, identity preservation, and formatting loss — everything needed to call a 6-parameter partial-update tool safely. Return values are additionally backed by an output schema.

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?

With 0% schema description coverage the description must carry the load, and it does for the tricky cases: empty list clears cc, empty list removes all attachments, a path list replaces them, omission preserves stored values. It is thinner on 'to' and 'subject', which are left to inference from the general partial-update rule.

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 ('Revise a draft in place') and immediately scopes it with 'Does NOT send', which separates it from send-style operations. The contrast with mail_create_draft and mail_delete_draft is evident from the in-place revision framing.

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 a clear precondition ('Requires user confirmation before calling') and an explicit negative boundary ('Does NOT send'), plus the partial-update rule for how to call it. It never names a sibling to prefer for a different task, so it stops short of full alternative routing.

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