Skip to main content
Glama

Delete DNS Record

delete_dns_record
Destructive

PERMANENTLY delete a single DNS record from a Cycle zone: it stops resolving, and for a linked record Cycle also tears down its load-balancer routing and stops maintaining its TLS certificate. IRREVERSIBLE.

Two-step: call without confirm to get a preview, show it to the user, and only after they approve this exact deletion call again with zone, record_id, and confirm set to the preview's confirm_token.

Addressing for the preview: pass a full 'domain' (e.g. 'app.example.com' — the covering zone and record name are derived; apex = '@'), or 'zone' plus 'name' (or 'record_id'). When several records share the name, 'type' or 'record_id' disambiguates.

To create or repoint records use manage_dns_record; to delete a whole zone, surface that as a gap — this tool only deletes single records.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_dns_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRecord name within the zone ('@' for apex, '*' for wildcard).
typeNoRecord type; disambiguates when several records share a name.
zoneNoZone origin (e.g. 'example.com') or 24-char hex ID. Required with confirm.
domainNoFull domain, e.g. 'app.example.com'; the covering zone and record name are derived. Alternative to zone+name.
confirmNoThe confirm_token from the preview; performs the deletion it described. Omit to preview.
contextNoWhy are you calling this tool? Briefly describe the user's goal.
record_idNoExact record ID (with 'zone'); disambiguates when several records share a name. With confirm, the 24-char hex ID from the preview.
wait_secondsNoconfirm only: max seconds to wait for the delete job to complete (default 60). 0 returns immediately after the job is accepted.
conversation_idNoConversation tracking id. Omit on your first tool call; every result then includes a conversation_id line — pass that exact value on all later calls in this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Set true ONLY after the user has explicitly approved deleting this exact record (shown its name, ID, type, payload, and zone). Requires zone plus record_id as the exact hex ID from the preview call."New value: +"The confirm_token from the preview; performs the deletion it described. Omit to preview."
    • changedInput schema / properties / confirm / type
      Previous value: -"boolean"New value: +"string"
    • changedInput schema / properties / record_id / description
      Previous value: -"Exact record ID (with 'zone'); disambiguates when several records share a name. With confirm:true this MUST be the exact 24-char hex ID returned by the preview call."New value: +"Exact record ID (with 'zone'); disambiguates when several records share a name. With confirm, the 24-char hex ID from the preview."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, so the safety profile is known; the description earns credit for going further with irreversibility, the cascading effects on linked records (LB routing, TLS cert), and the human-approval gate. It also explains that wait_seconds=0 returns after the job is merely accepted, which is real behavioral context absent from annotations.

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 irreversible consequence and the two-step flow, then addressing, then alternatives — a sensible priority order with no filler. The addressing paragraph partly restates the schema's own field descriptions (apex, derived zone), which is mild redundancy in an otherwise tight definition.

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 9-parameter, zero-required, destructive tool with no output schema, the description covers everything an agent needs: preview/confirm sequencing, addressing alternatives, disambiguation, cascade effects, and the wait behavior. Nothing material is left to inference.

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 baseline is 3. The description adds genuine semantics on top: how a full domain derives zone+name, apex='@', and the disambiguation order (type or record_id when names collide), plus the requirement that confirm carries zone and record_id from the preview — a cross-parameter constraint the schema states only piecewise.

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 scope: 'PERMANENTLY delete a single DNS record from a Cycle zone', and immediately clarifies the blast radius (stops resolving, tears down LB routing, stops TLS maintenance). It explicitly bounds the tool against siblings: manage_dns_record for create/repoint and 'this tool only deletes single records' rather than whole zones.

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 an explicit two-step protocol (preview first, show user, re-call with confirm_token), names the alternative tool for the adjacent operation, and tells the agent what to do when the user wants a whole-zone delete (surface as a gap). Both when-to-use and when-not-to-use are present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources