Skip to main content
Glama
liveblocks
by liveblocks

delete-comment

Remove a specific comment from a thread in a Liveblocks room by specifying the roomId, threadId, and commentId.

Instructions

Delete a Liveblocks comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentIdYes
roomIdYes
threadIdYes

Implementation Reference

  • src/server.ts:515-531 (registration)
    Registration of the 'delete-comment' MCP tool using server.tool(), including inline schema and handler.
    server.tool( "delete-comment", `Delete a Liveblocks comment`, { roomId: z.string(), threadId: z.string(), commentId: z.string(), }, async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); } );
  • The handler function executes the tool logic by calling the Liveblocks SDK's deleteComment method via callLiveblocksApi.
    async ({ roomId, threadId, commentId }, extra) => { return await callLiveblocksApi( getLiveblocks().deleteComment( { roomId, threadId, commentId }, { signal: extra.signal } ) ); }
  • Zod schema defining the input parameters: roomId, threadId, and commentId.
    { roomId: z.string(), threadId: z.string(), commentId: z.string(), },

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