Skip to main content
Glama

cloudflare_delete_dns_record

Destructive

Permanently delete a Cloudflare DNS record by matching its zone, name, and type, returning the deleted record so it can be recreated. An administrator approves the change before it runs.

Instructions

DESTRUCTIVE: delete a DNS record. name and type must match the record; they are checked first. The deleted record is returned so it can be recreated. Proposal: an administrator approves it before it runs.

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>",
      "zone_name": "<zone_name>",
      "record_id": "<record_id>",
      "name": "<name>",
      "type": "<type>"
    },
    "name": "cloudflare_delete_dns_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe record's name ("@", "www" or the full name).
typeYesThe record's type.
zone_idYesThe zone ID (32 hex characters, from cloudflare_get_zone or cloudflare_list_zones).
record_idYesThe DNS record ID (from cloudflare_list_dns_records).
zone_nameYesThe zone name (example.com.au). Checked against zone_id before anything is changed, so the approver sees which domain this is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false), the description discloses three behaviors the agent could not infer: the name/type values are validated before anything is destroyed, the deleted record is returned so the caller can recreate it, and execution is gated on administrator approval. These are exactly the mutation-side details annotations cannot carry.

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?

Four short sentences, front-loaded with the DESTRUCTIVE warning, with no filler. The approval sentence is telegraphic ("Proposal: an administrator approves it before it runs"), which reads slightly clipped but still conveys the gate.

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 five required parameters and no output schema, the description covers what gets destroyed, what is validated first, what comes back, and that approval is required. It omits what happens on a name/type mismatch (error vs. no-op) and whether a repeat delete of the same record fails or succeeds, which matters given idempotentHint=false.

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: it explains the preflight relationship between record_id and the name/type pair — that name and type are checked first as a guard against deleting the wrong record. That validation ordering is not visible anywhere in the schema.

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 opens with a specific verb and resource ("delete a DNS record") preceded by a DESTRUCTIVE marker, which cleanly separates it from the create/get/update/list siblings. It does not name any sibling explicitly, but the operation type is unambiguous from the verb alone.

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 states the precondition for a valid call (name and type must match the record) and the operational context (an administrator approves the proposal before it runs). It does not spell out when to prefer this over, say, an update that renames a record, but the guidance is clear enough to act on.

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