Skip to main content
Glama

send_draft

Destructive

Sends an existing Gmail draft by ID after user confirmation, so messages go out only when approved.

Instructions

Send an existing draft by ID, after the user confirms it (by default).

By default (GMAIL_SEND=confirm) the user confirms the draft in a form the MCP client shows, built from the draft as Gmail stores it, and only an explicit yes sends it. If the client can't show the form, or the user doesn't confirm, nothing is sent and the draft stays in Gmail's Drafts folder. A draft changed after the confirmation (e.g. by update_draft) is refused, not sent. Confirmation needs a client on the 2025-11-25 handshake; on 2026-07-28 connections (Claude Code, currently) this tool refuses. A client hook that auto-accepts confirmations with a yes makes this the same as GMAIL_SEND=direct, which sends at once.

Args: draft_id: The draft ID returned by create_draft.

Returns: Once sent: sent true, the sent message id, thread_id, and label_ids, plus (under confirm) draft_id and recipient_flags. If refused: sent false with the same reason, draft_id, message, recipient_flags, and note fields as send_message. On failure, {"error": "..."}.

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": "send_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation: it explains the confirmation gate, exactly what happens on refusal (nothing sent, draft stays in Drafts), the staleness check against post-confirmation edits, protocol-version constraints, and the environment variable that changes behavior. This is unusually thorough disclosure for an irreversible action.

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-loads the purpose and confirmation rule, then uses structured Args/Returns blocks. The middle paragraph about client hooks and handshake versions is dense and slightly rambling, but every clause conveys operational consequence rather than filler.

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?

For a one-parameter destructive tool, it covers the send outcome, refusal outcome, failure shape, and the environmental preconditions that determine whether the call can succeed at all. Return values are restated despite an output schema existing, but that redundancy doesn't leave any behavioral gap.

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 0%, so the description must carry the load, and it does: draft_id is defined as 'the draft ID returned by create_draft', establishing provenance and format expectations. It adds meaning beyond the bare string schema, though it does not describe ID format or validity handling.

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 ('Send an existing draft by ID') with the key qualifier that confirmation gates it. It clearly distinguishes sending a stored draft from composing a new message, though it never explicitly names send_message or create_draft as the alternative path.

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 explicit conditions: default GMAIL_SEND=confirm requires a form confirmation, unconfirmed or form-less clients send nothing, drafts modified after confirmation are refused, and certain handshake versions refuse outright. It also names the direct-send mode as an equivalent path. The only gap is that it does not say which sibling to use for non-draft sending.

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