Skip to main content
Glama
liveblocks

Liveblocks

Official
by liveblocks

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
NameRequiredDescriptionDefault
userIdYes
inboxNotificationIdYes

Implementation Reference

  • 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 }
        )
      );
    }
  • 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 }
          )
        );
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liveblocks/liveblocks-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server