Skip to main content
Glama

set_privacy

Configure WHOIS privacy settings for your domain to control visibility of registration information. Choose from full, partial, or no privacy protection.

Instructions

Set WHOIS privacy for a domain. Options: 'full' (hide all info), 'partial' (hide some info), 'off' (show all info).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name to set privacy for
optionYesPrivacy level: 'full', 'partial', or 'off'

Implementation Reference

  • The API client method that calls the set_privacy Dynadot command.
    async setPrivacy(domain: string, option: string): Promise<DynadotResponse> {
      return this.call("set_privacy", { domain, option });
    }
  • Tool registration and handler logic for 'set_privacy' within the settings tools.
    server.tool(
      "set_privacy",
      "Set WHOIS privacy for a domain. Options: 'full' (hide all info), " +
        "'partial' (hide some info), 'off' (show all info).",
      {
        domain: z.string().describe("Domain name to set privacy for"),
        option: z
          .enum(["full", "partial", "off"])
          .describe("Privacy level: 'full', 'partial', or 'off'"),
      },
      async ({ domain, option }) => {
        try {
          const result = await client.setPrivacy(domain, option);
          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 set privacy: ${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