Skip to main content
Glama

List connected mailboxes

list_authorized_mailboxes
Read-only

List every mailbox (Gmail/Google Workspace, Microsoft/Outlook and AgentMail) available to you in the workspaces you belong to, with provider, status and your access level. access is 'write' (everything your switches allow) or 'read' (search and read tools only — anything that changes the mailbox is refused). folders says whether the file tools (Drive, OneDrive, Sheets, Excel) are limited to certain folders for you: files outside them are not returned by list and search and cannot be opened, moved, shared or edited, and creating a file needs a parent folder you can reach. calendars does the same for the calendar tools: calendars outside your rule are not listed and cannot be read or written. AgentMail inboxes have no files or calendars, so they carry neither. Mailboxes you have no access to are not listed. Mailboxes with status 'active' can be used by the other tools. If nothing is connected yet, the reply carries reply_to_person with the connect links: say it to the person right away.

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_authorized_mailboxes"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark this as a safe read, yet the description adds substantial semantics: what 'access: read' actually refuses, how 'folders' restrictions block list/search/open/move/share/edit and require a reachable parent to create files, the equivalent rule for calendars, that AgentMail carries neither, and that inaccessible mailboxes are omitted. It even specifies the reply_to_person fallback behavior, which no annotation covers.

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?

It is front-loaded with the core action and then walks through the returned-field semantics in a logical order. The backtick-delimited field names keep it scannable, though the folders/calendars restriction explanation is dense and could be tightened without losing meaning.

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?

There is no output schema, so the description carries the burden of describing the return shape, and it does: provider, status, access level, folders, calendars, and the reply_to_person connect-links case. For a zero-parameter discovery tool, an agent has everything needed to call it and interpret what comes back.

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 no input semantics to explain and the baseline of 4 applies. The description instead spends its effort defining the meaning of returned fields, which is useful but is not a parameter concern.

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 opening sentence gives a specific verb (list) and resource (mailboxes) plus the scope ('available to you in the workspaces you belong to') and the providers covered (Gmail/Workspace, Microsoft/Outlook, AgentMail). It also names the fields returned (provider, status, access level), which distinguishes it from sibling listers like list_mail_folders or list_messages.

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 tells the agent that only 'active' mailboxes can be used by other tools and gives an explicit action for the empty case ('If nothing is connected yet... say it to the person right away'). It stops short of stating when to prefer this tool over list_workspaces or when to call it before mailbox-specific tools, so context is clear but alternatives are not named.

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.

Resources