Skip to main content
Glama

doc_delete

Remove documents from the Pickaxe platform to delete them from all connected AI agents and manage knowledge bases effectively.

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

  • The handler for the 'doc_delete' tool within the executeTool switch statement. It sends a DELETE HTTP request to the Pickaxe API endpoint `/studio/document/${documentId}` and returns the JSON-stringified response.
    case "doc_delete": { const result = await pickaxeRequest(`/studio/document/${args.documentId}`, "DELETE", undefined, studio); return JSON.stringify(result, null, 2); }
  • The schema definition for the 'doc_delete' tool, including its name, description, and input schema that requires a 'documentId' string and optionally accepts a 'studio' parameter.
    { 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"], },
  • src/index.ts:616-618 (registration)
    Registration of the tool list handler, which returns the 'tools' array containing the 'doc_delete' tool schema when ListToolsRequest is called.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { 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/aplaceforallmystuff/mcp-pickaxe'

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