reset_unread_notification_count
Reset the unread notification count in Backlog project management to clear all pending notifications and maintain an organized task view.
Instructions
Reset unread notification count
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Factory function defining the 'reset_unread_notification_count' tool, including its name, description, input/output schemas, and the core handler logic that calls `backlog.resetNotificationsMarkAsRead()` to reset unread notifications.export const resetUnreadNotificationCountTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof resetUnreadNotificationCountSchema>, (typeof NotificationCountSchema)['shape'] > => { return { name: 'reset_unread_notification_count', description: t( 'TOOL_RESET_UNREAD_NOTIFICATION_COUNT_DESCRIPTION', 'Reset unread notification count' ), schema: z.object(resetUnreadNotificationCountSchema(t)), outputSchema: NotificationCountSchema, handler: async () => backlog.resetNotificationsMarkAsRead(), }; };
- Defines the empty input schema for the tool using buildToolSchema (no parameters required).const resetUnreadNotificationCountSchema = buildToolSchema((_t) => ({}));
- src/tools/tools.ts:154-154 (registration)Registers the tool instance within the 'notifications' toolset group returned by the allTools function.resetUnreadNotificationCountTool(backlog, helper),