Skip to main content
Glama

Create a DNS record

lw_record_create

Create a DNS record with a preview of changes and conflict checks, then confirm to apply it. Supports A, AAAA, ALIAS, CNAME, MX, NS, PTR, SRV, and TXT records.

Instructions

Create a DNS record (v1 Network/DNS/Record/create). name may be relative ("www"), "@" for the apex, or fully qualified. For MX and SRV put the priority in prio, not rdata (rdata "10 mail.example.com" is split for you). SRV rdata is "weight port target". Preview shows the records at that name before and after, and flags conflicts such as CNAME at the apex, CNAME next to other records, or an exact duplicate. Write: needs LW_ALLOW_WRITES, then a confirmation step (preview 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": {
      "name": "<name>",
      "type": "<type>",
      "rdata": "<rdata>"
    },
    "name": "lw_record_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoTTL in seconds (Liquid Web default if omitted).
nameYesRecord name: "@", "www", or "www.example.com".
prioNoPriority for MX and SRV.
typeYesRecord type. The v1 API accepts A, AAAA, ALIAS, CNAME, MX, NS, PTR, SRV, TXT (no CAA).
zoneNoZone name, e.g. "example.com". Give this or zone_id.
rdataYesRecord data: IP for A/AAAA, hostname for CNAME/MX/NS/ALIAS/PTR, text for TXT (no quotes needed), "weight port target" for SRV.
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
zone_idNoNumeric zone id from lw_zone_list. Give this or zone.
confirm_tokenNoLeave empty on the first call to get a preview and a token. Repeat the call with identical parameters plus this token to execute.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Adds substantial context beyond annotations: the permission flag needed, the mandatory two-step preview-then-confirm flow via confirm_token, and what the preview returns (before/after state plus conflict detection for CNAME at apex or duplicates). Minor gaps remain on error behavior and whether the token expires, but the write workflow is well disclosed.

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?

Front-loads the operation and name semantics, then prerequisites. Dense with parentheticals but essentially every clause carries information an agent needs; only the embedded API path string is arguably filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 9 parameters, an output schema, and full annotations, the description fills the remaining gaps an agent needs: auth requirement, confirmation workflow, record-name formats, and validation/conflict warnings. Nothing required to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds real meaning: accepted name forms (relative, "@", fully qualified), that priority must go in prio rather than rdata, that "10 mail.example.com" is auto-split, and the SRV rdata layout "weight port target".

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 and resource ("Create a DNS record") plus the exact API operation it maps to (v1 Network/DNS/Record/create), which lets an agent distinguish it from lw_record_update, lw_record_delete, and lw_zone_create without opening a schema.

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?

Gives clear preconditions for use: write permission LW_ALLOW_WRITES is required and a preview must precede the confirmed call. It does not explicitly contrast with lw_record_update (modifying an existing record) or lw_record_details, so alternatives are left implicit rather than named.

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

Deploy Server

Other Tools