Create Cloudflare Record
create_cloudflare_recordCreates a DNS record in a domain's Cloudflare zone so the change actually resolves for domains moved to Cloudflare. Supports A, AAAA, CNAME, TXT, MX, SRV, CAA, proxying and dry runs.
Instructions
Create a DNS record in a domain's Cloudflare zone. IMPORTANT: for a domain that has been moved to Cloudflare this is the tool that changes what actually resolves — create_dns_record writes Porkbun's zone, which no longer answers for it. name accepts "@" for the apex or a bare label like "www". ttl: 1 means Cloudflare-automatic. MX requires priority. proxied (orange cloud) applies to A/AAAA/CNAME only. Record types Cloudflare models as structured objects (SRV, CAA, …) need a data object instead of content. Supports dry_run.
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": {
"domain": "<domain>",
"type": "<type>"
},
"name": "create_cloudflare_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | 1 = automatic (default), otherwise 60-86400. | |
| data | No | Structured value for SRV/CAA/etc, shaped as Cloudflare documents it. | |
| name | No | "@" for the apex, a bare label like "www", or a full hostname. Defaults to the apex. | |
| type | Yes | A, AAAA, CNAME, TXT, MX, NS, PTR or SPF for a plain value; structured types need `data`. | |
| domain | Yes | Domain whose Cloudflare zone to write to. | |
| comment | No | Note stored on the record. | |
| content | No | The value the record points at. Required unless `data` is given. | |
| dry_run | No | ||
| proxied | No | Route through Cloudflare's proxy. A/AAAA/CNAME only. | |
| priority | No | Required for MX; lower is preferred. |