Skip to main content
Glama

Email: List folders

email_list_folders
Read-onlyIdempotent

List Gmail labels, Outlook folders or IMAP folders. Returned folder.id is required by folder-specific operations. For IMAP this is normally the first step before listing messages. Mailbox folder/label ID: Exact Gmail label, Outlook folder or IMAP folder id. Obtain with: email_list_folders -> folder.id Never pass: human folder name such as Inbox when an ID is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
cursorNoOpaque cursor returned by prior folder listing; never invent.
account_idNoOptional Nilyo connection ID (unipile_account_id from list_connected_accounts). Omit when the user has one account for this provider. When several exist, Nilyo never guesses: list them (display name, identifier, provider user ID), choose the one the user named or ask, and pass its ID here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds useful behavioral context by explaining that the returned folder.id is an exact Gmail label/Outlook/IMAP folder ID and that this listing is a preamble to message listing in IMAP. No contradiction with annotations exists.

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?

The opening sentences are efficient, but the tail block ('Mailbox folder/label ID: ...') reads like copy-pasted parameter documentation and is confusingly disconnected from this tool's input schema. It repeats the folder-id concept already stated, so the structure is not as clean as it could be.

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 read-only list tool with no output schema, the description covers the essential operational facts: what is listed, why the returned IDs matter, and how this fits into IMAP message listing. It does not describe pagination or the full return shape, but the cursor schema and annotations compensate reasonably.

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 at 67%, and the schema already documents cursor and account_id well; limit has no description. The description's 'Mailbox folder/label ID' block is more about output semantics than the current tool's parameters, so it adds only marginal value for parameter understanding. Baseline 3 is appropriate.

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?

The description states a specific verb and resource: 'List Gmail labels, Outlook folders or IMAP folders.' It goes beyond a simple label by explaining the output's role ('Returned folder.id is required by folder-specific operations'), which clearly differentiates this list tool from folder mutation or message-listing siblings.

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?

The description gives concrete usage context: 'For IMAP this is normally the first step before listing messages' and warns 'Never pass: human folder name such as Inbox when an ID is required.' However, it does not explicitly name alternatives like email_resolve_folder or email_get_folder, so the when-to-use guidance is strong but not fully explicit.

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.