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

UniFi Drive: List Snapshots

unifi_drive_list_snapshots
Read-only

Lists a drive's snapshots newest first, including id, timestamp, description, and lock status, so you can review retention and obtain snapshot ids for deletion.

Instructions

The snapshots kept for one drive, newest first: id, when it was taken, its description, and whether it is locked against automatic rotation. Use the ids with unifi_drive_delete_snapshot (when writes are enabled). For whether snapshots are running at all, unifi_drive_list_drives is cheaper.

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": {
      "drive": "<drive>"
    },
    "name": "unifi_drive_list_snapshots"
  }
}

Input Schema

NameRequiredDescriptionDefault
driveYesA drive's name or id, from unifi_drive_list_drives — e.g. "Shared_Drive". Names match case-insensitively. A personal drive is named after its owner's username, and also matches the owner's full name, e.g. "Alex Doe".
limitNoMost recent snapshots to return. Defaults to 20; `total` gives the full count.

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 already declare readOnlyHint=true, and the description adds real context beyond that: result ordering (newest first), what each record contains, and the prerequisite that snapshot deletion requires writes to be enabled. It stops short of covering pagination or what happens when a drive has zero snapshots, 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.

Conciseness5/5

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

Three tightly packed sentences: what it returns first, then the downstream consumer, then the cheaper alternative. No filler, and the most decision-relevant information is front-loaded.

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, the description carries the burden of describing return values and does so field by field, plus ordering. Combined with the fully documented two-parameter schema, an agent has everything needed to call it correctly.

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% and already documents drive name/id matching (case-insensitive, personal drive by username or full name) and limit semantics including `total`. The description adds only the implicit link that `drive` scopes to one drive and that results are newest-first, so the baseline 3 applies.

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 the specific resource (snapshots for one drive), the ordering (newest first), and enumerates the returned fields (id, timestamp, description, locked flag). This is clearly distinct from sibling list tools like unifi_drive_list_drives and unifi_drive_list_backups.

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?

Explicitly routes the agent: use the returned ids with unifi_drive_delete_snapshot (noting writes must be enabled), and use unifi_drive_list_drives instead when the question is only whether snapshots are running at all. Both an alternative and its selecting condition are named.

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