Skip to main content
Glama

list_mailboxes

Read-only

The tenant's mailboxes, with what each can actually DO: can_read (an IMAP host is configured) and can_send (an SMTP host, or a Gmail account connected by OAuth). Several per tenant are expected — one per customer if that is how the work is divided. Credentials are never returned. When an agent with a mailbox setting (set_agent_mailboxes) is acting, only its mailboxes are listed and its default carries standard=true; all=true lists every mailbox of the tenant. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
allNoList every mailbox of the tenant, not only the acting agent's

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses two non-obvious behaviors: credentials are never returned, and the acting agent's default mailbox is flagged standard=true. That automatic scoping by agent setting is exactly the kind of hidden behavior a description needs to carry.

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 capability explanation and scoping rule are front-loaded and information-dense. The trailing 'Read-only' merely restates the readOnlyHint annotation and could be dropped.

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 no output schema, the description usefully describes the returned capability fields and the standard flag, plus credentials exclusion. It leaves the response envelope (ordering, additional mailbox fields) unspecified, but nothing critical for 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?

Schema coverage is 100% and the single parameter is already documented, so baseline is 3. The description adds real meaning by explaining what 'all' changes in terms of scoping and the standard=true default flag, making the parameter's effect concrete.

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 names the resource (the tenant's mailboxes) and the exact payload of interest — can_read (IMAP configured) and can_send (SMTP or OAuth Gmail) — so an agent knows precisely what comes back. It also implicitly separates itself from set_agent_mailboxes by framing this as the listing side of that configuration.

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 clear selection logic: without all, only the acting agent's mailboxes are listed when a mailbox setting exists; with all=true, every tenant mailbox. The only gap is that it never states when to avoid this tool or what happens if no mailbox setting exists.

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.