Skip to main content
Glama

List mailboxes

mailboxes_list
Read-only

List the connected mailboxes that answer - Gmail, Outlook.com and Hotmail, Microsoft 365 and any other email account read over IMAP - each by the name a tool's mailbox input takes, with its service, whether it is a personal or a work account, the search language it reads, whether it needs reconnecting, the tools its provider does not offer and those the person turned off, and its inbox's counts. It counts no action.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
mailboxesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / mailboxes / items / properties / inbox / properties / newestOnly
      Added value: +{
      +  "const": true,
      +  "description": "Present where its provider shows a mail app only the inbox's newest messages: the counts are of those, and the inbox holds more.",
      +  "type": "boolean"
      +}
  2. Changed8 schema fields changed
    • addedOutput schema / properties / mailboxes / items / properties / account
      Added value: +{
      +  "description": "Whether it is a personal account or a work or school one; absent where what its provider stores cannot say.",
      +  "enum": [
      +    "personal",
      +    "work"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / mailboxes / items / properties / connection
      Added value: +{
      +  "description": "connected; needs_reconnection, when last checked it needed reconnecting; or blocked, when last checked its administrator had blocked Lumman.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / mailboxes / items / properties / inbox
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Its inbox's counts, all and unread, in the unit its provider counts: threads in a Gmail whose provider is google, as Gmail's own inbox counts, messages in an Outlook mailbox and every other. Present only where it is connected and the person allows messages_list on it.",
      +  "properties": {
      +    "total": {
      +      "type": "number"
      +    },
      +    "unit": {
      +      "enum": [
      +        "messages",
      +        "threads"
      +      ],
      +      "type": "string"
      +    },
      +    "unread": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "unread",
      +    "unit"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / mailboxes / items / properties / inboxUncounted
      Added value: +{
      +  "const": true,
      +  "description": "Present where its inbox would be counted but did not answer in time, or refused to, so its counts are left out.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / mailboxes / items / properties / searches
      Added value: +{
      +  "description": "The language messages_list's query reads for it: gmail, Gmail's search operators; outlook, Microsoft's keyword query language; imap, the few terms any other mailbox whose provider is imap reads.",
      +  "enum": [
      +    "gmail",
      +    "outlook",
      +    "imap"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / mailboxes / items / properties / service
      Added value: +{
      +  "description": "The service holding it as a person names it, or the domain a mail server no service is known by serves.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / mailboxes / items / properties / turnedOff
      Added value: +{
      +  "description": "The tools its provider offers that the person turned off for it.",
      +  "items": {
      +    "enum": [
      +      "messages_list",
      +      "messages_list_all_mailboxes",
      +      "threads_get",
      +      "messages_get",
      +      "messages_attachments_get",
      +      "sweeps_preview",
      +      "drafts_create",
      +      "drafts_update",
      +      "drafts_reply",
      +      "drafts_forward",
      +      "drafts_delete",
      +      "messages_send",
      +      "drafts_send",
      +      "messages_reply",
      +      "messages_forward",
      +      "labels_list",
      +      "labels_create",
      +      "labels_update",
      +      "labels_delete",
      +      "threads_modify",
      +      "threads_archive",
      +      "threads_trash",
      +      "threads_untrash",
      +      "sweeps_apply",
      +      "sweeps_put_back",
      +      "settings_filters_list",
      +      "settings_filters_create",
      +      "settings_filters_update",
      +      "settings_filters_delete",
      +      "settings_send_as_patch",
      +      "settings_send_as_get",
      +      "settings_send_as_find",
      +      "settings_get_vacation",
      +      "settings_update_vacation"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / mailboxes / items / required
      Previous value: -[
      -  "mailbox",
      -  "emailAddress",
      -  "provider",
      -  "unsupportedMethods"
      -]New value: +[
      +  "mailbox",
      +  "emailAddress",
      +  "provider",
      +  "service",
      +  "searches",
      +  "connection",
      +  "unsupportedMethods",
      +  "turnedOff"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / properties / mailboxes / items / properties / unsupportedMethods / items / enum
      Previous value: -[
      -  "messages_list",
      -  "messages_list_all_mailboxes",
      -  "threads_get",
      -  "messages_get",
      -  "messages_attachments_get",
      -  "sweeps_preview",
      -  "drafts_create",
      -  "drafts_update",
      -  "drafts_reply",
      -  "drafts_forward",
      -  "drafts_delete",
      -  "messages_send",
      -  "drafts_send",
      -  "messages_reply",
      -  "messages_forward",
      -  "labels_list",
      -  "labels_create",
      -  "labels_update",
      -  "labels_delete",
      -  "threads_modify",
      -  "threads_archive",
      -  "threads_trash",
      -  "threads_untrash",
      -  "sweeps_apply",
      -  "sweeps_put_back",
      -  "settings_filters_list",
      -  "settings_filters_create",
      -  "settings_filters_delete",
      -  "settings_send_as_patch",
      -  "settings_send_as_get",
      -  "settings_send_as_find",
      -  "settings_get_vacation",
      -  "settings_update_vacation"
      -]New value: +[
      +  "messages_list",
      +  "messages_list_all_mailboxes",
      +  "threads_get",
      +  "messages_get",
      +  "messages_attachments_get",
      +  "sweeps_preview",
      +  "drafts_create",
      +  "drafts_update",
      +  "drafts_reply",
      +  "drafts_forward",
      +  "drafts_delete",
      +  "messages_send",
      +  "drafts_send",
      +  "messages_reply",
      +  "messages_forward",
      +  "labels_list",
      +  "labels_create",
      +  "labels_update",
      +  "labels_delete",
      +  "threads_modify",
      +  "threads_archive",
      +  "threads_trash",
      +  "threads_untrash",
      +  "sweeps_apply",
      +  "sweeps_put_back",
      +  "settings_filters_list",
      +  "settings_filters_create",
      +  "settings_filters_update",
      +  "settings_filters_delete",
      +  "settings_send_as_patch",
      +  "settings_send_as_get",
      +  "settings_send_as_find",
      +  "settings_get_vacation",
      +  "settings_update_vacation"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / properties / mailboxes / items / properties / unsupportedMethods / items / enum
      Previous value: -[
      -  "messages_list",
      -  "messages_list_all_mailboxes",
      -  "threads_get",
      -  "messages_get",
      -  "messages_attachments_get",
      -  "sweeps_preview",
      -  "drafts_create",
      -  "drafts_update",
      -  "drafts_reply",
      -  "drafts_forward",
      -  "drafts_delete",
      -  "messages_send",
      -  "drafts_send",
      -  "messages_reply",
      -  "messages_forward",
      -  "labels_list",
      -  "labels_create",
      -  "labels_update",
      -  "labels_delete",
      -  "threads_modify",
      -  "threads_archive",
      -  "threads_trash",
      -  "threads_untrash",
      -  "sweeps_apply",
      -  "sweeps_put_back",
      -  "settings_filters_list",
      -  "settings_filters_create",
      -  "settings_filters_delete",
      -  "settings_send_as_patch",
      -  "settings_send_as_get",
      -  "settings_get_vacation",
      -  "settings_update_vacation"
      -]New value: +[
      +  "messages_list",
      +  "messages_list_all_mailboxes",
      +  "threads_get",
      +  "messages_get",
      +  "messages_attachments_get",
      +  "sweeps_preview",
      +  "drafts_create",
      +  "drafts_update",
      +  "drafts_reply",
      +  "drafts_forward",
      +  "drafts_delete",
      +  "messages_send",
      +  "drafts_send",
      +  "messages_reply",
      +  "messages_forward",
      +  "labels_list",
      +  "labels_create",
      +  "labels_update",
      +  "labels_delete",
      +  "threads_modify",
      +  "threads_archive",
      +  "threads_trash",
      +  "threads_untrash",
      +  "sweeps_apply",
      +  "sweeps_put_back",
      +  "settings_filters_list",
      +  "settings_filters_create",
      +  "settings_filters_delete",
      +  "settings_send_as_patch",
      +  "settings_send_as_get",
      +  "settings_send_as_find",
      +  "settings_get_vacation",
      +  "settings_update_vacation"
      +]
  5. Changed1 schema field changed
    • changedOutput schema / properties / mailboxes / items / properties / unsupportedMethods / items / enum
      Previous value: -[
      -  "messages_list",
      -  "messages_list_all_mailboxes",
      -  "threads_get",
      -  "messages_get",
      -  "messages_attachments_get",
      -  "sweeps_preview",
      -  "drafts_create",
      -  "drafts_update",
      -  "drafts_reply",
      -  "drafts_forward",
      -  "drafts_delete",
      -  "messages_send",
      -  "drafts_send",
      -  "messages_reply",
      -  "messages_forward",
      -  "labels_list",
      -  "labels_create",
      -  "labels_update",
      -  "labels_delete",
      -  "threads_modify",
      -  "threads_archive",
      -  "threads_trash",
      -  "threads_untrash",
      -  "settings_filters_list",
      -  "settings_filters_create",
      -  "settings_filters_delete",
      -  "settings_send_as_patch",
      -  "settings_send_as_get",
      -  "settings_get_vacation",
      -  "settings_update_vacation"
      -]New value: +[
      +  "messages_list",
      +  "messages_list_all_mailboxes",
      +  "threads_get",
      +  "messages_get",
      +  "messages_attachments_get",
      +  "sweeps_preview",
      +  "drafts_create",
      +  "drafts_update",
      +  "drafts_reply",
      +  "drafts_forward",
      +  "drafts_delete",
      +  "messages_send",
      +  "drafts_send",
      +  "messages_reply",
      +  "messages_forward",
      +  "labels_list",
      +  "labels_create",
      +  "labels_update",
      +  "labels_delete",
      +  "threads_modify",
      +  "threads_archive",
      +  "threads_trash",
      +  "threads_untrash",
      +  "sweeps_apply",
      +  "sweeps_put_back",
      +  "settings_filters_list",
      +  "settings_filters_create",
      +  "settings_filters_delete",
      +  "settings_send_as_patch",
      +  "settings_send_as_get",
      +  "settings_get_vacation",
      +  "settings_update_vacation"
      +]
  6. Changed1 schema field changed
    • changedOutput schema / properties / mailboxes / items / properties / unsupportedMethods / items / enum
      Previous value: -[
      -  "messages_list",
      -  "messages_list_all_mailboxes",
      -  "threads_get",
      -  "messages_get",
      -  "messages_attachments_get",
      -  "drafts_create",
      -  "drafts_update",
      -  "drafts_reply",
      -  "drafts_forward",
      -  "drafts_delete",
      -  "messages_send",
      -  "drafts_send",
      -  "messages_reply",
      -  "messages_forward",
      -  "labels_list",
      -  "labels_create",
      -  "labels_update",
      -  "labels_delete",
      -  "threads_modify",
      -  "threads_archive",
      -  "threads_trash",
      -  "threads_untrash",
      -  "settings_filters_list",
      -  "settings_filters_create",
      -  "settings_filters_delete",
      -  "settings_send_as_patch",
      -  "settings_send_as_get",
      -  "settings_get_vacation",
      -  "settings_update_vacation"
      -]New value: +[
      +  "messages_list",
      +  "messages_list_all_mailboxes",
      +  "threads_get",
      +  "messages_get",
      +  "messages_attachments_get",
      +  "sweeps_preview",
      +  "drafts_create",
      +  "drafts_update",
      +  "drafts_reply",
      +  "drafts_forward",
      +  "drafts_delete",
      +  "messages_send",
      +  "drafts_send",
      +  "messages_reply",
      +  "messages_forward",
      +  "labels_list",
      +  "labels_create",
      +  "labels_update",
      +  "labels_delete",
      +  "threads_modify",
      +  "threads_archive",
      +  "threads_trash",
      +  "threads_untrash",
      +  "settings_filters_list",
      +  "settings_filters_create",
      +  "settings_filters_delete",
      +  "settings_send_as_patch",
      +  "settings_send_as_get",
      +  "settings_get_vacation",
      +  "settings_update_vacation"
      +]
  7. Changed1 schema field changed
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  8. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false, openWorldHint false), so the description only needs to add context, and it does: it discloses the exact per-mailbox attributes returned, including reconnect-needed state and provider/toggle limitations. "It counts no action" adds a behavioral trait not present in any structured field, though the phrasing is opaque enough to be only partly useful.

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

Conciseness3/5

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

It is a single long run-on sentence built from dashes and comma-separated clauses, which makes the field inventory hard to parse at a glance. The verb and resource are front-loaded, which is good, but the trailing enumeration of returned attributes is dense and could have been a compact list or omitted given the output schema.

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

Completeness3/5

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

For a zero-parameter read tool with full annotation coverage and an output schema, the essential information is present and no critical gap exists. The main omissions are the relationship to messages_list_all_mailboxes and clarification of the cryptic "counts no action" claim, and much of the text duplicates what the output schema already declares.

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?

The tool takes zero parameters, so there is no parameter meaning to add and the baseline of 4 would normally apply. The description instead spends its words on return-value attributes, which are already covered by the output schema, so it neither compensates nor harms — a middling 3 reflects the absence of any parameter-relevant contribution.

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?

"List the connected mailboxes" gives a specific verb and resource, then enumerates the providers covered (Gmail, Outlook.com/Hotmail, Microsoft 365, generic IMAP), so the scope is unambiguous. It stops short of distinguishing itself from the sibling messages_list_all_mailboxes, which an agent could plausibly confuse with this tool.

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

Usage Guidelines3/5

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

The phrase "each by the name a tool's mailbox input takes" implicitly tells the agent to call this first to discover valid mailbox identifiers for other tools, which is useful usage context. However, there is no explicit when-to-use statement, no exclusion, and no mention of the messages_list_all_mailboxes alternative, so the guidance is only implied.

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.