Skip to main content
Glama

Apply DNS records

apply_dns_records
DestructiveIdempotent

Replace the DNS records of a domain name of this project. Use when the person asked to change the DNS of a domain bought at Galon and confirmed the full new set. Before: read_dns_records (needs domain dns_read access), then show the person the full new set and get their confirmation. Returns a job; its result (get_job, needs job read access) holds the applied records. Scope: domain:dns_write. Replaces every record. Cost: free.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "replace",
      "domain": "acme-shop.com",
      "confirm": "acme-shop.com",
      "records": [
        {
          "ttl": 3600,
          "name": "@",
          "type": "A",
          "value": "203.0.113.10"
        },
        {
          "name": "@",
          "type": "MX",
          "value": "mx.galon.email",
          "priority": 10
        }
      ],
      "idempotency_key": "dns-apply-acme-shop-1"
    },
    "name": "apply_dns_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesAlways replace: the records sent become the full set.
domainYesDomain name, e.g. acme.com
confirmYesThe exact domain name, typed again by the person as confirmation.
recordsYesThe FULL set of records after the change (the previous set is replaced).
idempotency_keyYesUnique per request. Reuse it on retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint/idempotentHint/openWorldHint, but the description adds real context beyond them: 'Replaces every record' (what is destroyed), required scope domain:dns_write, cost-free, and the asynchronous job return path via get_job with its own access requirement. This is the behavioral detail an agent needs before a destructive write.

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?

Dense but well front-loaded: action first, then usage trigger, then prerequisites, then return path, then scope and cost. The telegraphic 'Before:' and 'Scope:' fragments are efficient; only minor tightening would improve it.

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?

For a destructive, multi-parameter mutation with no output schema, the description covers the full agent-relevant surface: confirmation workflow, access scope, set-replacement semantics, and how to retrieve the applied result via get_job. Nothing essential is missing.

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 documents domain, confirm, records, mode, and idempotency_key in detail. The description reinforces the intent of 'records' as the full replacement set and 'confirm' as a typed confirmation, but adds no syntax or format detail beyond the schema; baseline 3 is appropriate.

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?

Opens with a specific verb+resource+scope: 'Replace the DNS records of a domain name of this project.' It contrasts implicitly with the read sibling named later (read_dns_records), so an agent can tell the destructive set-replacement apart from a read without inspecting either schema.

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

Usage Guidelines5/5

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

Gives explicit trigger conditions ('person asked to change the DNS of a domain bought at Galon and confirmed the full new set') and a mandatory pre-flight sequence: read_dns_records, show the full new set, obtain confirmation. It also names the alternative read tool and the access it needs, leaving nothing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.