Skip to main content
Glama

list_mailboxes

Read-onlyIdempotent

Get all mail folders like INBOX, Sent, and Drafts for a specific mail account. Provide the account ID to receive folder IDs, names, unread counts, and roles for message retrieval.

Instructions

List mailboxes (folders) for a mail account.

Returns all mailboxes like INBOX, Sent, Drafts, Trash, etc. Use the mailbox ID to list messages in that mailbox.

Args: account_id: The mail account ID. Use list_mail_accounts to find it.

Returns: JSON list of mailboxes, each with: id, name, display_name, unread count, special_role.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the description doesn't need to restate safety. It adds value by noting the return includes unread count and special_role, which is useful context beyond the schema.

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?

The description is concise and well-structured, with a clear summary, usage note for the parameter, and return description. It could be slightly trimmed, but the information is front-loaded.

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 simple list tool with one parameter, the description covers the purpose, parameter semantics, and return fields. It doesn't need to explain pagination or filtering since the output schema presumably covers the response structure.

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%, so the description must explain the parameter. It explains that account_id is the mail account ID and how to find it, adding meaning beyond the bare schema definition.

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 it lists mailboxes for a mail account, naming example folders (INBOX, Sent, etc.) and the return fields. It distinguishes from siblings like list_mail_messages and get_mail_message by focusing on the mailbox level.

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 explains when to use it (to get a mailbox ID for listing messages) and how to find the account_id via list_mail_accounts. However, it doesn't explicitly state when NOT to use it or mention alternative tools for filtering messages.

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

Deploy Server

Other Tools