Skip to main content
Glama
liveblocks
by liveblocks

get-threads

Retrieve recent threads from a Liveblocks room by specifying room ID and optional query filters such as resolved status or metadata.

Instructions

Get recent Liveblocks threads

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNo
roomIdYes

Implementation Reference

  • The handler function that executes the 'get-threads' tool by calling the Liveblocks getThreads API.
    async ({ roomId, query }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreads({ roomId, query }, { signal: extra.signal }) ); }
  • Input schema for the 'get-threads' tool defining parameters roomId and optional query with resolved 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)
    Registration of the 'get-threads' tool on the MCP server using server.tool() including description, input schema, and handler.
    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