Skip to main content
Glama

create_folder

Create a new folder to organize domains in your Dynadot account by specifying a folder name.

Instructions

Create a new folder for organizing domains.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_nameYesName for the new folder

Implementation Reference

  • The handler implementation for the create_folder MCP tool, which calls the dynadot-client service.
    async ({ folder_name }) => {
      try {
        const result = await client.createFolder(folder_name);
        return {
          content: [
            { type: "text" as const, text: JSON.stringify(result, null, 2) },
          ],
        };
      } catch (error) {
        const msg = error instanceof Error ? error.message : String(error);
        return {
          content: [
            { type: "text" as const, text: `Failed to create folder: ${msg}` },
          ],
          isError: true,
        };
      }
    }
  • Registration of the create_folder tool within the MCP server.
    server.tool(
      "create_folder",
      "Create a new folder for organizing domains.",
      {
        folder_name: z.string().describe("Name for the new folder"),
      },
      async ({ folder_name }) => {
        try {
          const result = await client.createFolder(folder_name);
          return {
            content: [
              { type: "text" as const, text: JSON.stringify(result, null, 2) },
            ],
          };
        } catch (error) {
          const msg = error instanceof Error ? error.message : String(error);
          return {
            content: [
              { type: "text" as const, text: `Failed to create folder: ${msg}` },
            ],
            isError: true,
          };
        }
      }
    );
  • Service method that makes the actual API call to the Dynadot service for creating a folder.
    async createFolder(folderName: string): Promise<DynadotResponse> {
      return this.call("create_folder", { folder_name: folderName });
    }

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/mikusnuz/dynadot-mcp'

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