Skip to main content
Glama

gmail_edit_draft

Modify an existing Gmail draft's recipients, subject, body, or attachments and save it while preserving its thread; optionally append recipients or body instead of replacing.

Instructions

Change an existing draft (recipients, subject, body, attachments) and save it again.

The draft keeps its thread (reply drafts stay replies). Fields left out are unchanged. With append=false (default) given recipients REPLACE the field and body replaces the whole editable body; with append=true recipients are added and body is added at the end.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoCc recipients (same rules).
toNoTo recipients (replace, or add with append=true; [] clears the field).
bccNoBcc recipients (same rules).
bodyNoNew body text (any Unicode, newlines allowed).
indexNoRow index from gmail.drafts (default 0 when query is given).
queryNoThe query used with gmail.drafts (searches 'in:drafts <query>'); default: the query of the last gmail.drafts listing (else the Drafts folder).
appendNoAdd recipients/body instead of replacing them.
subjectNoNew subject (always replaces).
attachmentsNoPaths of files on this computer to attach.
expect_subjectNoSafety check: the draft's subject must contain this text.
remove_attachmentsNoFile names of attachments to remove from the draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does real work: it discloses that the draft keeps its thread and reply drafts stay replies, that omitted fields are unchanged, and how append interacts with recipients and body. It does not mention permissions or what happens on a failed expect_subject check (the schema covers the latter).

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?

Front-loaded with the verb and resource, then a short paragraph on preservation semantics and one on the append switch. No filler sentences.

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 an 11-parameter, unannotated mutation tool with no output schema, the description covers the most agent-relevant semantics (thread preservation, partial update, append behavior). It leaves the index/query draft-selection mechanics entirely to the schema, which is acceptable but leaves the targeting story thin.

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 100%, so baseline is 3; the description adds genuine nuance by clarifying that default mode replaces recipients and replaces the whole editable body, whereas append mode adds recipients and appends body text at the end.

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?

States a specific verb and resource: 'Change an existing draft (recipients, subject, body, attachments) and save it again.' An agent can distinguish this from gmail_draft (creation) or gmail_send_draft, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

The description explains replace-vs-append behavior and that omitted fields are left unchanged, which strongly implies edit-in-place usage, but it never states when to reach for this tool versus gmail_draft or gmail_send_draft.

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