Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

list_folders

Read-only

Retrieve all IMAP folder names for a specified email account across Gmail, Outlook, or custom domains. Use it to discover mailbox structure before reading, organizing, or managing messages.

Instructions

List all IMAP folders for an account — returns folder names across any provider (Gmail, Outlook, custom domains).

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": {
      "accountId": "<accountId>"
    },
    "name": "list_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountIdYesThe ID of the account to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is carried by structured data. The description contributes the return content (folder names) and cross-provider coverage, but says nothing about hierarchy or delimiter handling in nested folders, which is the main behavioral question for an IMAP folder listing.

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?

One sentence, front-loaded with the action and resource, with the provider note appended as useful scope rather than filler. Nothing is redundant.

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 single-parameter read tool with annotations and no output schema, the definition covers what the tool does and roughly what comes back. The only real gap is whether results are flat or hierarchical, which matters for a folder tree but is a minor omission at this complexity.

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% for the single accountId parameter, so the schema already documents it and the description adds no syntax, format, or sourcing guidance beyond "for an account". Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ("List all IMAP folders") plus the scope ("for an account") and the provider breadth, which lets an agent separate it from list_emails or list_accounts without opening the schema. It stops short of naming a sibling it is not, so it is clear but not maximally differentiated.

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?

Usage is only implied: an agent can infer this is the discovery step before folder-scoped mail operations, but the description never says when to call it versus other list tools, nor any prerequisite such as needing a valid accountId from list_accounts.

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