Skip to main content
Glama
liveblocks
by liveblocks

delete-room-subscription-settings

Remove subscription settings for a specific user and room in Liveblocks. This tool ensures proper management of room-based subscriptions by deleting unnecessary or outdated settings.

Instructions

Delete a Liveblocks room's subscription settings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
userIdYes

Implementation Reference

  • src/server.ts:623-638 (registration)
    Registers the 'delete-room-subscription-settings' tool using server.tool, including inline schema and handler function.
    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 } ) ); } );
  • The handler function executes the tool logic by calling the Liveblocks API to delete room subscription settings for a user.
    async ({ roomId, userId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoomSubscriptionSettings( { roomId, userId }, { signal: extra.signal } ) ); }
  • Zod schema defining input parameters: roomId (string) and userId (string).
    { roomId: z.string(), userId: z.string(), },

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