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 company the person files it under, 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.

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

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 / company
      Added value: +{
      +  "description": "The company the person files it under, which a letter to another company's people may not cross unasked; absent where it is in none.",
      +  "type": "string"
      +}
  2. 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"
      +}
  3. 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"
      +]
  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_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"
      +]
  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",
      -  "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"
      +]
  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",
      -  "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"
      +]
  7. 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"
      +]
  8. 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"
  9. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/destructive/openWorld annotations, the description discloses what each entry contains (service, personal vs. work, company, search language, reconnection state, provider-disabled and user-disabled tools, inbox counts). 'It counts no action' additionally signals the call has no quota/side-effect cost, which is context the annotations do not carry.

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 dash-and-comma-chained sentence whose middle section is a dense run-on enumeration of return fields, which makes it harder to parse than necessary. The purpose is front-loaded, but the structure could be split into a purpose sentence plus a short field summary.

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 0-param, read-only listing tool with an output schema already present, the description covers purpose, scope of accounts, and what each entry yields. Redundantly restating return fields is not harmful, and nothing essential for a correct invocation is missing.

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 takes zero parameters, so there is nothing for the description to clarify; the baseline for a 0-param signature applies. The description correctly refrains from inventing filtering options.

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 gives a specific verb and resource ('List the connected mailboxes') and then enumerates which accounts qualify (Gmail, Outlook.com/Hotmail, Microsoft 365, any IMAP account). It does not distinguish itself from the closely named sibling messages_list_all_mailboxes, which leaves a real ambiguity the agent must resolve elsewhere.

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?

Usage is only implied: the phrase 'each by the name a tool's mailbox input takes' hints that this is the discovery call for mailbox identifiers before invoking other tools, but there is no explicit when-to-use, when-not-to-use, or named alternative. The agent has to infer the call ordering itself.

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.