Skip to main content
Glama

doc_get

Retrieve specific documents by ID from the Pickaxe platform for managing AI agents, knowledge bases, and analytics across multiple studio environments.

Instructions

Retrieve a specific document by ID.

Input Schema

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

Implementation Reference

  • Handler implementation for the 'doc_get' tool. It makes a GET request to the Pickaxe API endpoint `/studio/document/{documentId}` and returns the JSON result.
    case "doc_get": { const result = await pickaxeRequest(`/studio/document/${args.documentId}`, "GET", undefined, studio); return JSON.stringify(result, null, 2); }
  • Input schema definition for the 'doc_get' tool, specifying parameters like studio (optional) and required documentId.
    inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to retrieve", }, }, required: ["documentId"], },
  • src/index.ts:228-242 (registration)
    Registration of the 'doc_get' tool in the tools array, including name, description, and input schema.
    { name: "doc_get", description: "Retrieve a specific document by ID.", inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to retrieve", }, }, 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