Skip to main content
Glama

set_domain_note

Add notes or organize domains into folders to manage and track your domain portfolio effectively.

Instructions

Set a note and/or move a domain to a folder for organization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to update
noteNoNote to attach to the domain
folderNoFolder name or ID to move the domain into

Implementation Reference

  • The implementation of the `set_domain_note` tool handler, which uses the `client` service to set the note and/or folder for a domain.
    server.tool(
      "set_domain_note",
      "Set a note and/or move a domain to a folder for organization.",
      {
        domain: z.string().describe("Domain name to update"),
        note: z.string().optional().describe("Note to attach to the domain"),
        folder: z.string().optional().describe("Folder name or ID to move the domain into"),
      },
      async ({ domain, note, folder }) => {
        try {
          const results: unknown[] = [];
          if (note !== undefined) {
            results.push(await client.setNote(domain, note));
          }
          if (folder !== undefined) {
            results.push(await client.setFolder(domain, folder));
          }
          return {
            content: [
              {
                type: "text" as const,
                text: JSON.stringify(
                  results.length === 1 ? results[0] : results,
                  null,
                  2
                ),
              },
            ],
          };
        } catch (error) {
          const msg = error instanceof Error ? error.message : String(error);
          return {
            content: [
              { type: "text" as const, text: `Failed to set domain note/folder: ${msg}` },
            ],
            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/mikusnuz/dynadot-mcp'

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