Skip to main content
Glama

edit_contact

Update specific contact information in your Dynadot domain registrar account by providing contact ID and fields to modify.

Instructions

Edit an existing contact record. Only provided fields will be updated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contact_idYesContact ID to edit
fieldsYesFields to update as key-value pairs. Valid keys: name, email, phone_num, address1, address2, city, state, zip_code, country, organization, fax_num

Implementation Reference

  • The registration and handler logic for the 'edit_contact' tool, which takes a contact_id and a record of fields to update, calling the client.editContact method.
    server.tool(
      "edit_contact",
      "Edit an existing contact record. Only provided fields will be updated.",
      {
        contact_id: z.string().describe("Contact ID to edit"),
        fields: z
          .record(z.string())
          .describe(
            "Fields to update as key-value pairs. Valid keys: name, email, " +
              "phone_num, address1, address2, city, state, zip_code, country, " +
              "organization, fax_num"
          ),
      },
      async ({ contact_id, fields }) => {
        try {
          const result = await client.editContact(contact_id, fields);
          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 edit contact: ${msg}` },
            ],
            isError: true,
          };
        }
      }
    );

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