Skip to main content
Glama
flt-sudo

gmail-mcp-server

by flt-sudo

List Gmail accounts

gmail_list_accounts
Read-onlyIdempotent

List all configured Gmail accounts with their email, alias, access level, default status, and added date, without exposing tokens.

Instructions

List every stored Gmail account: email, alias, access level (read-only, read+modify, or read+modify+send), whether it is the default, and when it was added. Tokens are never exposed.

Args: none.

Returns: one line per account, or a note that no accounts are configured.

Examples:

  • {} — list all accounts

Error Handling: returns an error only if the local accounts file is unreadable or corrupt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, but the description adds valuable behavioral detail: tokens are never exposed, output is one line per account, the no-accounts case is handled, and errors occur only if the local accounts file is unreadable or corrupt.

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 description is front-loaded with the core purpose, then organized into short labeled sections for args, returns, examples, and errors. Every section adds useful information without excessive wording.

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 zero-parameter read-only tool with no output schema, the description fully covers what the agent needs: invocation, return content, empty-result behavior, and error conditions. Nothing essential 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?

There are zero parameters and the schema fully documents that with an empty properties object. The description reinforces this with 'Args: none' and a literal '{}' example, adding confirmation even though there is no parameter meaning to elaborate.

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 and resource: 'List every stored Gmail account,' followed by the exact fields returned. This clearly distinguishes it from sibling tools like gmail_list_labels and account-mutation tools such as gmail_add_account and gmail_remove_account.

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?

The intended use is clear: call this when you need to enumerate stored accounts and their metadata. It does not explicitly name alternatives or exclusion criteria, but no other sibling provides account listing, so the context is sufficient.

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