Skip to main content
Glama

rename_folder

Change the name of an existing folder in your Dynadot domain management account by providing the folder ID and new name.

Instructions

Rename an existing folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_idYesFolder ID to rename
folder_nameYesNew name for the folder

Implementation Reference

  • The MCP tool handler for "rename_folder", which uses the `client.renameFolder` method.
    server.tool(
      "rename_folder",
      "Rename an existing folder.",
      {
        folder_id: z.string().describe("Folder ID to rename"),
        folder_name: z.string().describe("New name for the folder"),
      },
      async ({ folder_id, folder_name }) => {
        try {
          const result = await client.renameFolder(folder_id, 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 rename folder: ${msg}` },
            ],
            isError: true,
          };
        }
      }
    );
  • The underlying Dynadot API client method that makes the actual API call for renaming a folder.
    async renameFolder(folderId: string, folderName: string): Promise<DynadotResponse> {
      return this.call("set_folder_name", { folder_id: folderId, 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