Skip to main content
Glama

mail_accounts

Read-onlyIdempotent

The user's mailboxes: alias, address, message count, unread count, last sync and any sync error, and how each is set up: seen_by (me, or team: everyone in the company, Email Settings' Who sees it) and support (off, all or only: Customers Settings' Support addresses; all or only is a Support mailbox). A mailbox whose AI switch is off is never listed, so one missing here isn't proof it isn't connected or set up: ask the person.

folders=true: each mailbox's folders with their counts instead, with last sync time and errors (account: one mailbox, alias or address). Use it to say how fresh and complete the local copy is, and for the folder names mail_tidy's move takes. blocks=true: who is blocked in each mailbox instead (account: one mailbox), as Email Settings lists them: pattern (an address, or @domain for everyone at a company), account, since, and how many messages it covers. mail_tidy's unblock takes the pattern and account. rules=true: the rules in each mailbox instead (account: one mailbox), as Email Settings → Rules lists them: name, account ("" for all of the person's), match ("any" or "all" of when), when, then, enabled, summary, and how many it caught in 30 days. Rules run on new mail by themselves; only the person changes them, in Email Settings.

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

Input Schema

NameRequiredDescriptionDefault
rulesNo
blocksNo
accountNo
foldersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed world), yet the description adds real behavioral context: mailboxes with the AI switch off are never listed, so absence is not proof of non-connection, and rules 'run on new mail by themselves; only the person changes them' signals this surface is read-only and self-modifying elsewhere. It does not discuss permissions, rate limits, or ordering.

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 default listing is front-loaded, then each mode gets its own labeled block, which is a sensible structure for a mode-switching tool. Sentences are long and comma-dense with some run-ons (the 'seen_by...support' sentence), but little is redundant.

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 takes on the return-value burden and does so thoroughly, listing the fields of each of the four response shapes. The main incompleteness is the undefined interaction between simultaneously set flags and the absence of a stated default-order/size behavior.

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 0%, so the description must carry the burden, and it largely does: each of folders, blocks and rules is defined as an alternative output mode with its field set, and 'account' is explained as a single mailbox by alias or address, including the empty-string meaning in rules. It leaves ambiguous what happens when several flags are true and whether 'account' filters the default listing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates exactly what the tool returns per mailbox (alias, address, message count, unread count, last sync, sync error) and how each is set up (seen_by, support), which is far more specific than the name alone. It does not explicitly contrast itself with message-oriented siblings like mail_list, so the agent must infer the mailbox-vs-message split.

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 concrete usage contexts: 'Use it to say how fresh and complete the local copy is' for folders mode, and it names the downstream consumers ('the folder names mail_tidy's move takes', 'mail_tidy's unblock takes the pattern and account'). It lacks an explicit when-not-to-use statement or a warning about setting multiple flags at once.

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.