Skip to main content
Glama

upsert_dns_config

Create or update an internal domain's DNS configuration with upstream servers, resolver strategy, DNS64, search-domain, logging, and site scoping; changes are staged until applied.

Instructions

Create or update a DNS configuration for an internal domain. Returns a change_id; nothing changes until apply_change.

Args: name: The domain name (e.g., "internal.example.com"). server_addrs: List of upstream DNS server IPs (e.g., ["10.0.0.53", "10.0.0.54"]). strategy_resolver: How Bowtie resolves this domain: - "overlay" — resolve via both Bowtie and system DNS, prefer Bowtie - "exclusive" — only resolve via Bowtie's configured servers - "drop" — block all resolution for this domain strategy_dns64: DNS64 behavior: "preferred", "fallback", or "never". is_search_domain: If true, clients add this to their DNS search list. Must be true if using DNS64. is_log: Whether to log DNS queries for this domain. dns_id: UUID to update existing; omit to create new. include_only_site_ids: Limit this DNS config to specific sites (for overlapping IP space).

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>",
      "server_addrs": "<server_addrs>"
    },
    "name": "upsert_dns_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
dns_idNo
is_logNo
server_addrsYes
strategy_dns64Nonever
is_search_domainNo
strategy_resolverNooverlay
include_only_site_idsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the most consequential behavioral trait: this is a staged, two-phase write that returns a change_id and does not take effect until apply_change. That prevents a serious misunderstanding about mutation timing. It does not cover permission requirements, validation failure behavior, or what happens when overlapping site/IP configs conflict.

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-loaded with the purpose and the staging caveat before the argument list, so the most important facts are read first. The Args block is long but every entry is load-bearing given 0% schema coverage; only minor tightening (repeating type hints already in the schema) would help.

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

Completeness4/5

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

An output schema exists, so return-value explanation is not required, and the description's mention of change_id is a bonus. For an 8-parameter mutation tool with no annotations, it covers parameters, the staged-write workflow, and the DNS64/search-domain dependency well. Remaining gaps are error/edge-case behavior (site-overlap conflicts, invalid upstream addresses) rather than anything blocking correct invocation.

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 description coverage is 0% and enums are absent from the schema, so this is exactly where the description must compensate — and it does, documenting all 8 parameters with examples and meanings. It defines the three strategy_resolver modes ('overlay'/'exclusive'/'drop'), the strategy_dns64 values, and a cross-parameter constraint not expressible in the schema ('is_search_domain must be true if using DNS64'). Purpose of the nullable include_only_site_ids (overlapping IP space) is also explained.

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?

Opens with a specific verb+resource: 'Create or update a DNS configuration for an internal domain,' and explicitly frames it as an upsert whose create-vs-update switch is dns_id. The scope is clear enough to distinguish it from get_dns_config / delete_dns_config / list_dns_configs siblings, though it never names those siblings to reinforce the distinction.

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 concrete operational context: the change is staged and 'nothing changes until apply_change,' which routes the agent to the correct follow-up sibling. It also states the selection rule for the two modes of this tool ('dns_id: UUID to update existing; omit to create new'). It stops short of naming when a different tool (e.g., a block-list upsert) is the better choice.

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