Create DNS record
create_dns_recordAdd a DNS record (A, AAAA, CNAME, MX, TXT, NS). Takes effect on the internet; ask the user first.
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_id": "<domain_id>",
"type": "<type>",
"content": "<content>"
},
"name": "create_dns_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | 1 = automatic, otherwise 60–86400 seconds. | |
| name | No | @ for the domain itself, or a sub-name like www. | |
| type | Yes | Record type. Pick it from what you want: A for an IPv4 address, AAAA for IPv6, CNAME to point at another name, MX for mail, TXT for verification, NS to delegate. | |
| content | Yes | What the record points to, and it depends on the type: an IPv4 address for A (93.184.216.34), an IPv6 address for AAAA, a hostname for CNAME and NS (www.example.com), priority and host for MX (10 mail.example.com), and free text for TXT. | |
| proxied | No | Through Cloudflare's proxy (A, AAAA, CNAME only). | |
| priority | No | Required for MX. | |
| domain_id | Yes | The website's id — from list_sites. |