Skip to main content
Glama

List drafts

list_drafts
Read-only

Lists the drafts of one mailbox (accountId) or of all mailboxes, newest first. A draft's full content is read with get_message, using its folder and uid.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of drafts.
accountIdNoA single mailbox. Omit for all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so safety is covered. The description adds real value beyond that: it discloses ordering (newest first) and the two-part identifier (folder plus uid) an agent needs to escalate to get_message, implying the list returns partial draft metadata rather than full bodies.

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 short sentences with zero waste: scope and ordering come first, then the follow-up call. Every clause carries information an agent would otherwise have to guess.

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 no output schema and full annotation coverage, the description supplies the essentials: scope, ordering, and how to get full content. It stops short of describing what fields each draft summary contains, which would require inferring a response shape the definition does not promise.

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 coverage is 100%, with both limit and accountId fully documented in the schema including defaults, bounds, and the "omit for all" semantics. The description restates accountId's mailbox-versus-all meaning but adds nothing about limit behavior, so 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 ("Lists the drafts") plus the scope (one mailbox or all mailboxes) and the ordering ("newest first"). It also names get_message as the way to read a draft's full content, which distinguishes this list tool from the retrieval sibling.

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 clear context: pass accountId for a single mailbox, omit it for all, and use get_message with the folder and uid when the full draft body is needed. There is no explicit when-not-to-use guidance, but the alternative path for full content is spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources