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
| Name | Required | Description | Default |
|---|---|---|---|
| contact_id | Yes | Contact ID to edit | |
| fields | Yes | Fields to update as key-value pairs. Valid keys: name, email, phone_num, address1, address2, city, state, zip_code, country, organization, fax_num |
Implementation Reference
- src/tools/contact.ts:75-106 (handler)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, }; } } );