Skip to main content
Glama

w3_can_blob_rm

Remove a blob from the MCP-IPFS server store using its base58btc encoded multihash to efficiently manage storage and data operations.

Instructions

Removes a blob from the store by its base58btc encoded multihash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
multihashYesBase58btc encoded multihash of the blob to remove.

Implementation Reference

  • The handler function for 'w3_can_blob_rm' that validates input arguments using Zod schema, executes the w3 CLI command 'can blob rm <multihash>', and returns a structured response with success message and stdout.
    const handleW3CanBlobRm: ToolHandler = async (args) => { const parsed = Schemas.W3CanBlobRmArgsSchema.safeParse(args); if (!parsed.success) throw new Error( `Invalid arguments for w3_can_blob_rm: ${parsed.error.message}` ); const { multihash } = parsed.data; const { stdout } = await runW3Command(`can blob rm ${multihash}`); return { content: [ { type: "text", text: JSON.stringify({ message: `Blob ${multihash} removed successfully.`, output: stdout.trim(), }), }, ], }; };
  • Zod schema defining the input parameters for the w3_can_blob_rm tool: requires a 'multihash' string (Base58btc encoded multihash of the blob). Includes description for MCP tool metadata.
    export const W3CanBlobRmArgsSchema = z .object({ multihash: z .string() .describe("Base58btc encoded multihash of the blob to remove."), }) .describe( "Removes a blob from the store by its base58btc encoded multihash." );
  • Registration of the 'w3_can_blob_rm' tool in the toolHandlers map, which is used by the MCP server to route CallTool requests to the appropriate handler.
    w3_can_blob_rm: handleW3CanBlobRm,

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/alexbakers/mcp-ipfs'

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