Skip to main content
Glama

unifi_posture_audit

Read-onlyIdempotent

Audit UniFi security posture to list HIGH-first findings: open port forwards, weak WiFi encryption, risky zone policies, any-any rules, IDS/IPS gaps, new clients, and firmware updates.

Instructions

Audit the security posture and list findings (severity, object, why), HIGH first: port forwards open to any source with the inbound threats against their target; WiFi with no encryption, WPA2-only where an AP supports WPA3, or a guest SSID not isolated; zone policies that let a less trusted zone or network into a more trusted one; ALLOW policies matching any → any; networks of different trust sharing one zone (IoT in Internal); user-defined policies repeated as copies; IDS/IPS off or detect-only; clients first seen in the last newClientDays; devices with firmware updates. Rules that cannot run (e.g. zone rules while Zone-Based Firewall is off or a firewall endpoint changed) are listed under skipped with the reason. Findings the owner accepted as intended (UNIFI_MCP_ACCEPTED_FINDINGS) are listed under accepted, severity kept, and left out of counts; an acceptance that matches no finding is listed under staleAccepted. WPS is not checked: the console config does not expose it.

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_posture_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
threatDaysNoWindow for inbound threats against port-forward targets, in days (default 7)
newClientDaysNoWindow for new clients, in days (default 7)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/non-destructive), the description discloses finding ordering, that findings carry severity/object/why, that unrunnable rules appear under 'skipped' with a reason, that accepted findings keep severity but are excluded from counts, that unmatched acceptances surface as 'staleAccepted', and that WPS is not checked. That is exactly the kind of edge-case context structured fields cannot convey.

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?

The purpose and severity ordering are front-loaded, and the dense semicolon-delimited rule list carries no filler. It is long, but each clause maps to a distinct audit rule or output bucket, so the length is earned rather than padded.

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?

With no output schema and no annotations about return shape, the description fully compensates by describing the finding structure, the skipped/accepted/staleAccepted partitions, counting semantics, and one known blind spot (WPS). An agent has enough to interpret results correctly without further documentation.

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 documents all three parameters, and the description only links threatDays ('inbound threats against their target') and newClientDays ('clients first seen in the last newClientDays') to their respective rules. It adds a little operational meaning but does not explain the site parameter or the interaction between the two windows.

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 opens with a specific verb+resource ("Audit the security posture and list findings") and then enumerates the exact finding categories covered, so an agent can distinguish it from sibling list/CRUD tools like unifi_list_firewall or unifi_list_port_forwards 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is strongly implied by the rule enumeration and the 'HIGH first' framing, and the skipped/accepted/staleAccepted behavior signals it is a read-only report. However, it never explicitly names an alternative or states when *not* to call it (e.g. versus querying individual resources with the list tools), so routing must be inferred.

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