Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

List mailboxes

list_mailboxes
Read-only

List all mailbox folders for an account with unread counts and special-use flags. Use list_accounts first to get the account name.

Instructions

List all mailbox folders for an account with unread counts and special-use flags. Use list_accounts first to get the account name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesAccount name from list_accounts

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
accountYes
mailboxesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "account": {
      +      "type": "string"
      +    },
      +    "count": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "mailboxes": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "name": {
      +            "type": "string"
      +          },
      +          "path": {
      +            "type": "string"
      +          },
      +          "specialUse": {
      +            "type": "string"
      +          },
      +          "totalMessages": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "unseenMessages": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "path"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "account",
      +    "count",
      +    "mailboxes"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.2.3

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful output context (unread counts, special-use flags), but says nothing about ordering, pagination, or what happens for accounts with no mailboxes.

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?

Two short sentences with zero filler; the capability statement leads and the prerequisite follows. Every clause earns its place.

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?

With an output schema present, return-value detail is handled elsewhere, and annotations cover the read-only nature. The prerequisite to call list_accounts closes the main gap; only edge cases like empty accounts or result ordering are unaddressed.

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% for the single 'account' parameter, so the schema already documents it. The description only reinforces provenance ('from list_accounts'), adding little beyond the schema's own wording.

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?

Specific verb+resource (list mailbox folders) scoped to a single account, and it names what the result carries: unread counts and special-use flags. That distinguishes it from sibling listers like list_accounts and list_labels, though it does not explicitly contrast itself with create_mailbox/rename_mailbox beyond the obvious naming.

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 an explicit prerequisite ordering: 'Use list_accounts first to get the account name,' which tells the agent the required call sequence. It stops short of stating when-not to use it or naming alternative folder-inspection tools such as find_email_folder.

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