Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

List folders

list_folders
Read-onlyIdempotent

List available email folders and mailboxes with cached message counts. Use live counts for exact totals before deletion or cleanup decisions.

Instructions

List available email folders/mailboxes with message counts. The per-folder counts come from a cached IMAP STATUS that Proton Mail Bridge can serve stale — do NOT treat them as authoritative for decisions like "is this folder empty before deleting". Use count_messages or folder_stats (both SELECT+SEARCH the live mailbox) when you need an exact count.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv1.0.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-open-world operation. The description adds important behavioral context beyond that: the per-folder counts come from a cached IMAP STATUS that Proton Mail Bridge can serve stale. It does not describe ordering, hierarchy, or pagination, but the stale-data caveat is the critical behavioral detail.

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, front-loads the listing purpose, and immediately follows with the critical caveat. Every sentence earns its place by either identifying the tool or preventing misuse of its output.

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 zero-parameter listing tool with no output schema, the description is complete enough to call correctly. It explains the returned resource, mentions that message counts are included, and clearly states the limitation of those counts and where to get exact alternatives.

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 there is no parameter semantics to explain. With no inputs, the baseline of 4 is appropriate and the description correctly avoids inventing parameter guidance.

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 available email folders/mailboxes with message counts.' It also distinguishes the tool's count data from live count tools by warning that the counts are cached, so an agent can understand both what it does and what it does not guarantee.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly names alternatives, `count_messages` and `folder_stats`, and states the condition for using them: when an exact live count is needed. It also gives a concrete when-not-to-use case, warning against using cached counts for decisions like checking whether a folder is empty before deleting.

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