Skip to main content
Glama

draft_list

Read-onlyIdempotent

List an account's email drafts newest first with their draft IDs, so you can find and manage saved messages. Requires MAIL_DRAFTS_ENABLED=true.

Instructions

List the account's drafts, newest first, with their draft_id. Requires MAIL_DRAFTS_ENABLED=true.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum drafts to return (1..50, default 20)
account_idNoAccount identifier (defaults to `"default"`)default

Output Schema

NameRequiredDescriptionDefault
dataYesTool-specific data payload
metaYesExecution metadata (timestamp, duration)
summaryYesHuman-readable summary of the operation outcome

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.7.1
    • removedInput schema / description
      Removed value: -"Input: list drafts, newest first"
    • removedInput schema / properties / limit / nullable
      Removed value: -true
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / title
      Removed value: -"DraftListInput"
    • removedOutput schema / description
      Removed value: -"Standard response envelope for all tools\n\nWraps tool-specific data with human-readable summary and execution metadata.\nThis structure provides consistent response shape across all MCP tools."
    • removedOutput schema / title
      Removed value: -"ToolEnvelope"
  2. Addedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds value beyond that with the feature-flag prerequisite and the deterministic 'newest first' ordering, both of which affect whether and how the call should be made; only truncation behavior is left implicit.

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?

Two compact sentences with no filler; the capability statement is front-loaded and the prerequisite follows as a secondary clause. Every sentence carries distinct information.

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 a simple two-parameter read tool with full schema coverage, annotations, and an output schema, this is nearly sufficient: purpose, ordering, a key return field, and an environment prerequisite are all stated. The only omission is what happens when results exceed the limit, which is a minor gap given the output schema.

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%, and both parameters carry their own descriptions including the 1..50 range and default of 20, so the schema does the heavy lifting. The description only echoes the account scope implicitly via 'the account's' and adds no extra meaning for limit or account_id.

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?

The description gives a specific verb and resource ('List the account's drafts') plus two useful qualifiers: the ordering ('newest first') and a returned field ('draft_id'). That clearly separates it from the write-oriented siblings (draft_create, draft_update, draft_send, draft_delete), though it does not name them 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 discloses a hard prerequisite ('Requires MAIL_DRAFTS_ENABLED=true'), which is genuinely actionable context an agent would otherwise lack. However, it gives no guidance on when to prefer this over other retrieval tools, nor any hint about paging through results when the configured limit is exhausted.

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