Skip to main content
Glama

cloudflare_create_dns_record

Creates A, AAAA, CNAME, MX, TXT, or NS DNS records in a Cloudflare zone, with administrator approval before the change runs.

Instructions

Create a DNS record (A, AAAA, CNAME, MX, TXT or NS) in a zone. name may be "@", "www" or the full name. 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>",
      "type": "<type>",
      "name": "<name>",
      "content": "<content>"
    },
    "name": "cloudflare_create_dns_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoTTL in seconds: 1 = automatic (default), or 60 to 86400.
nameYesRecord name: "@" (the apex), "www", or the full name.
typeYesRecord type.
commentNoA note on the record (Cloudflare record comment).
contentYesRecord content: an IPv4 (A) or IPv6 (AAAA) address, a host name (CNAME, MX, NS), or TXT text without surrounding quotes.
proxiedNoProxy through Cloudflare (orange cloud). A, AAAA and CNAME only; default false (DNS only).
zone_idYesThe zone ID (32 hex characters, from cloudflare_get_zone or cloudflare_list_zones).
priorityNoMX priority (required for MX).
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/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true. The description adds the crucial detail that this is a proposal gated by administrator approval, which the annotations do not convey; it stops short of saying what the call returns or what happens on duplicate records.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the core action and record types front-loaded, followed by the approval caveat. Nothing is wasted and nothing important is buried.

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?

For a nine-parameter mutation with full schema coverage and annotations covering the safety profile, this is nearly complete. The remaining gap is the post-approval lifecycle (whether a proposal identifier is returned and how the agent tracks it), which an agent would likely want to know.

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 the schema already explains every one of the nine parameters. The description's note about name formats ('@', 'www', full name) restates what the schema's name field already documents, adding no new meaning.

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 ('Create') and resource ('DNS record') and enumerates the supported record types (A, AAAA, CNAME, MX, TXT, NS). The create verb cleanly separates it from the update/delete/get/list siblings without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The note that an administrator must approve the proposal gives useful context on how the call behaves, but there is no explicit when-to-use vs. when-not guidance and no steer toward cloudflare_update_dns_record for existing records. Usage is implied rather than stated.

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