Skip to main content
Glama
liveblocks
by liveblocks

delete-room

Remove a dedicated Liveblocks collaboration room by specifying its unique room ID, ensuring efficient resource management and cleanup.

Instructions

Delete a Liveblocks room

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes

Implementation Reference

  • Handler function that executes the delete-room tool logic by calling the Liveblocks SDK's deleteRoom method wrapped in callLiveblocksApi.
    async ({ roomId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoom(roomId, { signal: extra.signal }) ); }
  • Input schema for the delete-room tool, requiring a roomId string.
    { roomId: z.string(), },
  • src/server.ts:132-143 (registration)
    Registration of the delete-room tool using McpServer's tool method, including name, description, schema, and handler.
    server.tool( "delete-room", "Delete a Liveblocks room", { roomId: z.string(), }, async ({ roomId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteRoom(roomId, { 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