Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by TrevorIkky

imap_mailboxes

List IMAP folders for a configured account to find mailboxes for browsing or searching. Use the account key from your apple-mail-mcp config, not the name shown in Mail.app.

Instructions

List IMAP folders for a configured account.

account is a key under "accounts" in ~/.config/apple-mail-mcp/config.json, not necessarily the name Mail.app shows.

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": {
      "account": "<account>"
    },
    "name": "imap_mailboxes"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that account must be a config.json key rather than a Mail.app display name, which is real operational context, but it says nothing about read-only behavior, failure modes for unknown accounts, or result ordering.

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?

Two sentences, front-loaded with the action and followed by the one clarification an agent actually needs. Nothing is redundant or padded.

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?

An output schema exists, so return values need not be described, and the tool takes a single parameter whose semantics are fully explained. For a simple one-argument lister with a defined output, this is sufficient.

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?

Schema coverage is 0% and the schema only labels the field 'Account', so the description is doing genuine work by explaining that the value is a key under 'accounts' in ~/.config/apple-mail-mcp/config.json and explicitly not the Mail.app display name. That distinction would otherwise be a likely source of invocation errors.

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 verb and resource (list IMAP folders) and scopes it to a configured account, which is concrete. It does not, however, distinguish itself from the sibling list_mailboxes, leaving the agent to guess which lister applies in a given situation.

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 or when-not-to-use guidance and no mention of alternatives such as list_mailboxes or list_accounts. Usage is only inferable from the phrasing 'for a configured account', which implicitly assumes an account key is already known.

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