Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Update DNS Record / Policy

unifi_update_dns_policy
DestructiveIdempotent

Replace a local DNS record or forward-domain policy with a full update: fetch the current policy, modify its config, and write it back by ID.

Instructions

Replace a local DNS record / forward-domain policy (full PUT). Fetch the current object via unifi_get_dns_policy, modify, and pass as 'config'. IDs come from unifi_list_dns_policies.

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": {
      "dnsPolicyId": "<dnsPolicyId>",
      "config": "<config>"
    },
    "name": "unifi_update_dns_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesFull DNS record/policy object to write (fetch current via unifi_get_dns_policy, then modify). A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out.
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
dnsPolicyIdYesDNS policy ID (UUID from unifi_list_dns_policies)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so safety is covered structurally; the description adds the consequential detail that this is a full PUT replacement requiring a prior fetch, which warns the agent that a partial config will clobber the record. It does not mention the "[redacted]" credential rejection (that lives only in the schema) or failure behavior, so it is strong but not complete.

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

Conciseness5/5

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

Three short sentences, front-loaded with the operation and its mutation semantics, then the prerequisite workflow, then where IDs come from. No filler and nothing buried.

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?

For a destructive, schema-rich, no-output-schema update tool, the description covers operation type, replacement semantics, and the read-modify-write prerequisite — the essentials an agent needs to avoid data loss. Minor gaps (redaction refusal, what happens if the policy is absent) are covered in the schema, not the prose.

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%, and the schema already explains that config must be a full object fetched via unifi_get_dns_policy and that dnsPolicyId comes from unifi_list_dns_policies. The description restates this workflow rather than adding new parameter semantics, so the baseline 3 applies.

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 ("Replace a local DNS record / forward-domain policy") plus the write semantics "(full PUT)", which immediately separates it from unifi_create_dns_policy and unifi_get_dns_policy. An agent knows exactly what the operation is 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?

Explicitly prescribes the required read-modify-write workflow: fetch via unifi_get_dns_policy, modify, pass as 'config', with IDs sourced from unifi_list_dns_policies. It stops short of stating the inverse guardrail (e.g. use unifi_create_dns_policy for new records, or that omitting fields drops them), so it is clear but not fully routable against every sibling.

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