restore_domain
Recover a recently deleted domain name from the redemption grace period using the Dynadot registrar API.
Instructions
Restore a recently deleted domain from the redemption grace period.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to restore |
Implementation Reference
- src/services/dynadot-client.ts:186-188 (handler)The handler implementation for restoring a domain, which calls the Dynadot API 'restore' command.
async restoreDomain(domain: string): Promise<DynadotResponse> { return this.call("restore", { domain }); } - src/tools/domain.ts:282-302 (registration)The MCP tool registration for 'restore_domain', which invokes the client's restoreDomain method.
server.tool( "restore_domain", "Restore a recently deleted domain from the redemption grace period.", { domain: z.string().describe("Domain name to restore"), }, async ({ domain }) => { try { const result = await client.restoreDomain(domain); 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: `Domain restore failed: ${msg}` }, ], isError: true,