Home / Servers / DigitalOcean API / domains_patch_record

Update a Domain Record

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Update a Domain Record To update an existing record, send a PATCH request to /v2/domains/$DOMAIN_NAME/records/$DOMAIN_RECORD_ID. Any attribute valid for the record type can be set to a new value for the record. See the… [PATCH /v2/domains/{domain_name}/records/{domain_record_id}]

Name on the gateway: digitalocean_api__domains_patch_record · may change things.

Parameters

NameTypeDescription
domain_name requiredstringThe name of the domain itself.
domain_record_id requiredintegerThe unique identifier of the domain record.
idintegerA unique identifier for each domain record.
type requiredstringThe type of the DNS record. For example: A, CNAME, TXT, ...
namestringThe host name, alias, or service being defined by the record.
datastringVariable data depending on record type. For example, the "data" value for an A…
priorityintegerThe priority for SRV and MX records.
portintegerThe port for SRV records.
ttlintegerThis value is the time to live for the record, in seconds. This defines the…
weightintegerThe weight for SRV records.
flagsintegerAn unsigned integer between 0-255 used for CAA records.
tagstringThe parameter tag for CAA records. Valid values are "issue", "issuewild", or…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__domains_patch_record",
  "arguments": {
    "domain_name": "…",
    "domain_record_id": 0,
    "type": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the update a domain record tool with domain_name set to ….

More from DigitalOcean API