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
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to set privacy for | |
| option | Yes | Privacy level: 'full', 'partial', or 'off' |
Implementation Reference
- src/services/dynadot-client.ts:336-338 (handler)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 }); } - src/tools/settings.ts:23-51 (registration)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, }; } } );