Skip to main content
Glama
liveblocks

Liveblocks

Official
by liveblocks

delete-comment

Remove unwanted or outdated comments from Liveblocks collaborative threads using room, thread, and comment identifiers.

Instructions

Delete a Liveblocks comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
threadIdYes
commentIdYes

Implementation Reference

  • The handler function for the 'delete-comment' tool, which calls the Liveblocks API to delete a comment in a specific room and thread.
    async ({ roomId, threadId, commentId }, extra) => {
      return await callLiveblocksApi(
        getLiveblocks().deleteComment(
          { roomId, threadId, commentId },
          { signal: extra.signal }
        )
      );
    }
  • Input schema for the 'delete-comment' tool, defining required string parameters: roomId, threadId, and commentId.
    {
      roomId: z.string(),
      threadId: z.string(),
      commentId: z.string(),
    },
  • src/server.ts:515-531 (registration)
    Registration of the 'delete-comment' tool on the MCP server using server.tool(), including name, description, schema, and inline 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 }
          )
        );
      }
    );
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. 'Delete' implies a destructive mutation, but the description doesn't specify whether deletion is permanent/reversible, what permissions are required, whether it affects related data (like reactions), or what happens on success/failure. This leaves significant behavioral gaps for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is maximally concise at just 4 words, with zero wasted language. Every word ('Delete a Liveblocks comment') directly contributes to understanding the tool's purpose. It's appropriately sized for what it communicates, though it could benefit from additional context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation tool with 3 undocumented parameters, no annotations, and no output schema, the description is severely incomplete. It doesn't address critical context like permissions, side effects, error conditions, or return values. The agent would need to guess about many aspects of this tool's behavior and requirements.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, meaning none of the 3 parameters (roomId, threadId, commentId) have descriptions in the schema. The tool description provides no additional parameter information - it doesn't explain what these IDs represent, their format, or how they relate hierarchically (e.g., comment within thread within room). The description fails to compensate for the complete lack of schema documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Delete') and the resource ('a Liveblocks comment'), providing a specific verb+resource combination. However, it doesn't differentiate this tool from sibling deletion tools like delete-room or delete-thread, which would require mentioning what distinguishes comment deletion from other deletion operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites (like needing specific permissions), when deletion is appropriate versus editing, or how this relates to other comment operations like edit-comment or get-comment. The agent must infer usage from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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