Skip to main content
Glama
liveblocks

Liveblocks

Official
by liveblocks

unsubscribe-from-thread

Stop receiving notifications for a specific conversation thread in a Liveblocks room. This tool removes your user from thread subscriptions.

Instructions

Unsubscribe from a Liveblocks thread

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomIdYes
threadIdYes
dataYes

Implementation Reference

  • Handler function that executes the tool logic by calling the Liveblocks SDK's unsubscribeFromThread method via the callLiveblocksApi wrapper.
    async ({ roomId, threadId, data }, extra) => {
      return await callLiveblocksApi(
        getLiveblocks().unsubscribeFromThread(
          { roomId, threadId, data },
          { signal: extra.signal }
        )
      );
    }
  • Zod input schema defining parameters: roomId, threadId, and data with userId.
    {
      roomId: z.string(),
      threadId: z.string(),
      data: z.object({
        userId: z.string(),
      }),
    },
  • src/server.ts:415-433 (registration)
    MCP server.tool registration for the unsubscribe-from-thread tool, including name, description, schema, and handler.
    server.tool(
      "unsubscribe-from-thread",
      "Unsubscribe from a Liveblocks thread",
      {
        roomId: z.string(),
        threadId: z.string(),
        data: z.object({
          userId: z.string(),
        }),
      },
      async ({ roomId, threadId, data }, extra) => {
        return await callLiveblocksApi(
          getLiveblocks().unsubscribeFromThread(
            { roomId, threadId, data },
            { 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 the full burden of behavioral disclosure. It states the action but doesn't reveal key traits: whether this is a destructive operation (likely, as it removes a subscription), permission requirements, rate limits, or what happens on success/failure. For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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 a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded with the core action, making it easy to parse quickly. No fluff or redundancy is present.

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?

Given the complexity (a mutation tool with 3 parameters, nested objects, and no output schema) and lack of annotations, the description is incomplete. It doesn't cover parameter meanings, behavioral details, or expected outcomes, leaving the agent with insufficient information to use the tool effectively in context.

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%, so the description must compensate by explaining parameters, but it adds no semantic information. It doesn't clarify what 'roomId', 'threadId', or 'data.userId' represent, their formats, or how they relate to the unsubscribe action. With 3 undocumented parameters, the description fails to provide necessary context beyond the schema.

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 verb ('Unsubscribe from') and resource ('a Liveblocks thread'), making the purpose immediately understandable. It distinguishes from siblings like 'subscribe-to-thread' by specifying the opposite action, though it doesn't explicitly mention what 'unsubscribe' entails in this context (e.g., from notifications or participation).

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?

No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing to be subscribed first), related tools like 'subscribe-to-thread', or context-specific scenarios. The description alone offers no usage instructions beyond the basic action.

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