Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Update DNS Record

update_dns_record
DestructiveIdempotent

Modify an existing DNS record by its record ID, changing only the fields you pass such as content, TTL, name or priority. Use dry_run first to validate the record exists and is editable before applying.

Instructions

Update an existing DNS record by its numeric record_id (obtained from list_dns_records). All fields except record_id and domain are optional — pass only the ones you want to change. Idempotent: applying the same update twice is a no-op.

Check warnings in the response and pass it on. Porkbun keeps a DNS zone for every domain in the account whether or not the domain is delegated to Porkbun's nameservers, so this write succeeds either way. If the domain points somewhere else, the response is still SUCCESS but carries a warnings string naming the nameservers that actually answer — the record exists and nothing resolves differently. Do not report plain success in that case: either make the change at the provider that runs those nameservers, or offer update_nameservers to point the domain at Porkbun.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "<domain>",
      "record_id": "<record_id>"
    },
    "name": "update_dns_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoNew TTL in seconds.
nameNoNew subdomain prefix (empty string = apex).
prioNoNew priority (MX/SRV only).
typeNoNew record type (rarely changed).
domainYesDomain the record belongs to, e.g. `example.com`
contentNoNew record value.
dry_runNoIf true, validate only — confirms the record exists and is editable, returns wouldSucceed without changing it.
record_idYesNumeric record ID (as a string). Get this from `list_dns_records`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.65.22
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "A",
      -  "AAAA",
      -  "CNAME",
      -  "MX",
      -  "TXT",
      -  "NS",
      -  "ALIAS",
      -  "SRV",
      -  "TLSA",
      -  "CAA",
      -  "SSHFP",
      -  "HTTPS",
      -  "SVCB"
      -]New value: +[
      +  "A",
      +  "AAAA",
      +  "CNAME",
      +  "MX",
      +  "TXT",
      +  "NS",
      +  "ALIAS",
      +  "SRV",
      +  "TLSA",
      +  "CAA",
      +  "SSHFP",
      +  "HTTPS",
      +  "SVCB",
      +  "SMIMEA",
      +  "OPENPGPKEY",
      +  "DS"
      +]
  2. Changed1 schema field changedv0.39.4
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "If true, validate only — confirms the record exists and is editable, returns wouldSucceed without changing it.",
      +  "type": "boolean"
      +}
  3. First observedv0.4.1

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well past the annotations by disclosing that Porkbun holds a zone for every account domain, so the write returns SUCCESS even when the domain is delegated elsewhere, and that a `warnings` string then names the nameservers that actually answer. It tells the agent not to report plain success in that case and routes to update_nameservers, which is exactly the kind of non-obvious behavior annotations cannot express. Restating idempotency is redundant with idempotentHint=true but harmless.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads purpose and the identifier source, then uses a bold lead-in to make the warnings caveat scannable. The second paragraph is long but every clause carries operational consequence, so nothing reads as filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly takes on the burden of explaining the response's `warnings` field and its meaning, plus the dry_run validate-only path is documented in the schema. For an 8-parameter destructive mutation, an agent has everything needed to call it and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds real meaning by stating the partial-update contract — only `record_id` and `domain` are required and unspecified fields are left unchanged — which the schema's optionality alone does not spell out. It does not touch field-specific constraints like TTL range or MX/SRV priority, but the schema already covers those.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (update an existing DNS record) and pins the identifier semantics: `record_id` is numeric and comes from `list_dns_records`. That is enough to separate it from create_dns_record and delete_dns_record without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear on the update case and on the partial-update contract (pass only the fields you want to change), and it names a concrete alternative (update_nameservers) for the non-delegated-domain case. It does not explicitly address when to create a new record versus edit an existing one, which keeps it off a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools