Skip to main content
Glama

Set private network DNS

set_private_network_dns
DestructiveIdempotent

Change a private network's DHCP DNS mode and resolver addresses; use custom DNS servers only in custom mode and poll the operation because the change can interrupt name resolution.

Instructions

Replace the network's DHCP DNS mode and resolver addresses; changing or disabling them can interrupt name resolution for attached guests. Use dns_servers only for custom mode. Poll get_private_network.settings.dns_change; its DNS update UUID is not in the network operations feed. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks. Read current capabilities and owned resource state first; obtain approval for the exact change. An accepted operation is pending, not proof of connectivity. Poll the returned operation/resource on its in_progress flag, waiting next_check_seconds between reads: while in_progress is true its reason_code is what is awaited (reason_kind waiting, e.g. a queued or pending reason, or a control plane that has not answered yet), never an error; only in_progress false with reason_kind failure is a failure. Preserve reason_code. On transport uncertainty inspect state and reuse only the original key and unchanged request; never automatically retry.

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": {
      "network_id": "<network_id>",
      "dns_mode": "<dns_mode>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "set_private_network_dns"
  }
}

Input Schema

NameRequiredDescriptionDefault
dns_modeYes
network_idYesExact lowercase UUID returned by an owned networking resource
dns_serversNo
idempotencyKeyYesIdempotency-Key for this exact change; preserve it and the unchanged body on uncertain recovery

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.21
    • addedInput schema / properties / dns_servers / items / pattern
      Added value: +"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"
  2. First observedv2.3.16

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (destructive/idempotent/non-read-only) it discloses the real-world consequence ('can interrupt name resolution for attached guests'), the permission scope split between networking:read and networking:manage, backend ownership/feature/2FA enforcement, and the pending-vs-failure semantics of in_progress and reason_code. It also gives explicit idempotency recovery rules (reuse original key and unchanged request, never auto-retry). Nothing here contradicts the destructiveHint=true annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the interruption warning are correctly front-loaded, and most sentences carry operational information. However, the polling/idempotency/failure-protocol block is a dense run-on that merges several distinct concerns (what to poll, what counts as failure, how to recover) into one paragraph, making it harder to scan than it needs to be.

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, permission-gated, asynchronous mutation with no output schema, the description covers the full arc: preconditions, permission model, pending-state polling with next_check_seconds and reason_code interpretation, and uncertain-recovery behavior. An agent has enough to invoke and monitor it correctly.

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

Parameters4/5

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

With only 50% schema description coverage, the description compensates for the most consequential gap by stating that dns_servers applies only in custom mode — a rule not derivable from the bare enum. It still leaves the dns_mode values 'provider' and 'none' unexplained, so the compensation is partial rather than complete.

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 opening clause 'Replace the network's DHCP DNS mode and resolver addresses' gives a specific verb plus resource and scope, so the agent knows exactly what is mutated. It does not name any sibling (e.g. set_private_network_names or apply_dns_template) to differentiate this DNS-setting tool from adjacent DNS tools, so it lands just below the top.

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?

It provides clear prerequisites ('Read current capabilities and owned resource state first; obtain approval for the exact change') and a conditional parameter rule ('Use dns_servers only for custom mode'). What it lacks is an explicit when-not or a named alternative tool for cases where this is the wrong choice.

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