Create email monitor
create_email_monitorWatch the user's mail for messages that have not arrived yet. Give at least one of from_contains, subject_contains or body_contains; all given must match (case-insensitive). Mail containing any word in from_excludes, subject_excludes or body_excludes (comma-separated) never matches. Mail the user sent is skipped unless include_own is true. Stops after ttl_hours or max_hits matches. Returns a token for check_monitor and cancel_monitor. It only records and notifies; it never sends, changes or deletes anything. routes tags the monitor for check_route; use 'duet:' for a Claude Duet channel so any later session there can read it. Requires Keeploop Pro.
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": "create_email_monitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A short name for the monitor. | |
| routes | No | Up to 8 labels check_route reads this monitor's matches by, e.g. 'duet:fissler'. Lowercase letters, digits, '.', '_', ':' and '-'. A new monitor with routes has no Mac banner or ntfy push. | |
| account | No | Only this mail account (name or address). | |
| mailbox | No | Only this mailbox, e.g. INBOX (Gmail labels count). | |
| category | No | Only accounts with this label, e.g. Work or Personal (list_categories). | |
| max_hits | No | Stop after this many matches; 1 for a one-shot watch. | |
| match_all | No | Match every new item instead of a filter; needs routes (check_route). | |
| ttl_hours | No | Stop after this many hours (default 24; no upper limit). 0 means no end: use it only when the user asks for a monitor that keeps running. | |
| bulk_allow | No | Senders that always pass exclude_bulk: parts of an address or name, e.g. ['dropbox.com', 'mybank']. | |
| include_own | No | Also match what the user sent or wrote. | |
| unread_only | No | Only unread messages. | |
| exclude_bulk | No | Skip newsletters, promos and other list or automated mail (by header). Off by default. | |
| body_contains | No | Message text contains this. | |
| body_excludes | No | Skip messages whose text contains any of these comma-separated words. | |
| from_contains | No | Sender address, number or name contains this. | |
| from_excludes | No | Skip senders containing any of these comma-separated words. | |
| account_excludes | No | Skip mail in these accounts (names or addresses, as list_accounts shows). | |
| subject_contains | No | Subject contains this. | |
| subject_excludes | No | Skip subjects containing any of these comma-separated words. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| monitor | Yes |