Skip to main content
Glama
liveblocks
by liveblocks

update-room-id

Modify a room's ID in Liveblocks by specifying the current roomId and the newRoomId to update it accurately and maintain synchronization across the platform.

Instructions

Update a Liveblocks room's ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newRoomIdYes
roomIdYes

Implementation Reference

  • The handler function that executes the tool logic by calling the Liveblocks API to update the room ID.
    async ({ roomId, newRoomId }, extra) => { return await callLiveblocksApi( getLiveblocks().updateRoomId( { currentRoomId: roomId, newRoomId }, { signal: extra.signal } ) ); }
  • Zod input schema defining parameters: roomId (string) and newRoomId (string).
    { roomId: z.string(), newRoomId: z.string(), },
  • src/server.ts:145-160 (registration)
    Registration of the 'update-room-id' tool on the MCP server, including name, description, schema, and handler.
    server.tool( "update-room-id", "Update a Liveblocks room's ID", { roomId: z.string(), newRoomId: z.string(), }, async ({ roomId, newRoomId }, extra) => { return await callLiveblocksApi( getLiveblocks().updateRoomId( { currentRoomId: roomId, newRoomId }, { 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