Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Update Nameservers

update_nameservers
DestructiveIdempotent

Replace all nameservers for a domain in your Porkbun account with a full list of 2-13 entries. Use it to point a domain to custom DNS; this disables Porkbun's free DNS hosting.

Instructions

Replace the nameservers for a domain in the authenticated account. This is a full replacement, not an append — the supplied list becomes the complete set of nameservers. Most TLDs require 2-13 entries. Setting custom nameservers disables Porkbun's free DNS hosting for the domain. Idempotent: applying the same NS list twice is a no-op. The list is applied as a set — the registry may return it in a different order, so do not expect get_nameservers to echo your ordering back, and do not treat a reordering as drift.

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>",
      "nameservers": "<nameservers>"
    },
    "name": "update_nameservers"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDomain to update, e.g. `example.com`
dry_runNoIf true, validate only — returns wouldSucceed without changing the nameservers.
nameserversYesFull list of nameservers (e.g. `['ns1.example.com', 'ns2.example.com']`). Minimum 2, maximum 13.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.39.4
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "If true, validate only — returns wouldSucceed without changing the nameservers.",
      +  "type": "boolean"
      +}
  2. First observedv0.4.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, but the description adds substantive behavior beyond them: the entire prior nameserver set is destroyed and replaced, free DNS hosting is deactivated as a side effect, the operation is a no-op on repeat, and the registry may reorder results so a reordering is not drift. The idempotency claim is consistent with the annotation rather than merely restating it.

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?

Sentences are front-loaded with the core replacement semantics, then the cardinality guardrail, then the side effect, then the ordering caveat. Every clause carries operational weight and nothing is filler.

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

Completeness4/5

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

For a destructive, open-world mutation with no output schema, the definition covers replacement semantics, cardinality, side effects, idempotency, and result ordering — the major hazards. It does not mention prerequisites (the domain must already be in the authenticated account) or what a dry_run or successful call returns, leaving the dry_run contract to the parameter description.

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, but the description goes further by explaining that the nameservers list is applied as a set whose ordering carries no meaning — a nuance that prevents an agent from misreading get_nameservers output as drift. dry_run is left entirely to the schema, so it is not a full 5.

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?

The opening sentence gives a specific verb and resource — 'Replace the nameservers for a domain' — and the bolded 'full replacement, not an append' clause pins down semantics that separate it from a reader like get_nameservers. An agent can tell exactly what this mutates without opening the 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?

It supplies real context for when to reach for this tool: the 2-13 entry constraint on most TLDs and the consequence that custom nameservers disable Porkbun's free DNS hosting. It stops short of naming an explicit alternative (e.g., 'use update_dns_record for individual records'), so there is no stated when-not condition.

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