Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Delete DNS Record / Policy

unifi_delete_dns_policy
DestructiveIdempotent

Delete a local DNS record or forward-domain policy by policy ID; confirm before use because it is irreversible. Retrieve IDs from the DNS policy list.

Instructions

Delete a local DNS record / forward-domain policy. CAUTION: irreversible; confirm with the user. 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_delete_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)

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?

The annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is partly structured. The description adds the important agent-facing behavior that the operation is irreversible and requires user confirmation, going beyond what the annotation flags convey. It does not describe the response or what happens to references to the deleted policy, 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.

Conciseness5/5

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

Three short sentences with the primary action front-loaded, followed by the caution and the ID source. Every sentence carries actionable information and there is no filler.

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 two-parameter destructive tool, the description plus annotations plus fully documented schema give an agent everything needed to call it correctly and safely. Only the post-deletion behavior and return value are unaddressed, which is a minor gap with no output schema present.

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 the schema already explains both siteId (optional, auto-resolved for single-site consoles) and dnsPolicyId. The description's note that IDs come from unifi_list_dns_policies duplicates the schema's own parameter description, adding no new semantics. Baseline 3 is appropriate.

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 ('Delete a local DNS record / forward-domain policy'), and the plural noun distinguishes it from the sibling create/get/update/list variants. An agent can tell exactly what gets removed without opening any 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?

Makes the destructive intent explicit and instructs the agent to confirm with the user before invoking, plus points to unifi_list_dns_policies as the source of valid IDs. It does not spell out an explicit when-not or name a non-destructive alternative, but for a delete tool the selection context is clear enough.

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