Skip to main content
Glama

w3_can_upload_rm

Removes an upload listing by its root CID from the MCP IPFS server without deleting the associated blobs or shards, enabling advanced data management.

Instructions

Removes an upload listing by its root CID (advanced use). Does not remove the underlying blobs/shards.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootCidYesRoot CID of the upload to remove from the list.

Implementation Reference

  • The handler function that executes the tool logic: parses args with W3CanUploadRmArgsSchema, runs 'can upload rm {rootCid}' command, returns formatted response with stdout.
    const handleW3CanUploadRm: ToolHandler = async (args) => { const parsed = Schemas.W3CanUploadRmArgsSchema.safeParse(args); if (!parsed.success) throw new Error( `Invalid arguments for w3_can_upload_rm: ${parsed.error.message}` ); const { rootCid } = parsed.data; const { stdout } = await runW3Command(`can upload rm ${rootCid}`); return { content: [ { type: "text", text: JSON.stringify({ message: `Upload ${rootCid} removed successfully.`, output: stdout.trim(), }), }, ], }; };
  • Zod schema defining the input arguments for the w3_can_upload_rm tool: requires rootCid string.
    export const W3CanUploadRmArgsSchema = z .object({ rootCid: z .string() .describe("Root CID of the upload to remove from the list."), }) .describe( "Removes an upload listing by its root CID (advanced use). Does not remove the underlying blobs/shards." );
  • Registration of the tool handler in the toolHandlers map.
    w3_can_upload_rm: handleW3CanUploadRm,

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