Skip to main content
Glama

unifi_delete_dns_policy

DestructiveIdempotent

Delete a UniFi DNS policy by ID or domain, previewing candidate records and requiring confirm: true before removal.

Instructions

Delete a DNS policy (found by id or domain; several records for one domain come back as candidates). Always needs confirm: true; without it the tool previews.

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": {
      "dnsPolicy": "<dnsPolicy>"
    },
    "name": "unifi_delete_dns_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
confirmNoMust be true to carry out a guarded change; without it the tool only previews it
dnsPolicyYesDNS policy id, or its domain

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a guarded-confirm workflow with a preview fallback, and the fact that multiple records matching one domain surface as candidates. It does not explain what state is left behind after deletion or how disambiguation is resolved.

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?

Two sentences, verb-first, with no filler. The nested parenthetical carrying the id/domain and candidate details is slightly dense, but nothing is wasted and the destructive precondition is stated plainly.

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 tool with full schema coverage, annotations, and no output schema, the definition covers resolution, guarding, and preview behavior adequately. It leaves open what a preview returns and whether candidates require a follow-up call, which keeps it just short of complete.

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 baseline is 3; the description earns a bump by explaining that dnsPolicy accepts an id or a domain and that a domain may resolve to several candidates. That multi-match nuance is not in the schema, though the confirm/preview sentence largely restates the schema's own description.

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?

The description names a specific verb and resource ('Delete a DNS policy') and adds the resolution mechanism ('found by id or domain'), which is more than the tool name alone conveys. Against siblings such as unifi_create_dns_policy and unifi_update_dns_policy, the operation and target are unambiguous.

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 states the precondition for actually deleting ('Always needs confirm: true') and what happens otherwise ('the tool previews'), which is actionable when-to-use context. It does not name an alternative tool for cases like listing or previewing policies, so it falls short of explicit alternatives guidance.

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