Skip to main content
Glama

doc_delete

Remove a document from the Pickaxe platform to delete it from all connected AI agents, ensuring clean knowledge base management.

Instructions

Delete a document from Pickaxe. This removes it from all connected agents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
studioNoStudio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION
documentIdYesThe document ID to delete

Implementation Reference

  • Handler logic for the 'doc_delete' tool within the executeTool function's switch statement. It performs a DELETE request to the Pickaxe API to delete the document by its ID.
    case "doc_delete": { const result = await pickaxeRequest(`/studio/document/${args.documentId}`, "DELETE", undefined, studio); return JSON.stringify(result, null, 2); }
  • Input schema definition for the 'doc_delete' tool, specifying required 'documentId' and optional 'studio' parameters.
    inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to delete", }, }, required: ["documentId"], },
  • src/index.ts:243-257 (registration)
    Registration of the 'doc_delete' tool in the tools array, which is returned by the list tools handler and used for MCP tool discovery.
    { name: "doc_delete", description: "Delete a document from Pickaxe. This removes it from all connected agents.", inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to delete", }, }, required: ["documentId"], }, },

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/aplaceforallmystuff/mcp-pickaxe'

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