Skip to main content
Glama

List drafts

list_drafts
Read-onlyIdempotent

Retrieve drafts from a specified mailbox page by page, optionally limiting results to drafts created by this project, and use page tokens to fetch subsequent pages.

Instructions

List the drafts of one mailbox, a page at a time (pass next_page_token as page_token). own_only (default true) lists only drafts this project created. If this connection hides secrets, secrets in subjects read [redacted] (redacted=true); get_draft shows the draft.

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": {
      "account": "<account>"
    },
    "name": "list_drafts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost drafts per page.
cursorNoSame as page_token.
accountYesMailbox alias or email address from list_accounts.
own_onlyNoList only drafts this project created.
page_tokenNonext_page_token of the previous page.

Output Schema

NameRequiredDescriptionDefault
draftsNo
next_page_tokenNo
untrusted_content_noticeNoAlways present on success: the fields of this result that come from mail are untrusted third-party data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.20.2
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Same as page_token.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Most drafts per page."
    • addedInput schema / properties / own_only / description
      Added value: +"List only drafts this project created."
    • addedInput schema / properties / page_token / description
      Added value: +"next_page_token of the previous page."
  3. First observedv0.11.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false. The description adds useful behavior: pagination via page_token/next_page_token, own_only default, and redaction of secrets in subjects. It could mention rate limits, but the added context is substantial.

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?

The description is front-loaded with the core purpose and packs useful details without excessive length. The redaction sentence is slightly dense but efficient; no significant 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?

Given the existing output schema, annotations, and full parameter coverage, the description provides all needed context: paging, own_only, redaction behavior, and guidance to get_draft. Nothing critical is missing for correct invocation.

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 the schema defines each parameter. The description adds meaningful detail about page_token and next_page_token (pass next_page_token as page_token) and clarifies own_only default behavior, going beyond the schema's basic descriptions.

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 drafts of one mailbox.' It also distinguishes itself from get_draft by noting that get_draft shows the draft, making the enumeration vs. retrieval distinction clear.

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?

Provides clear context that this is for listing drafts a page at a time, and names get_draft as the alternative for fetching a single draft. It does not explicitly say when to use it versus search_messages, but the primary alternative is covered.

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