Skip to main content
Glama

ensure_dns_records

Read-only

Preview and apply idempotent DNS record changes, adding only missing records or replacing specified host/type sets for safe zone management.

Instructions

Preview idempotent DNS setup/import. By default only adds missing exact records. replace_rrsets=true replaces ALL records of each supplied host/type; other sets stay.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYes
recordsYes
replace_rrsetsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, so the safety profile is covered; the description adds the useful blast-radius detail that replace_rrsets wipes ALL records for each supplied host/type while other sets stay, plus the default add-missing-only mode. However, it uses active mutation language ('adds', 'replaces') that sits uneasily with readOnlyHint=true and never states plainly that the call is a dry-run that applies nothing, so the apply-vs-preview question is left for the agent to resolve.

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?

Three short clauses, zero filler, with the key behavioral fork (default vs replace_rrsets) front-loaded right after the purpose statement. The trailing fragment 'other sets stay' is terse but carries real information; nothing is padded.

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

Completeness2/5

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

Return values need not be covered since an output schema exists, and annotations carry the safety profile. But for a batch tool accepting up to 100 records with a rich, type-dependent nested record shape at 0% schema coverage, the description leaves the record-field semantics, the domain parameter format, and whether anything is actually applied versus merely previewed unresolved.

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

Parameters2/5

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

Schema description coverage is 0%, and the description compensates for only one of three top-level parameters: replace_rrsets is explained well ('replaces ALL records of each supplied host/type; other sets stay'). 'domain' is never explained (string vs positive integer ID), and the 14-field DNSRecord objects in 'records' (type-dependent fields such as priority/weight/port for SRV, usage/selector/digest for TLSA, flags/tag for CAA) are entirely undocumented in both schema and description.

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 names a specific action (preview of idempotent DNS setup/import) and the resource (DNS records), and the second sentence pins down the record-level behavior. It is clearly a bulk/ensure-style record tool rather than a single-record CRUD tool, but it never names a sibling (create_dns_record, plan_dns_batch, apply_plan) to draw the boundary explicitly.

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

Usage Guidelines2/5

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

It contrasts two modes (default 'only adds missing exact records' vs replace_rrsets=true), but that is behavior of a flag rather than guidance on when to choose this tool over create_dns_record/update_dns_record/plan_dns_batch/apply_plan. No prerequisites (domain must exist, zone ownership) or when-not-to-use conditions are given.

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