Skip to main content
Glama

Delete DNS zone

delete_dns_zone
Destructive

Delete a forward DNS zone and queue it for removal from managed DNS; if the zone is delegated and serves the domain, confirm the outage because deletion stops worldwide resolution.

Instructions

Delete a forward DNS zone. Published zones are queued for removal from the managed DNS platform; the zone's own records are kept on the deletion record, so re-creating the same name in the same account within 7 days publishes it again with those records. A published zone that the domain is delegated to VPSnet for (get_dns_zone: delegation.state=platform) answers for the whole internet: deleting it stops the domain resolving worldwide (websites, e-mail). The API refuses such a delete with HTTP 409 deleteRequiresConfirmation (reason zone_serves_domain, confirm_field confirm_outage, the delegated nameservers) and deletes nothing. Tell the user exactly that and call again with confirm_outage=true only after the user explicitly confirmed the outage; never set it by default or infer it. Requires dns:write when using an API key.

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_id": "<zone_id>"
    },
    "name": "delete_dns_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
zone_idYesDNS zone ID
confirm_outageNotrue only after the user explicitly confirmed that deleting this zone stops the domain resolving worldwide; required when the API answered deleteRequiresConfirmation. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.18
    • addedInput schema / properties / confirm_outage
      Added value: +{
      +  "default": false,
      +  "description": "true only after the user explicitly confirmed that deleting this zone stops the domain resolving worldwide; required when the API answered deleteRequiresConfirmation. Default false.",
      +  "type": "boolean"
      +}
  2. First observedv2.3.16

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds substantial context beyond them: the 7-day record retention and re-publication behavior, the worldwide resolution outage for delegated zones, the exact HTTP 409 deleteRequiresConfirmation error with reason and confirm_field, and the dns:write scope requirement. Nothing here contradicts the annotations; the destructive and non-idempotent hints are reinforced rather than restated.

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 description is long but dense and front-loaded, leading with the action, then consequences, then the confirmation protocol, then auth. The outage consequences are emphasized twice, which is justified for a destructive operation, though the phrasing could be tightened slightly without losing safety.

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?

For a destructive two-parameter tool with no output schema, this covers everything an agent needs: side effects, record retention, the failure mode and its exact error code, the retry protocol, and the permission requirement. There is no meaningful gap left for the agent to guess at.

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 adds real meaning by tying confirm_outage to a specific server-side handshake: it is only valid after a 409 deleteRequiresConfirmation response and only after explicit user confirmation. zone_id itself is left to the schema, which is fine given it is a plain identifier.

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 (delete a forward DNS zone) and immediately scopes it away from sibling operations by describing zone-level deletion versus the record-level deletes and read tools in the catalog. An agent can distinguish this from delete_dns_record or get_dns_zone from the first clause alone.

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?

Gives explicit when-to-use and when-not-to-act guidance, including the decision point (a zone delegated to the platform answers for the whole internet), the required user-confirmation step, and an explicit prohibition against setting confirm_outage by default or inferring it. It also points to get_dns_zone for checking delegation.state before acting.

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