Skip to main content
Glama

content-save

Save source documents as context for AI content generation, supporting job applications, B2B sales, and strategy documents.

Instructions

Save a source document for use as context in AI generation. Returns success status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docTypeYesType of source document
contentYesDocument content text

Implementation Reference

  • Registration and handler implementation of the 'content-save' tool.
    server.tool(
      "content-save",
      "Save a source document for use as context in AI generation. Returns success status.",
      {
        docType: z.enum([
          "original_cv", "extensive_cv", "cover_letter",
          "cv_strategy", "cover_letter_strategy", "cold_email_strategy",
          "recon_strategy", "company_context",
        ]).describe("Type of source document"),
        content: z.string().describe("Document content text"),
      },
      async (params) => {
        try {
          const result = await client.content.save({
            docType: params.docType,
            content: params.content,
          } as any);
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (err) {
          const message = err instanceof Error ? err.message : String(err);
          return { content: [{ type: "text", text: `Error: ${message}` }], isError: true };
        }
      },
    );

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/ebenezer-isaac/llmconveyors-mcp'

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