Skip to main content
Glama
lithtrix

lithtrix-mcp

Official

lithtrix_blob_delete

Soft-delete a blob by providing its content-addressed blob ID. Requires a valid LITHTRIX_API_KEY for authorization.

Instructions

Soft-delete a blob (DELETE /v1/blobs/{blob_id}). Requires LITHTRIX_API_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blob_idYesContent-addressed blob id (b_ + 16 hex chars)

Implementation Reference

  • The main handler for the lithtrix_blob_delete tool. It reads the LITHTRIX_API_KEY, sends a DELETE request to /v1/blobs/{blob_id}, and processes the response.
    server.tool(
      "lithtrix_blob_delete",
      "Soft-delete a blob (DELETE /v1/blobs/{blob_id}). Requires LITHTRIX_API_KEY.",
      { blob_id: blobIdSchema },
      async ({ blob_id }) => {
        const apiKey = process.env.LITHTRIX_API_KEY;
        if (!apiKey) return missingApiKeyResponse();
    
        const path = `/v1/blobs/${encodeURIComponent(blob_id)}`;
        let response;
        try {
          response = await fetch(new URL(path, LITHTRIX_API_URL), {
            method: "DELETE",
            headers: { Authorization: `Bearer ${apiKey}` },
          });
        } catch (err) {
          return networkErrorResponse(err);
        }
        return deleteBlobResult(response);
      }
    );
  • Helper function that processes the delete API response. Returns a success JSON if status is 204 (No Content), otherwise falls back to apiJsonResponse.
    async function deleteBlobResult(response) {
      if (response.status === 204) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({ status: "success", deleted: true }, null, 2),
            },
          ],
        };
      }
      return apiJsonResponse(response);
    }
  • Zod schema for blob_id parameter validation: a 19-character string matching pattern b_ followed by 16 hex characters.
    const blobIdSchema = z
      .string()
      .length(19)
      .regex(/^b_[0-9a-f]{16}$/)
      .describe("Content-addressed blob id (b_ + 16 hex chars)");
  • index.js:48-48 (registration)
    Registration call in index.js that registers all blob tools (including lithtrix_blob_delete) on the MCP server.
    registerBlobTools(server);
  • tools/blobs.js:133-133 (registration)
    Export function that registers all blob-related tools on the server. The lithtrix_blob_delete registration begins at line 273 within this function.
    export function registerBlobTools(server) {
Behavior2/5

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

The description mentions 'soft-delete' and requires an API key, but does not explain the implications of soft-delete (e.g., reversibility, side effects, or what happens to the blob). With no annotations, the description carries full burden for behavioral disclosure, and it falls short.

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?

Two sentences, no fluff, front-loaded with the action and immediate requirement.

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

Completeness3/5

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

Adequate for a simple delete tool with one parameter, but lacks details on soft-delete behavior and response format. With no output schema, the description could be more informative.

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

Parameters3/5

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

Schema coverage is 100% and the schema's description is already clear; the tool description adds no extra meaning beyond what the schema provides.

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

Purpose5/5

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

The description clearly states 'Soft-delete a blob' with the HTTP method and path, which is specific and distinguishes it from sibling blob tools like download, list, etc.

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 on when to use this tool vs alternatives; it does not mention when a soft-delete is appropriate or any prerequisites beyond the API key.

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/lithtrix/lithtrix-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server