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