Skip to main content
Glama
mail-mcp

mail-mcp

list_folders

Read-only

Lists IMAP folders for a specified email account, optionally including message and unseen counts, so you can inspect available mailbox folders and roles.

Instructions

List folders of an account (or "all"). special_use is the role the server flags (SPECIAL-USE); alias is the alias (sent, drafts, trash, junk, archive, all) that resolves to the folder, which also covers folders matched by name when the server sends no flag.

with_counts=true adds message/unseen counts (slower: one STATUS per folder).

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_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYes
with_countsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only and open-world access, so the burden is lighter. The description still adds real behavioral detail beyond them: with_counts costs one STATUS round-trip per folder, and it explains how special_use versus alias are populated server-side. It does not describe ordering, pagination, or how large folder sets behave.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and short, and every sentence carries content. The problem is structural: the special_use/alias sentence never says it describes returned folder fields, so in a two-parameter tool it reads as if it were parameter documentation, which creates ambiguity that costs more than the sentence's length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description is right to explain the folder fields, and the with_counts cost note is exactly what a caller needs. But the field explanation is ambiguous about whether those are inputs or returns, and nothing states what a folder record otherwise looks like or whether results can be empty or ordered.

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 0%, so the description must carry both parameters and largely does: it defines the "all" value for account and fully explains with_counts including its default-off implication and performance tradeoff. However, the middle sentence about special_use and alias does not correspond to any parameter, so it dilutes rather than sharpens parameter understanding.

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?

"List folders of an account (or \"all\")" gives a specific verb and resource, and the parenthetical shows the wildcard scope. It does not explicitly contrast with siblings such as list_accounts, but the resource noun is distinctive enough that an agent can separate it from message-oriented siblings.

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?

There is no explicit when-to-use-vs-alternative statement, but the description does give a conditional rule for with_counts ("slower: one STATUS per folder"), which is actionable guidance about when the flag is worth it. The "all" scope is mentioned but without saying why an agent would want it over a single account.

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