Skip to main content
Glama
adelaidasofia

imap-mcp

List mailboxes

imap_list_mailboxes
Read-only

List every mailbox on the account to retrieve exact folder names, preventing search errors from provider-specific naming variations.

Instructions

List every mailbox (folder) on the account.

Use this before searching so mailbox names are exact — they differ by provider and by language. iCloud says "Sent Messages", Outlook says "Sent Items", Gmail nests under "[Gmail]/".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint. The description adds valuable behavioral context about provider- and language-specific mailbox naming, and explains that no filtering occurs since it lists every mailbox. This goes beyond the annotation details.

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 compact and well-structured. The core purpose is front-loaded, followed by concrete usage guidance and vivid provider examples. Every sentence earns its place and no filler is present.

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

Completeness5/5

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

For a simple, parameterless, read-only tool with an output schema, the description is complete. It explains what the tool does, why it matters, and how to use it effectively, leaving no practical gap for an agent deciding whether to call it.

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?

The tool has zero parameters, so the description is not required to explain parameter behavior. The baseline of 4 applies here, and the description correctly focuses on the tool's output and usage rather than non-existent inputs.

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 clearly states the action ('List every mailbox (folder) on the account') with a specific verb and resource. It also distinguishes the purpose from search-related siblings by emphasizing exact mailbox names, which are needed before searching.

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 explicitly advises using this tool before searching because mailbox names vary by provider and language. This gives clear contextual guidance, though it does not explicitly list when not to use the tool or name an alternative.

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