Manage inbox
manage_inboxTool 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": {
"action": "<action>"
},
"name": "manage_inbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The operation to perform. One of: - 'list_labels': List available labels (Gmail) or categories (Outlook). - 'apply_label': Apply a label/category to emails. Creates if it doesn't exist. Requires email_ids and label_name. - 'remove_label': Remove a label/category from emails. Requires email_ids and label_name. - 'archive': Archive emails (removes from inbox, keeps in account). Requires email_ids. - 'mark_read': Mark emails as read. Requires email_ids. - 'unsubscribe': Unsubscribe from a mailing list via List-Unsubscribe header. Requires email_ids (one email). ALWAYS confirm with the user before calling this. - 'search_by_label': Search emails by label (Gmail) or category (Outlook). Requires label_name. Returns matching emails directly from the provider API. | |
| mailbox | No | Email address of a connected mailbox, for list_labels and search_by_label. When the user has multiple mailboxes and neither mailbox nor email_ids is given, ask which to use. | |
| provider | No | Which email account to use ('outlook' or 'gmail'). Only needed if the user has both connected and no email_ids are provided. | |
| email_ids | No | List of email IDs from search_emails results. They may come from several mailboxes; each email is acted on in its own. | |
| label_name | No | Label name for apply_label, remove_label, or search_by_label actions. | |
| max_results | No | Maximum number of emails to return for search_by_label (default 20, max 50). | |
| on_behalf_of | No | A teammate's email, or an agency client's from list_agency_clients, to run this call in that account: their agents, settings, connected accounts, and credits. Omit it to act on your own account. | |
| exclusive_labels | No | For apply_label only. A set of mutually exclusive labels (e.g. inbox organization categories). When provided, applying a label automatically removes any other exclusive_labels from older messages in the same thread. This keeps one label per thread. |