bulk_register_domains
Register multiple domains simultaneously through the Dynadot API. This tool processes up to 100 domain registrations in a single operation with default settings that can be customized.
Instructions
Register multiple domains at once (up to 100). All domains are registered with default settings unless overridden.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domains | Yes | List of domain names to register | |
| currency | No | Currency for payment | |
| coupon | No | Coupon code for discount |
Implementation Reference
- src/tools/domain.ts:121-152 (handler)The handler implementation for the `bulk_register_domains` tool in `src/tools/domain.ts`, which uses the `client.bulkRegister` method to perform the operation.
server.tool( "bulk_register_domains", "Register multiple domains at once (up to 100). All domains are registered " + "with default settings unless overridden.", { domains: z .array(z.string()) .min(1) .max(100) .describe("List of domain names to register"), currency: z.string().optional().describe("Currency for payment"), coupon: z.string().optional().describe("Coupon code for discount"), }, async ({ domains, currency, coupon }) => { try { const result = await client.bulkRegister(domains, { currency, coupon }); 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: `Bulk registration failed: ${msg}` }, ], isError: true, }; } } );