get_unread_notification_count
Retrieves the number of unread notifications for the authenticated user. Requires an API key for access.
Instructions
Get the count of unread notifications for the authenticated user. Requires IWMM_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/notifications.ts:12-16 (handler)The 'get_unread_notification_count' tool definition with its handler function. The handler calls apiFetch to GET /api/v1/notifications/unread-count.
export const getUnreadCountTool = { name: "get_unread_notification_count", description: "Get the count of unread notifications for the authenticated user. Requires IWMM_API_KEY.", inputSchema: z.object({}), handler: () => apiFetch({ path: "/api/v1/notifications/unread-count", authenticated: true }), - src/tools/notifications.ts:12-16 (schema)The tool schema specifies an empty inputSchema (z.object({})), meaning no input parameters are required.
export const getUnreadCountTool = { name: "get_unread_notification_count", description: "Get the count of unread notifications for the authenticated user. Requires IWMM_API_KEY.", inputSchema: z.object({}), handler: () => apiFetch({ path: "/api/v1/notifications/unread-count", authenticated: true }), - src/tools/index.ts:83-88 (registration)The tool is imported from notifications.ts and registered in the tools array at line 85, also exported via toolsByName map at lines 90-92.
// Notifications (auth) listNotificationsTool, getUnreadCountTool, markNotificationReadTool, markAllNotificationsReadTool, ];