Skip to main content
Glama

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
NameRequiredDescriptionDefault
contact_idYesContact ID to configure
regionYesRegion: 'eu' (European Union), 'lv' (Latvia), 'lt' (Lithuania)
paramsYesRegion-specific parameters as key-value pairs

Implementation Reference

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

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