Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List DNS Policies

unifi_list_dns_policies
Read-onlyIdempotent

List custom local DNS records and forward-domain policies for a UniFi site to inspect locally resolved domains, including record types, domain names, and enabled states.

Instructions

List custom local DNS records and forward-domain policies on a site — A/AAAA/CNAME/MX/SRV/TXT records and FORWARD_DOMAIN rules the gateway resolves locally. NOTE: this is local DNS record management, NOT DNS content filtering or domain blocking. Each entry has a domain, a record type, and enabled state. Filter example: "domain.like('*.home.arpa')".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unifi_list_dns_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
filterNoOptional UniFi filter expression: property.function(args) with functions eq, ne, like, in, isNull, isNotNull and more; combinators and(...), or(...), not(...). Strings in single quotes. Examples: "state.eq('OFFLINE')", "access.type.eq('GUEST')", "name.like('Office*')". Note: which properties are filterable varies by endpoint — a 400 error means that property/function is not supported here.
offsetNoNumber of results to skip, for pagination (default 0)
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
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 readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds genuinely new behavioral context: entries represent records the gateway resolves locally, and each carries a domain, a record type, and an enabled state. It does not discuss pagination totals or the differing shape of FORWARD_DOMAIN entries, which keeps it from a 5.

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 core purpose, then the disambiguating NOTE, then a concrete example — a sensible order. Every sentence carries information; the only slight redundancy is restating entry fields after already listing record types.

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?

No output schema exists, so the description must convey return shape, and it does ('Each entry has a domain, a record type, and enabled state'). The main residual gap is that FORWARD_DOMAIN rules likely carry target/destination fields not captured by that summary, so an agent may be mildly surprised by their structure.

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?

Schema coverage is 100%, so the 3 baseline is met by structured data alone. The description goes beyond it by showing a domain-specific filter expression ('domain.like(\"*.home.arpa\")'), which reveals that 'domain' is a filterable property here — information the generic schema examples do not provide.

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 plus resource ('List custom local DNS records and forward-domain policies on a site') and enumerates the exact record types covered (A/AAAA/CNAME/MX/SRV/TXT, FORWARD_DOMAIN). The NOTE explicitly distinguishes this from DNS content filtering / domain blocking, so an agent can tell it apart from a filtering-related tool without opening the 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?

Gives a clear when-not ('this is local DNS record management, NOT DNS content filtering or domain blocking') and supplies a worked filter example in domain terms. It stops short of naming which sibling to use for the filtering use case, but the exclusion plus the sibling naming pattern (create/get/update/delete_dns_policy) makes selection unambiguous in practice.

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