Skip to main content
Glama
liveblocks

Liveblocks

Official
by liveblocks

get-notification-settings

Retrieve user notification preferences for Liveblocks collaboration tools to manage alerts and communication settings.

Instructions

Get a Liveblocks notification settings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYes

Implementation Reference

  • The handler function that executes the get-notification-settings tool by calling the Liveblocks API to retrieve notification settings for the given userId.
    async ({ userId }, extra) => {
      return await callLiveblocksApi(
        getLiveblocks().getNotificationSettings(
          { userId },
          { signal: extra.signal }
        )
      );
    }
  • Input schema for the get-notification-settings tool, requiring a userId string.
    {
      userId: z.string(),
    },
  • src/server.ts:758-772 (registration)
    Registration of the get-notification-settings tool using McpServer.tool method.
    server.tool(
      "get-notification-settings",
      "Get a Liveblocks notification settings",
      {
        userId: z.string(),
      },
      async ({ userId }, extra) => {
        return await callLiveblocksApi(
          getLiveblocks().getNotificationSettings(
            { 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