Skip to main content
Glama
LeoPhoenixT

readNdraft IMAP MCP

by LeoPhoenixT

list_mailboxes

Read-onlyIdempotent

Retrieve exact mailbox names for one to ten IMAP accounts, isolating failures per account so one error does not block the rest.

Instructions

List exact mailbox names for 1-10 accounts with isolated failures.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.11.0
    • changedOutput schema / $defs / MailboxBatchOutput / properties / error / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/SafeErrorOutput"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / $defs / MailboxBatchOutput / properties / error / title
      Removed value: -"Error"
    • addedOutput schema / $defs / SafeErrorOutput
      Added value: +{
      +  "properties": {
      +    "code": {
      +      "enum": [
      +        "partial_move",
      +        "permission_denied",
      +        "not_found",
      +        "invalid_request",
      +        "timeout",
      +        "rate_limited",
      +        "draft_busy",
      +        "recovery_required",
      +        "imap_error",
      +        "connection_error",
      +        "broker_error",
      +        "outcome_unknown"
      +      ],
      +      "title": "Code",
      +      "type": "string"
      +    },
      +    "message": {
      +      "title": "Message",
      +      "type": "string"
      +    },
      +    "reason": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "task_rate",
      +            "session_queue_timeout",
      +            "imap_worker_capacity",
      +            "ipc_helper_capacity",
      +            "request_deadline",
      +            "transport_loss"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Reason"
      +    },
      +    "retry_after_seconds": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Retry After Seconds"
      +    },
      +    "scope": {
      +      "enum": [
      +        "request",
      +        "item",
      +        "account",
      +        "broker",
      +        "client"
      +      ],
      +      "title": "Scope",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message",
      +    "scope",
      +    "reason",
      +    "retry_after_seconds"
      +  ],
      +  "title": "SafeErrorOutput",
      +  "type": "object"
      +}
  2. Changed5 schema fields changedv0.9.0
    • removedInput schema / properties / account_id
      Removed value: -{
      -  "title": "Account Id",
      -  "type": "string"
      -}
    • addedInput schema / properties / account_ids
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "title": "Account Ids",
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "account_id"
      -]New value: +[
      +  "account_ids"
      +]
    • addedOutput schema / $defs / MailboxBatchOutput
      Added value: +{
      +  "properties": {
      +    "account_id": {
      +      "title": "Account Id",
      +      "type": "string"
      +    },
      +    "error": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Error"
      +    },
      +    "mailboxes": {
      +      "items": {
      +        "$ref": "#/$defs/MailboxOutput"
      +      },
      +      "title": "Mailboxes",
      +      "type": "array"
      +    },
      +    "ok": {
      +      "title": "Ok",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "account_id",
      +    "ok",
      +    "mailboxes",
      +    "error"
      +  ],
      +  "title": "MailboxBatchOutput",
      +  "type": "object"
      +}
    • changedOutput schema / properties / result / items / $ref
      Previous value: -"#/$defs/MailboxOutput"New value: +"#/$defs/MailboxBatchOutput"
  3. First observedv0.1.4

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the description does not need to repeat those. It adds meaningful behavioral context with 'isolated failures' and 'exact mailbox names,' which go beyond the annotations.

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?

The entire description is one short, front-loaded sentence that conveys purpose, scope, and failure behavior without any filler or redundancy.

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

Completeness5/5

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

For a single-parameter read-only tool with an output schema and strong annotations, the description covers the essential information: what is listed, for how many accounts, and how failures behave. Nothing important is missing.

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 0%, so the description must compensate. It adds value by stating the account count range (1-10) and tying the behavior to accounts, but it does not clarify where account IDs come from or how invalid IDs are handled. Still, the single self-descriptive account_ids parameter keeps this adequate.

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 uses a specific verb ('List'), a clear resource ('mailbox names'), and a precise scope ('for 1-10 accounts'). It distinguishes itself from the sibling tool list_accounts, which lists accounts rather than mailbox names.

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 description implies the tool is used when you need exact mailbox names for up to ten accounts, but it does not explicitly mention when not to use it or suggest alternatives. The 'isolated failures' note provides some contextual expectation but not comparative guidance.

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