Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Import DNS Records

import_dns_records
Idempotent

Creates DNS records in bulk for a Porkbun domain from an exact list or a live scan, safely skipping records that already exist so transferred domains keep working.

Instructions

Create many DNS records on a Porkbun domain in one call — the companion to scan_dns_records for keeping a transferred domain working. Pass records to import an exact list (preferred when you read the zone from the old registrar's API), or omit it entirely to import whatever a live scan of the domain discovers. Idempotent: a record that already exists is reported in skipped, not failed, so this is safe to re-run and safe as a converge step. Individual failures are listed in failures while everything else still imports. NS and SOA entries are ignored on purpose — they describe the delegation, not the zone. Important: imported records have no effect until the domain actually points at Porkbun's nameservers, so check get_nameservers afterwards and use update_nameservers when the user is ready to cut over — when the domain is delegated elsewhere the response also says so in warnings. Maximum 500 records per call.

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

Input Schema

NameRequiredDescriptionDefault
domainYesPorkbun domain to create the records on, e.g. `example.com`
recordsNoExact records to create. Omit to import what a live scan of the domain finds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.39.4

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 (readOnlyHint=false, idempotentHint=true, destructiveHint=false): it explains that existing records land in `skipped` rather than `failed`, that partial failures go to `failures` while the rest still import, that NS/SOA are deliberately ignored, that there is a 500-record cap, and that imports are inert until delegation moves to Porkbun. That is exactly the operational context annotations cannot express.

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

Conciseness4/5

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

Front-loaded with the action and the records/no-records fork, then the safety and sequencing caveats. Dense but almost every sentence carries distinct information; the closing nameserver/delegation paragraph is the only stretch that could be tightened.

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?

Covers the gaps that matter for a mutating bulk-import with no output schema: response field names (`skipped`, `failures`, `warnings`), idempotency, partial-failure behavior, the 500-record ceiling, and the delegation precondition. Enough for correct invocation without further tooling context.

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 schema already documents `domain`, `records`, and nested fields; the description's added value is the decision semantics of the optional `records` array — exact list versus scan-derived — plus the 'preferred when you read the zone from the old registrar' rationale, which the schema does not state.

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?

Opens with a specific verb+resource+scope ("Create many DNS records on a Porkbun domain in one call") and immediately positions itself relative to scan_dns_records, so an agent can distinguish bulk import from single-record creation or scanning without opening a schema.

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

Usage Guidelines5/5

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

Explicitly states the two modes and when to pick each: pass `records` when the zone was read from the old registrar's API (stated as preferred), omit it to import from a live scan. It also gives downstream sequencing — check get_nameservers afterwards, call update_nameservers at cutover — and states what to do with the `warnings` signal.

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