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

UniFi Drive: Request

unifi_drive_request
Read-only

Call private UniFi Drive API endpoints directly to reach replacement paths when wrapped tools return 404. Send GET requests with paths like v2/storage for raw, unshaped responses; writes stay disabled by default.

Instructions

Escape hatch: call any private Drive API endpoint directly, relative to /proxy/drive/api. The path carries the API generation: v1/... answers wrapped in {err, type, data}, v2/... answers bare. This exists because the API is undocumented and Ubiquiti moves endpoints between Drive releases — when a wrapped tool starts returning 404, this reaches the replacement without waiting for a new version of this server. Responses are RAW and unshaped (v2/systems/log-definitions alone is 79 KB); prefer the wrapped tools, which summarize. Writes are DISABLED: only GET is permitted. Set UNIFI_DRIVE_ALLOW_WRITES=1 to allow mutations.

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": {
      "path": "<path>"
    },
    "name": "unifi_drive_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body, for POST, PUT and PATCH.
pathYesPath relative to /proxy/drive/api, without a leading slash, including the API generation, e.g. "v2/storage", "v1/systems/info", "v1/snapshots/shared/Public". Not an absolute URL.
queryNoQuery parameters as a flat string map, e.g. {"interval":"900","start":"1795800000"}. Drive times are Unix SECONDS, not milliseconds.
methodNoHTTP method.GET

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/destructive hints, but the description adds substantive behavior the annotations cannot: v1 paths answer wrapped in {err, type, data} while v2 paths answer bare, responses are raw and can be large (79 KB example), and writes are disabled by default with an env-var override. It is consistent with readOnlyHint=true and the GET-only enum.

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 the framing ("Escape hatch") and every sentence carries real information: routing rationale, response shape, size warning, write gating. It is one dense block without visual separation, which makes the write-permission caveat easy to skim past, but there is no filler.

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?

For a 4-parameter, GET-only passthrough with no output schema, the description covers everything an agent needs: how to form the path, why to prefer siblings, what the raw return looks like, and that mutations will fail unless enabled. Nothing material is left to inference.

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 100%, so the baseline is 3; the description earns above that by explaining that the path itself carries the API generation and what each generation implies for the response envelope — meaning not encoded in the schema. It does not add anything for body or query beyond what the schema already documents (Unix seconds, flat string map).

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?

"Escape hatch: call any private Drive API endpoint directly, relative to /proxy/drive/api" gives a specific verb (call) plus resource (arbitrary Drive endpoint) and pins the base path. It is immediately distinguishable from the wrapped siblings like unifi_drive_get_storage or unifi_drive_list_logs, which are named implicitly as the summarized alternatives.

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?

Explicit when-to-use: the API is undocumented and Ubiquiti moves endpoints, so this reaches replacements when a wrapped tool starts returning 404. Explicit when-not-to-use: "prefer the wrapped tools, which summarize" because responses are RAW and unshaped. The write-gating condition (UNIFI_DRIVE_ALLOW_WRITES=1) is also stated.

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