Get mailbox info
mailbox_infoGet one folder's stats: how many emails it holds, how many are recent, its UIDVALIDITY, and which flags it supports.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>",
"mailbox": "<mailbox>"
},
"name": "mailbox_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The email account address | ||
| mailbox | Yes | Mailbox/folder name (e.g. "INBOX", "Sent", "Drafts") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | Yes | Flags this folder supports, e.g. "\\Seen", "\\Flagged". | |
| recent | Yes | How many arrived since the last session opened the folder (IMAP RECENT). | |
| mailbox | Yes | The folder these numbers describe. | |
| email_count | Yes | How many emails the folder holds. | |
| uid_validity | Yes | IMAP UIDVALIDITY. If it changes, every UID seen in this folder before is invalid. |