Skip to main content
Glama

unifi_events

Read-onlyIdempotent

Filters the console event log by category, severity, device, client, or text and returns messages newest first, so you can trace security or audit activity in a time range.

Instructions

Search the console event log, newest first, messages rendered as the UI shows them. Filter by category (e.g. SECURITY), minSeverity, since/until (default last 24 h), device, client (name, IP or MAC, matched against the entry parameters) and text. Reads up to 20000 entries; if the range is longer it says how far back it got.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite name, id or reference; optional while the console has a single site
textNoText to find in the rendered message or title
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
clientNoClient name, IP or MAC in the event
deviceNoDevice name or MAC in the event
categoryNoEvent category, e.g. SECURITY, AUDIT, VPN
minSeverityNoLowest severity to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered. The description adds genuinely non-obvious behavior: results come back newest-first, the window defaults to 24 hours, reads are capped at 20000 entries, and truncation is disclosed with how far back it reached. That truncation/disclosure detail is exactly the kind of operational trait annotations cannot express.

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?

Three sentences, front-loaded with the verb and resource, then filters, then the read cap and truncation caveat. The parentheticals are compact and carry real information rather than padding, though the filter enumeration partially duplicates the schema's own property list.

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?

With no output schema, the description carries the return-side burden and does so by describing ordering, UI-rendered messages, and the 20000-entry ceiling with truncation messaging. Nine parameters with full schema coverage mean little else is needed, though the relationship between the returned row count and the 'limit' parameter is never addressed.

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 baseline is 3 and the schema already documents every parameter including the span syntax (90m, 24h, 7d). The description adds modest value by stating the since default (last 24 h) and that client matching is against entry parameters, but it largely restates the filter list the schema already covers.

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?

States a specific verb and resource ('Search the console event log') plus ordering ('newest first') and rendering behavior ('messages rendered as the UI shows them'), which is well beyond a tautology. It does not name or contrast with any sibling such as unifi_audit_log, which likely overlaps on log-searching, so an agent gets a clear purpose but no explicit differentiation.

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 implied rather than stated: the description tells you the tool searches events and that the default range is the last 24 hours, which implicitly tells an agent when it is appropriate. It gives no when-not guidance and never points to an alternative tool for audit-style or non-event queries, leaving routing to inference.

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