Skip to main content
Glama

Gmail List Drafts

gmail_list_drafts
Read-onlyIdempotent

Lists Gmail drafts page by page or reads one draft in full by ID, returning IDs, headers, body, and attachments for review or editing.

Instructions

List the account's Gmail drafts a page at a time, or read one draft in full with draft_id. Change a draft with gmail_save_draft and send it with gmail_send_draft. Returns drafts and next_page_token: without draft_id each draft has id, message_id and thread_id only; with draft_id the one draft also has label_ids, date, from, to, cc, bcc, subject, snippet, attachments (with download_id) and, with format 'full', the whole cleaned body text as body with body_chars; fields a format does not read are null.

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

Input Schema

NameRequiredDescriptionDefault
formatNoWith draft_id only: how much of the draft to read: 'full' (default) adds the headers, attachments and the whole cleaned body text as body; 'metadata' the headers only; 'minimal' IDs, labels, date and snippet only; 'raw' also the whole RFC 2822 message base64url-encoded as raw.full
draft_idNoDraft ID (the id from this list or from gmail_save_draft) to read one draft in full: its recipients' headers, snippet and, with format 'full', the cleaned body. Paging parameters are ignored when it is given.
page_tokenNoThe next_page_token from the previous response of this same call; omit for the first page.
max_resultsNoDrafts per page, 1 to 500 (default 25).
include_spam_trashNoAlso return items in Spam and Trash; by default they are excluded.

Output Schema

NameRequiredDescriptionDefault
countNoNumber of items in this response.
draftsNoDrafts on this page, or the one draft read.
has_moreNoWhether another page is available.
fetched_atNoRFC3339 time when this response was fetched.
next_page_tokenNoOpaque token for the next page, or null.
result_size_estimateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new behavior: the two return shapes (id/message_id/thread_id only vs. full headers, attachments, body), the next_page_token, and the rule that fields a format does not read are null. It does not discuss rate limits or Spam/Trash inclusion beyond what the schema says, so it stops short of a 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?

Front-loaded with the two operating modes before the routing advice and return shape, so the most important information comes first. The final sentence enumerating every returned field is dense and long, though it is informative rather than wasted.

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?

With an output schema, full annotation coverage and 100% parameter documentation, the description only needs to explain conditional behavior, which it does via the two return shapes and the null-field rule. The long field enumeration partially duplicates the output schema, but nothing an agent needs to call the tool correctly is missing.

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%, so every parameter including format, draft_id, page_token, max_results and include_spam_trash is already documented in the schema. The description reinforces the draft_id/format interaction and the null-field consequence, but adds no syntax or format detail beyond what the schema provides; baseline 3 applies.

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 ('List the account's Gmail drafts') plus a second distinct mode ('read one draft in full with draft_id'), so the agent knows this tool does both listing and single-draft retrieval. It also names gmail_save_draft and gmail_send_draft as the mutation paths, distinguishing it from the write siblings.

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

Usage Guidelines5/5

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

Explicitly says when to use each mode: omit draft_id to page through drafts, supply draft_id to read one in full, and it directs change/send actions to gmail_save_draft and gmail_send_draft. The only minor omission is that paging behavior with page_token is described in the schema rather than the description.

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