Skip to main content
Glama

unifi_audit_log

Read-onlyIdempotent

Retrieve UniFi console audit log entries to see who changed what and when, filtering by actor, site, and time range.

Instructions

Who changed what and when: the console's AUDIT log (default last 7 days), newest first. actor filters to one admin by name or id; pass actor: 'unifi-mcp' to see only this MCP's own changes once its dedicated admin exists.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
actorNoAdmin name or id to filter to
limitNoRows to return (default 100, at most 1000)
sinceNoStart of the range: an ISO 8601 timestamp (2026-10-31T08:00:00Z) or a span back from now such as 90m, 24h, 7d or 2w
untilNoEnd of the range (default now): an ISO 8601 timestamp (2026-10-31T08:00:00Z) or a span back from now such as 90m, 24h, 7d or 2w

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so the safety profile is covered; the description adds value beyond them by disclosing the default time window and the newest-first ordering, neither of which appears in the schema. It also hints at an identity prerequisite ('once its dedicated admin exists'), though it does not cover truncation behavior at the 1000-row cap or the shape of a returned entry.

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 tight sentences with the resource, default range and ordering front-loaded before the filtering note. Slightly dense parenthetical/colon-heavy phrasing, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, five-optional-parameter list tool with full schema coverage and no output schema, what is present is adequate for calling it correctly. However, the description never indicates what an audit entry contains or how results are truncated/paged, which matters for a log-retrieval tool an agent will interpret results from.

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 five parameters are already self-documenting, and the description's 'name or id' restatement of actor duplicates the schema. The useful addition is the concrete filter value 'unifi-mcp' for isolating this MCP's own changes, which is real meaning beyond the schema but limited to one parameter, keeping this near baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a concrete framing ('Who changed what and when') and names the specific resource: the console's AUDIT log, with ordering ('newest first') and a default window (last 7 days). It is clearly distinct from operational feeds like unifi_events, though it never explicitly names a sibling to contrast with, which keeps it just short of a 5.

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?

Clear context is given for when to reach for it (auditing admin changes, viewing this MCP's own mutations via actor: 'unifi-mcp'), plus the default 7-day scope. There are no explicit exclusions or a named alternative such as unifi_events, so an agent must infer the boundary itself.

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