Skip to main content
Glama

doc_connect

Link documents to AI agents by adding them to the agent's knowledge base for enhanced information access and processing.

Instructions

Connect/link a document to a Pickaxe agent, adding it to the agent's knowledge base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
studioNoStudio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION
documentIdYesThe document ID to connect
pickaxeIdYesThe Pickaxe agent ID to connect the document to

Implementation Reference

  • The handler logic for the 'doc_connect' tool. It performs a POST request to the Pickaxe API '/studio/document/connect' endpoint with the required documentId and pickaxeId parameters, and returns the JSON-formatted response.
    case "doc_connect": {
      const result = await pickaxeRequest("/studio/document/connect", "POST", {
        documentId: args.documentId,
        pickaxeId: args.pickaxeId,
      }, studio);
      return JSON.stringify(result, null, 2);
    }
  • Input schema for the 'doc_connect' tool defining the expected parameters: optional 'studio', required 'documentId' and 'pickaxeId'.
    inputSchema: {
      type: "object",
      properties: {
        studio: studioParam,
        documentId: {
          type: "string",
          description: "The document ID to connect",
        },
        pickaxeId: {
          type: "string",
          description: "The Pickaxe agent ID to connect the document to",
        },
      },
      required: ["documentId", "pickaxeId"],
    },
  • src/index.ts:172-190 (registration)
    Registration of the 'doc_connect' tool in the tools array, including name, description, and input schema. This array is used by the MCP server to list available tools.
    {
      name: "doc_connect",
      description: "Connect/link a document to a Pickaxe agent, adding it to the agent's knowledge base.",
      inputSchema: {
        type: "object",
        properties: {
          studio: studioParam,
          documentId: {
            type: "string",
            description: "The document ID to connect",
          },
          pickaxeId: {
            type: "string",
            description: "The Pickaxe agent ID to connect the document to",
          },
        },
        required: ["documentId", "pickaxeId"],
      },
    },

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