Skip to main content
Glama
liveblocks

Liveblocks

Official
by liveblocks

get-room-subscription-settings

Retrieve subscription settings for a specific Liveblocks room to manage user access and permissions.

Instructions

Get a Liveblocks room's subscription settings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
userIdYes

Implementation Reference

  • Handler function for the 'get-room-subscription-settings' tool. Calls the Liveblocks SDK's getRoomSubscriptionSettings method wrapped in callLiveblocksApi.
    async ({ roomId, userId }, extra) => {
      return await callLiveblocksApi(
        getLiveblocks().getRoomSubscriptionSettings(
          { roomId, userId },
          { signal: extra.signal }
        )
      );
    }
  • Input schema for the tool using Zod: requires roomId and userId as strings.
    {
      roomId: z.string(),
      userId: z.string(),
    },
  • src/server.ts:579-594 (registration)
    Registration of the 'get-room-subscription-settings' tool on the MCP server, including description, schema, and inline handler.
    server.tool(
      "get-room-subscription-settings",
      `Get a Liveblocks room's subscription settings`,
      {
        roomId: z.string(),
        userId: z.string(),
      },
      async ({ roomId, userId }, extra) => {
        return await callLiveblocksApi(
          getLiveblocks().getRoomSubscriptionSettings(
            { roomId, 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