Skip to main content
Glama

list_mail_folders

Read-only

Die Ordner eines Postfachs, LIVE vom Server. Jeder mit role (inbox|sent|drafts|trash|junk|archive|normal) und selectable. Optional: email_account_id. Bei Gmail sind es Labels: flach, und eine Mail kann mehrere tragen — ein Schraegstrich im Namen ist dort nur Text, keine Verschachtelung. Bei Outlook (Graph) ist es ein Baum und der Name ist der Pfad mit '/'; die Rollen kommen von Microsoft, nicht aus dem uebersetzten Ordnernamen. Read-only.

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
email_account_idNoPostfach-ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / email_account_id / description
      Added value: +"Postfach-ID"
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the 'Read-only' sentence is largely redundant, but the description contributes real behavioral context beyond them: every folder carries a role enum and a selectable flag, Gmail exposes flat labels where a slash is literal text and a mail may carry several, and Outlook/Graph is a tree whose name is a '/'-path with server-supplied roles rather than translated folder names. What is missing is behavior when email_account_id is omitted and any pagination or error behavior.

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 core fact (folders of a mailbox, live) is front-loaded, and the provider-specific sentences carry genuine disambiguation value rather than filler. It is dense, but each clause about Gmail labels versus the Outlook tree prevents a real misinterpretation.

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 one-parameter read-only lister with no output schema, the definition covers return shape (role + selectable), provider variance, and safety. The only material gap is default scope when email_account_id is omitted, plus a minor language mismatch with the otherwise English tool surface.

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 a single optional parameter, so the baseline is 3. The description adds that the parameter is optional and scopes to one mailbox, but does not say what happens when it is absent (all connected accounts? default account?), which is the one piece of parameter meaning the schema does not supply.

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 states a specific resource and scope: the folders of one mailbox, fetched live from the server, with the per-folder fields role and selectable. That is enough to distinguish it from create_mail_folder/delete_mail_folder/rename_mail_folder, though it never explicitly contrasts itself with sibling listers such as list_brevo_folders.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use, when-not-to-use, or alternative routing. Usages such as 'call before create/rename/delete to obtain folder ids' or 'omit email_account_id to span all accounts' are left entirely to inference.

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.