delete-inbox-notification
Remove specific notifications from a user's Liveblocks inbox to manage real-time collaboration alerts and maintain organized communication channels.
Instructions
Delete a Liveblocks inbox notification
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | ||
| inboxNotificationId | Yes |
Implementation Reference
- src/server.ts:732-739 (handler)The handler function for the 'delete-inbox-notification' tool that calls the Liveblocks API to delete the specified inbox notification for a user.async ({ userId, inboxNotificationId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteInboxNotification( { userId, inboxNotificationId }, { signal: extra.signal } ) ); }
- src/server.ts:728-731 (schema)Zod schema defining the input parameters for the tool: userId (string) and inboxNotificationId (string).{ userId: z.string(), inboxNotificationId: z.string(), },
- src/server.ts:725-740 (registration)Registration of the 'delete-inbox-notification' tool using McpServer.tool(), including name, description, input schema, and inline handler function.server.tool( "delete-inbox-notification", "Delete a Liveblocks inbox notification", { userId: z.string(), inboxNotificationId: z.string(), }, async ({ userId, inboxNotificationId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteInboxNotification( { userId, inboxNotificationId }, { signal: extra.signal } ) ); } );