Skip to main content
Glama
mcp-unifi-drive
by mgcrea

UniFi Drive: List Logs

unifi_drive_list_logs
Read-only

Retrieve UNAS system logs newest first, filtered by severity, category, type or time, to diagnose storage, snapshot and settings events. Sign-ins and file activity stay hidden unless explicitly included.

Instructions

The UNAS system log, newest first, each entry rendered as the sentence the web app shows ("A scheduled snapshot for Shared_Drive was skipped due to insufficient storage space."). Filter by severity, category, type and time. Sign-ins and file activity are EXCLUDED by default because they bury everything else — one line per SMB reconnect — so set include_access to see who connected from where. For a verdict rather than a log, use unifi_drive_health_check. Page with cursor.

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

Input Schema

NameRequiredDescriptionDefault
limitNoEntries per page (1-100). Defaults to 30.
sinceNoOldest entry to return. ISO 8601 ("2026-11-20T00:00:00Z"), a relative expression ("24h", "7d ago"), or "now".
typesNoExact log types, e.g. ["snapshots","storagePool"]. Overrides `categories`. Known types: backups, directoryIntegration, diskEnclosure, drive, driveEncryption, fanMode, fileActivity, fileServices, hotSpare, iscsi, scrubbing, sharedLinks, snapshots, ssdCache, storagePool, usbActivity, userAccess, userAndDriveManagement.
untilNoNewest entry to return. Defaults to now. ISO 8601 ("2026-11-20T00:00:00Z"), a relative expression ("24h", "7d ago"), or "now".
cursorNo`nextCursor` from a previous call, to fetch the next (older) page.
categoriesNoKeep only these categories: "storage" (pool, disks, cache, scrubbing), "settings" (snapshots, backups, file services…), "activity" (sign-ins, file and user changes). Overrides the default exclusion of sign-ins when it names activity.
severitiesNoKeep only these severities, e.g. ["high","very_high"]. Default: all.
include_accessNoInclude sign-ins (userAccess) and file activity when no `types` or `categories` are given. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral context beyond that: result ordering, sentence-style rendering, a default filter that hides access events and why, and cursor-based paging to older results. It stops short of noting rate limits, auth requirements, or the response envelope shape, so it is strong but not exhaustive.

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?

Front-loaded with what the tool returns and how entries look, followed by filtering, the default-exclusion caveat, the sibling handoff, and paging — every sentence carries information. The parenthetical quoted log line is long but justifies itself by showing the output format a reader would not otherwise know.

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 eight optional parameters and no output schema, the description needs to carry the return shape and paging story, and it does (sentences, newest first, cursor to next older page). Filter semantics for time ranges are left to the schema, which documents them fully, so the overall picture is complete enough to call the tool correctly.

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 already 100%, so the baseline is 3, but the description earns above that by explaining the interaction the schema only hints at: include_access only matters when no types or categories are given, and it reveals who connected from where. The cursor is explicitly tied to paging to the next (older) page.

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 the specific resource (the UNAS system log) and verb (list), and pins down ordering ('newest first') plus the exact rendering of each entry, quoting a sample line. It also distinguishes itself from the closest sibling by saying 'For a verdict rather than a log, use unifi_drive_health_check.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It gives explicit when-to-use guidance, states a non-obvious default (sign-ins and file activity are excluded because 'one line per SMB reconnect' buries the rest), explains how to opt in via include_access, and points to the alternative tool for verdicts instead of logs.

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