Skip to main content
Glama
liveblocks
by liveblocks

delete-room-subscription-settings

Remove subscription settings from a Liveblocks room to manage user notifications and access permissions.

Instructions

Delete a Liveblocks room's subscription settings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
userIdYes

Implementation Reference

  • src/server.ts:623-638 (registration)
    Registration of the MCP tool 'delete-room-subscription-settings', including inline Zod schema for input parameters (roomId, userId) and the handler function that invokes the Liveblocks API via getLiveblocks().deleteRoomSubscriptionSettings wrapped in callLiveblocksApi.
    server.tool( "delete-room-subscription-settings", `Delete a Liveblocks room's subscription settings`, { roomId: z.string(), userId: z.string(), }, async ({ roomId, userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoomSubscriptionSettings( { roomId, userId }, { signal: extra.signal } ) ); } );
  • Zod schema defining input parameters for the tool: roomId and userId as strings.
    { roomId: z.string(), userId: z.string(), },
  • Handler function for the tool that calls the Liveblocks client to delete room subscription settings for a user, passing roomId and userId, with abort signal support.
    async ({ roomId, userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoomSubscriptionSettings( { 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