Skip to main content
Glama

doc_create

Create documents in Pickaxe knowledge bases from text content or by scraping website URLs. Specify studio environment and document name for structured content management.

Instructions

Create a new document in Pickaxe knowledge base. Can create from raw content or scrape a website URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
studioNoStudio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION
nameYesName/title of the document
rawContentNoRaw text content for the document. Use this OR website, not both.
websiteNoURL to scrape as document content. Use this OR rawContent, not both.

Implementation Reference

  • Handler logic for the 'doc_create' tool. Constructs a request body with the document name and optional raw content or website URL, then makes a POST request to the Pickaxe API to create the document.
    case "doc_create": { const body: Record<string, unknown> = { name: args.name }; if (args.rawContent) body.rawContent = args.rawContent; if (args.website) body.website = args.website; const result = await pickaxeRequest("/studio/document/create", "POST", body, studio); return JSON.stringify(result, null, 2); }
  • Input schema for the 'doc_create' tool, defining required 'name' and optional 'studio', 'rawContent', or 'website' parameters.
    inputSchema: { type: "object", properties: { studio: studioParam, name: { type: "string", description: "Name/title of the document", }, rawContent: { type: "string", description: "Raw text content for the document. Use this OR website, not both.", }, website: { type: "string", description: "URL to scrape as document content. Use this OR rawContent, not both.", }, }, required: ["name"], },
  • src/index.ts:149-171 (registration)
    Registration of the 'doc_create' tool in the global tools array, which is exposed via the ListToolsRequestSchema handler.
    { name: "doc_create", description: "Create a new document in Pickaxe knowledge base. Can create from raw content or scrape a website URL.", inputSchema: { type: "object", properties: { studio: studioParam, name: { type: "string", description: "Name/title of the document", }, rawContent: { type: "string", description: "Raw text content for the document. Use this OR website, not both.", }, website: { type: "string", description: "URL to scrape as document content. Use this OR rawContent, not both.", }, }, required: ["name"], }, },

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