Skip to main content
Glama
liveblocks
by liveblocks

get-threads

Retrieve recent conversation threads from a Liveblocks room to track discussions and manage collaborative workflows.

Instructions

Get recent Liveblocks threads

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
queryNo

Implementation Reference

  • Handler function that calls the Liveblocks getThreads API via callLiveblocksApi to retrieve threads for a given room.
    async ({ roomId, query }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreads({ roomId, query }, { signal: extra.signal }) ); }
  • Zod schema defining input parameters: required roomId and optional query with resolved flag and metadata filters.
    { roomId: z.string(), query: z .object({ resolved: z.boolean().optional(), metadata: z .record( z.string(), z.union([ z.string(), z.object({ startsWith: z.string(), }), ]) ) .optional(), }) .optional(), },
  • src/server.ts:230-257 (registration)
    Registers the 'get-threads' tool with the MCP server, including description, input schema, and handler function.
    server.tool( "get-threads", `Get recent Liveblocks threads`, { roomId: z.string(), query: z .object({ resolved: z.boolean().optional(), metadata: z .record( z.string(), z.union([ z.string(), z.object({ startsWith: z.string(), }), ]) ) .optional(), }) .optional(), }, async ({ roomId, query }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreads({ roomId, 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