Skip to main content
Glama
liveblocks
by liveblocks

get-thread-subscriptions

Retrieve subscription details for a specific thread in a Liveblocks room to monitor user notifications and engagement.

Instructions

Get a Liveblocks thread's subscriptions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
threadIdYes

Implementation Reference

  • The handler function for the 'get-thread-subscriptions' tool. It calls the Liveblocks API's getThreadSubscriptions method wrapped in callLiveblocksApi.
    async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreadSubscriptions( { roomId, threadId }, { signal: extra.signal } ) ); }
  • Input schema defining parameters: roomId (string) and threadId (string).
    { roomId: z.string(), threadId: z.string(), },
  • src/server.ts:435-450 (registration)
    Registration of the 'get-thread-subscriptions' tool using McpServer.tool, including name, description, input schema, and inline handler.
    server.tool( "get-thread-subscriptions", "Get a Liveblocks thread's subscriptions", { roomId: z.string(), threadId: z.string(), }, async ({ roomId, threadId }, extra) => { return await callLiveblocksApi( getLiveblocks().getThreadSubscriptions( { roomId, threadId }, { 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