set_contact_regional_setting
Configure region-specific contact settings for EU, Latvia, or Lithuania TLD registries by providing contact ID, region, and required parameters.
Instructions
Set region-specific contact settings required by certain TLD registries (EU, Latvia, Lithuania). Pass the appropriate parameters for the region.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contact_id | Yes | Contact ID to configure | |
| region | Yes | Region: 'eu' (European Union), 'lv' (Latvia), 'lt' (Lithuania) | |
| params | Yes | Region-specific parameters as key-value pairs |
Implementation Reference
- src/tools/contact.ts:177-209 (handler)MCP tool registration and handler for 'set_contact_regional_setting' which dynamically constructs the API command based on the selected region.
server.tool( "set_contact_regional_setting", "Set region-specific contact settings required by certain TLD registries " + "(EU, Latvia, Lithuania). Pass the appropriate parameters for the region.", { contact_id: z.string().describe("Contact ID to configure"), region: z .enum(["eu", "lv", "lt"]) .describe("Region: 'eu' (European Union), 'lv' (Latvia), 'lt' (Lithuania)"), params: z .record(z.string()) .describe("Region-specific parameters as key-value pairs"), }, async ({ contact_id, region, params }) => { try { const command = `set_contact_${region}_setting`; const result = await client.setContactRegionalSetting(command, contact_id, params); 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 regional setting: ${msg}` }, ], isError: true, }; } } ); - src/services/dynadot-client.ts:276-278 (handler)Service method in DynadotClient that executes the actual API call for 'set_contact_regional_setting'.
async setContactRegionalSetting(command: string, contactId: string, params: Record<string, string>): Promise<DynadotResponse> { return this.call(command, { contact_id: contactId, ...params }); }