Skip to main content
Glama

List email accounts

list_email_accounts
Read-only

List the connected mailboxes on profiles the caller can access, newest first, with each one's id, provider, address, status (CONNECTED, PAUSED, RECONNECT_REQUIRED, ERROR), sync state and IMAP settings; credentials are never returned. Use it to find the account id the other email tools take; use get_email_sync_status for just one account's sync progress.

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

Input Schema

NameRequiredDescriptionDefault
profileIdNoOnly mailboxes attached to this profile (UUID from list_profiles); omit for all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds meaningfully on top: newest-first ordering, enumeration of returned fields, the access-scoping rule, and the important guarantee that credentials are never returned. The gap is pagination/result-limit behavior, which matters for a list tool and is not addressed.

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?

One dense sentence establishes the operation, ordering, and returned data, followed by a short routing sentence. The finding aid (account id) and the sibling alternative are front-loaded with no wasted wording.

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 enumerates what each record contains, which is exactly the burden it must carry. The only shortfall is the absence of pagination or result-size expectations for a potentially large list, plus no explicit note on whether sync state is live or cached.

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 coverage is 100% and the single profileId parameter is fully documented in the schema, including that omitting it returns all profiles. The description only gestures at profile scoping in prose without adding format or behavior detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource (list connected mailboxes), the scope (profiles the caller can access), the ordering (newest first), and the returned fields including the status enum values. It also explicitly distinguishes itself from get_email_sync_status, so an agent can route correctly without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete use case — find the account id that the other email tools require — and names the alternative for a narrower need (get_email_sync_status for a single account's progress). Both the when-to-use and when-not-to-use conditions are present.

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