Skip to main content
Glama
liveblocks

Liveblocks

Official
by liveblocks

delete-all-inbox-notifications

Clear all inbox notifications for a specific user in Liveblocks to manage notification clutter and maintain a clean workspace.

Instructions

Delete all Liveblocks inbox notifications

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYes

Implementation Reference

  • The handler function for the "delete-all-inbox-notifications" tool. It invokes the Liveblocks SDK's deleteAllInboxNotifications method via callLiveblocksApi to delete all inbox notifications for the given userId.
    async ({ userId }, extra) => {
      return await callLiveblocksApi(
        getLiveblocks().deleteAllInboxNotifications(
          { userId },
          { signal: extra.signal }
        )
      );
    }
  • Input schema for the tool: requires a 'userId' parameter of type string.
    {
      userId: z.string(),
    },
  • src/server.ts:742-756 (registration)
    Registration of the "delete-all-inbox-notifications" tool using McpServer.tool(), including name, description, input schema, and handler function.
    server.tool(
      "delete-all-inbox-notifications",
      "Delete all Liveblocks inbox notifications",
      {
        userId: z.string(),
      },
      async ({ userId }, extra) => {
        return await callLiveblocksApi(
          getLiveblocks().deleteAllInboxNotifications(
            { userId },
            { 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