Skip to main content
Glama

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
NameRequiredDescriptionDefault
domainYesDomain name to configure
optionYesRenewal option: 'auto' (auto-renew), 'donot' (do not renew), 'reset' (reset to default)

Implementation Reference

  • 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,
          };
        }
      }
    );
  • 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 });
    }

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