Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get DNS Policy Details

unifi_get_dns_policy
Read-onlyIdempotent

Retrieve one local DNS record or forward-domain policy by ID, returning its domain, record type, and enabled state for DNS record management.

Instructions

Get one local DNS record / forward-domain policy by ID: domain, record type (A/AAAA/CNAME/MX/SRV/TXT/FORWARD_DOMAIN), and enabled state. This is local DNS record management, not content filtering. 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>"
    },
    "name": "unifi_get_dns_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
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)
responseFormatNo'markdown' for a compact human-readable summary (default), 'json' for full raw API datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by disclosing the nature of the returned entity, the valid record-type vocabulary, and the domain scoping clarification that this is local DNS record management rather than content filtering.

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?

Two sentences, front-loaded with the core action and followed by the disambiguation note and the ID provenance hint. No filler, no restatement of the title, and every clause carries information.

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?

This is a simple single-entity read with a fully described three-parameter schema and rich annotations. The description covers what is fetched, what ID to supply, where to obtain it, and an important domain-level disambiguation; nothing an agent needs in order to call it correctly is missing, and no output schema requires return-value explanation.

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 all three parameters (siteId, dnsPolicyId, responseFormat) are already documented in the schema, including the single-site fallback and the markdown/json choice. The description only restates that IDs come from unifi_list_dns_policies, adding no meaning beyond the schema — 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 (get one local DNS record / forward-domain policy by ID) and enumerates what is returned (domain, record type with the full A/AAAA/CNAME/MX/SRV/TXT/FORWARD_DOMAIN set, enabled state). The line 'This is local DNS record management, not content filtering' explicitly fences off a confusable adjacent concept, so an agent can distinguish it from filtering-related tools.

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 a clear entry condition — IDs come from unifi_list_dns_policies — which tells the agent the prerequisite call to make first. It does not name explicit when-not cases beyond the content-filtering exclusion, but the usage context for a by-ID getter is unambiguous.

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