Skip to main content
Glama

Mail: List folders

mail_list_folders
Read-only

The caller's mail folders with their message and unread counts. Needed before any move: a folder name the model invents is not a mailbox, and 'Archive' is spelled differently on Gmail, Mailcow and Outlook.

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": "mail_list_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault
mailboxNoNarrow to one of the caller's mailboxes by its label.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds genuine context beyond that: it discloses the return payload (message and unread counts) and a behavioral caveat that folder naming differs across Gmail, Mailcow and Outlook, which affects how results must be interpreted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences with the output contents front-loaded and the pre-move requirement immediately after. The provider-naming example is slightly idiosyncratic in wording but earns its place as a practical warning against fabricated names.

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 read-only, single-optional-parameter list tool with full schema coverage and explicit annotations, this covers what the agent needs: what comes back and why to call it. Return-format depth is unnecessary since no output schema exists but the counts are named.

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% and the single optional 'mailbox' parameter is already documented as narrowing by mailbox label. The description adds nothing about the parameter, so the baseline of 3 applies.

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 identifies the resource precisely — 'the caller's mail folders with their message and unread counts' — which distinguishes it from siblings like mail_list_messages or mail_list_labels by naming the folder entity and the counts it returns. It lacks an explicit verb ('list'), but the noun phrase plus returned fields make the operation 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?

It gives a concrete when-to-use rule: 'Needed before any move,' with the rationale that invented folder names will not resolve. It does not name a specific alternative tool for related lookups, but the context is clear enough to steer invocation.

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