Skip to main content
Glama
liveblocks
by liveblocks

get-rooms

Retrieve recent Liveblocks rooms with filtering options for user, groups, or metadata to manage collaborative workspaces.

Instructions

Get recent Liveblocks rooms

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitYes
userIdNo
groupIdsNo
startingAfterNo
queryNo

Implementation Reference

  • src/server.ts:32-59 (registration)
    Full registration of the MCP 'get-rooms' tool, including name, description, Zod input schema, and inline asynchronous handler function that executes the tool logic by calling the Liveblocks SDK's getRooms method, wrapped with callLiveblocksApi for response formatting.
    server.tool( "get-rooms", `Get recent Liveblocks rooms`, { limit: z.number().lte(100), userId: z.string().optional(), groupIds: z.array(z.string()).optional(), startingAfter: z.string().optional(), query: z .object({ roomId: z .object({ startsWith: z.string(), }) .optional(), metadata: z.record(z.string(), z.string()).optional(), }) .optional(), }, async ({ limit, userId, groupIds, startingAfter, query }, extra) => { return await callLiveblocksApi( getLiveblocks().getRooms( { limit, userId, groupIds, startingAfter, query }, { 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