Skip to main content
Glama

Create DNS zone

create_dns_zone
Destructive

Create a native or secondary forward DNS zone in VPSnet for domain record hosting, including TSIG-based secondary transfers and TXT ownership verification before publication.

Instructions

Create a native or secondary forward DNS zone in the authenticated VPSnet account. Secondary zones transfer records from public primary DNS servers and require TSIG. Normally creates pending_verification. With qualifying current ownership proof, the API may instead restore a recently deleted zone and queue immediate publication. Publication can delete stale zone candidates for the same name, including their DNS records and DDNS tokens. Existing live zones are refused; this does not register a domain or change registrar nameservers. Read the returned zone.status and apply_state: queued publication is not proof of live DNS service. When verification is needed, verificationRecord contains the public ownership TXT challenge (_vpsnet-dns.). Follow zone.verification.next_step and warnings for its location, then call verify_dns_zone. Keep nameservers already delegated to VPSnet. A previous-provider or parent-zone location may be required. If the TXT value is missing, first read get_dns_zone.zone.verification.record.value; reissue_dns_zone_verification rotates it only when unrecoverable or requested by the customer. Requires dns:write.

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": {
      "zone": "<zone>"
    },
    "name": "create_dns_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoZone kind. Defaults to native. Use secondary for AXFR-backed zones.
zoneYesZone name, e.g. example.com
secondary_mastersNoPublic primary DNS server IPs for a secondary zone. Non-public IPs are rejected by the API.
secondary_tsig_secretNoRequired for secondary zones. Base64 TSIG secret, 32-64 decoded bytes, e.g. openssl rand -base64 32. It is encrypted and never returned.
secondary_tsig_key_nameNoRequired for secondary zones. TSIG key name configured on the primary DNS server.
secondary_tsig_algorithmNoTSIG algorithm. Defaults to hmac-sha256.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint/openWorldHint/idempotentHint=false) by disclosing the specific damage path: publication 'can delete stale zone candidates for the same name, including their DNS records and DDNS tokens.' It also names the auth scope ('Requires dns:write'), the default outcome (pending_verification), the restore-on-ownership-proof exception, and warns that 'queued publication is not proof of live DNS service' — a trap the annotations alone would not reveal.

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?

The core action, its side effects, and the verification handoff are front-loaded before the operational caveats. It is dense and long — the TXT-recovery and nameserver-delegation guidance could be trimmed — but nearly every sentence carries decision-relevant information rather than 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?

There is no output schema, so the description carries the return-value burden and does it: it names zone.status, apply_state, verificationRecord, zone.verification.next_step and warnings, and tells the agent what those values mean. For a destructive, open-world, non-idempotent create, that is complete enough to call safely.

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

Parameters3/5

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

Schema coverage is 100%, so kind, secondary_masters and the TSIG fields are already documented in the input schema and the description largely restates them ('require TSIG'). Baseline 3 is appropriate; it adds almost no new per-parameter meaning beyond confirming the secondary path.

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 a native or secondary forward DNS zone in the authenticated VPSnet account.' It also draws a hard boundary against adjacent operations ('this does not register a domain or change registrar nameservers'), so an agent can separate it from create_domain_contact or verify_dns_zone 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?

Explicit routing in both directions: native vs secondary is stated ('Secondary zones transfer records from public primary DNS servers and require TSIG'), the exclusion is stated ('Existing live zones are refused'), and the handoff is named ('then call verify_dns_zone', 'first read get_dns_zone.zone.verification.record.value', 'reissue_dns_zone_verification rotates it only when unrecoverable'). An agent knows when to use this tool and which sibling to call next.

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