Skip to main content
Glama

Delete DNS record

delete_dns_record
DestructiveIdempotent

Delete a DNS record by its ID within a zone, with a confirmation prompt before removal when the client supports it.

Instructions

Delete a DNS record by id (from list_dns_records). When the client supports it, the user is asked to confirm first; if they decline, nothing is deleted and the result has status 'declined' (or 'cancelled').

Input Schema

NameRequiredDescriptionDefault
idYesRecord id from list_dns_records.
typeYesRecord type: a, aaaa, cname, mx, txt, ns, srv, caa, tlsa, sshfp, or url (Zone's HTTP redirect record).
zoneYesDNS zone, e.g. 'example.com'.

Output Schema

NameRequiredDescriptionDefault
idNo
typeNo
zoneNo
recordNo
statusNo
messageNoSet when the user declined or dismissed the confirmation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds meaningful behavior beyond that: a confirmation prompt when the client supports it, and the exact outcome semantics when the user declines ('declined'/'cancelled', nothing deleted). It stops short of covering failure modes such as a missing or already-deleted record.

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?

Two sentences, front-loaded with the verb and resource, then the confirmation behavior. The parenthetical '(or cancelled)' is slightly noisy but does convey a real variant status, so no sentence is wasted.

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?

With a complete output schema and 100% parameter coverage, the description only needs to explain the destructive confirmation flow, which it does, including the declined/cancelled outcome. Minor gap: no mention of what happens on invalid ids or whether dependent records are affected.

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 description coverage is 100%, so all three parameters (zone, type, id with a full enum list) are already fully documented in the schema. The description reiterates that id comes from list_dns_records, which is already stated in the id's schema description, and adds no further meaning for zone or type. Baseline 3 applies when the schema carries the load.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Delete a DNS record') and names the lookup tool that supplies the id, so it is distinguishable from create_dns_record and update_dns_record. It does not explicitly contrast itself with those siblings, but the operation is unambiguous.

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 gives a clear prerequisite: the id must come from list_dns_records, which tells an agent to look the record up first. It does not name explicit when-not-to-use conditions, but for a destructive delete the usage context is adequately conveyed.

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