mail_accounts
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
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | ||
| blocks | No | ||
| account | No | ||
| folders | No |