Skip to main content
Glama
liveblocks
by liveblocks

get-room-subscription-settings

Retrieve subscription settings for a specific room and user in Liveblocks, ensuring accurate configuration and access management.

Instructions

Get a Liveblocks room's subscription settings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
userIdYes

Implementation Reference

  • The handler function for the 'get-room-subscription-settings' tool, which calls the Liveblocks API to retrieve subscription settings for a room and user.
    async ({ roomId, userId }, extra) => { return await callLiveblocksApi( getLiveblocks().getRoomSubscriptionSettings( { roomId, userId }, { signal: extra.signal } ) ); }
  • Zod input schema defining parameters: roomId (string) and userId (string).
    { roomId: z.string(), userId: z.string(), },
  • src/server.ts:579-594 (registration)
    Registration of the 'get-room-subscription-settings' tool using McpServer.tool(), including name, description, input schema, and handler function.
    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