imap_get_unread_count
Count unread emails per folder and total in a Viettel mailbox for 'how many unread do I have?' overviews; limit folders to speed checks.
Instructions
Count unread (unseen) emails per folder, plus a total. Use for "how many unread do I have?" overviews. Defaults to all folders; pass a folders list to limit scope and speed it up.
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": "imap_get_unread_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folders | No | List of folders to check (default: all) | |
| accountId | No | Account ID (from imap_list_accounts). Optional if accountName is given or only one account is configured. | |
| accountName | No | Account name instead of accountId. Optional if accountId is given or only one account is configured. |