Mark all notifications read
mark_all_notifications_readClear your entire OpenProject notification inbox at once, or narrow by reason or project to mark only matching items as read. Use filters first to preview what will be cleared.
Instructions
Mark everything matching the filters as read — the whole inbox by default.
Use it for "clear my notifications" or "I have dealt with everything in
project X". Called with no arguments it marks every unread notification
of the token owner as read, across all projects; reason and
project_id narrow that blast radius, they do not create a preview.
Check what is about to disappear with
list_notifications(unread_only=true, ...) using the same filters
first — there is no undo beyond re-marking individual ids unread.
Returns {marked, read, message}, where marked is how many unread
notifications matched the filters at the moment of the call (counted
immediately before the bulk update, so a notification arriving during
the call may be counted differently than it was marked).
This tool only ever marks read. There is deliberately no
"mark everything unread" twin: that is a mistake with no upside, and the
reverse direction stays available per-id through
mark_notifications(ids=[...], read=false).
Cross-references: preview or page the inbox with list_notifications;
mark a handful of rows with mark_notifications.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Only clear notifications with this trigger (mentioned, assigned, watched, …). Omit to clear every unread notification the filters allow. dateAlert is Enterprise-gated and is rejected with an explanatory hint on Community instances. | |
| project_id | No | Only clear notifications belonging to this project (numeric id or identifier, from list_projects). Omit to clear across all projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | The notification ids that were marked; null for the filter-based bulk tool. | |
| read | Yes | True when they were marked read, false when marked unread. | |
| marked | Yes | Number of notifications the call covered. For mark_notifications this is the number of ids sent; for mark_all_notifications_read it is how many unread notifications matched the filters when the call ran. | |
| message | Yes | Human-readable confirmation of what happened. |