set_renew_option
Configure domain auto-renewal settings to automatically renew domains, prevent renewal, or reset to default options.
Instructions
Set the auto-renewal option for a domain.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to configure | |
| option | Yes | Renewal option: 'auto' (auto-renew), 'donot' (do not renew), 'reset' (reset to default) |
Implementation Reference
- src/tools/settings.ts:152-182 (handler)The MCP tool definition and handler logic for 'set_renew_option'.
server.tool( "set_renew_option", "Set the auto-renewal option for a domain.", { domain: z.string().describe("Domain name to configure"), option: z .enum(["auto", "donot", "reset"]) .describe( "Renewal option: 'auto' (auto-renew), 'donot' (do not renew), " + "'reset' (reset to default)" ), }, async ({ domain, option }) => { try { const result = await client.setRenewOption(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 renew option: ${msg}` }, ], isError: true, }; } } ); - src/services/dynadot-client.ts:356-358 (handler)The underlying Dynadot client method that performs the actual API call for 'set_renew_option'.
async setRenewOption(domain: string, option: string): Promise<DynadotResponse> { return this.call("set_renew_option", { domain, renew_option: option }); }