Skip to main content
Glama

List mail folders

list_mail_folders

List every mail folder in one mailbox, including nested folders, with item counts and a full path like "Clients/Acme". Unlike Gmail, Outlook has a real folder tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mailboxYesEmail address of the connected Outlook/Microsoft 365 mailbox to act on. Call list_authorized_mailboxes to see available options.
includeHiddenNoInclude folders Outlook hides by default

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It does so by stating that the tool returns item counts and full folder paths, and that it includes nested folders. This gives the agent a clear picture of the output and scope. It does not mention permissions, rate limits, or side effects, but as a read-only list operation, those are less critical. The description goes beyond a bare 'List folders' by specifying output characteristics, which is valuable.

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?

The description is two sentences with zero filler. The first sentence front-loads the core function and key output details (nested folders, item counts, full paths). The second sentence adds a useful contrast with Gmail that aids selection. Every word earns its place, and the structure is efficient.

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 list tool with only two parameters, full schema coverage, and no output schema, the description is nearly complete. It explains what is returned (item counts, full paths, nested folders) and the mailbox context. It does not mention pagination or error behavior, but for a folder listing that is likely not critical. The contrast with Gmail covers the sibling-selection need. A minor gap is the absence of an explicit read-only note, but that is implied by 'List'.

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 description coverage is 100%: both mailbox and includeHidden have descriptive text. The tool description does not add any extra parameter-specific meaning beyond what the schema already provides. It mentions mailbox is Outlook/Microsoft 365, which the schema also states. Per the rubric, with high schema coverage the baseline is 3, and the description does not elevate it.

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 action (list every mail folder), a resource (one mailbox), and adds detail (nested folders, item counts, full paths). It distinguishes itself from Gmail's label model by explicitly contrasting with Gmail, which helps an agent pick this over list_gmail_labels. The verb 'List' and resource 'mail folders' are unambiguous.

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 clear context: it's for Outlook/Microsoft 365 mailboxes, and it contrasts with Gmail's folder model, implying it should be used when working with Outlook rather than Gmail. It does not explicitly name alternatives like list_gmail_labels or list_messages, but the 'Unlike Gmail' note provides a strong usage signal. It lacks an explicit 'when not to use' clause, but the context is sufficient for an agent to infer.

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