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
| Name | Required | Description | Default |
|---|---|---|---|
| roomId | Yes | ||
| userId | Yes |
Implementation Reference
- src/server.ts:586-593 (handler)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 } ) ); }
- src/server.ts:582-585 (schema)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 } ) ); } );