Skip to main content
Glama
Automata MCP

Automata MCP

List mail folders

list-mail-folders
Read-onlyIdempotent

List readable mailbox folders with sync and unread counts, INBOX first, so you can choose the correct folder path for listing or searching emails.

Instructions

[Email] List the folders of the connected mailbox that this token may read, INBOX first, with how many emails are synced and unread in each. Folder path is what list-emails and search-emails take as folder. synced: false folders (All Mail, Junk, Trash, and folders that cannot hold mail) exist on the server but are not synced, so nothing in them can be listed or searched. serverMessages is what the server reported the folder holds; when history.complete is false, older mail in that folder has not been synced (history.stopped says if a limit stopped it).

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-mail-folders"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, closed-world, non-destructive, so the bar is lower, but the description still adds real substance: INBOX-first ordering, the meaning of `synced: false` (All Mail, Junk, Trash, non-mail folders exist server-side but are unsyncable), and the `serverMessages` vs `history.complete`/`history.stopped` distinction explaining unsynced older mail. These are behavioral facts an agent cannot get from the annotations.

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?

Dense and front-loaded: the core purpose and ordering come first, then downstream usage, then sync caveats. Every sentence carries information, though the single unbroken paragraph with multiple inline field references is heavier than ideal for rapid scanning.

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?

No output schema exists, so the description carries the return-value burden and does so fully: it names the key fields, their meaning, the ordering, and the edge cases around incomplete sync. For a zero-parameter read tool, an agent has everything needed to call it and interpret the result.

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?

The tool takes zero parameters, which sets the baseline at 4. The description does not need to explain inputs, but it goes further by defining the semantics of the values the agent will consume (`path`, `synced`, `serverMessages`, `history.complete`, `history.stopped`), which aids correct downstream use.

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 folders of the connected mailbox") plus scope ("that this token may read") and ordering ("INBOX first"). It also previews the per-folder fields returned (synced count, unread count), so an agent can distinguish it from list-emails or search-emails without opening any schema.

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?

Explicitly ties itself to alternatives by stating folder `path` is what list-emails and search-emails take as `folder`, which implies this is the discovery step before those tools. It further warns that `synced: false` folders cannot be listed or searched, which is actionable exclusion guidance. It stops short of a direct imperative like "call this before list-emails", keeping it from a 5.

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