Skip to main content
Glama

unifi_protect_request

Read-only

Retrieve data from any private UniFi Protect API endpoint directly to bypass outdated wrappers when wrapped tools return 404. Returns raw responses; GET only.

Instructions

Escape hatch: call any private Protect API endpoint directly, relative to /proxy/protect/api. This exists because the private API is undocumented and Ubiquiti moves endpoints between Protect releases — when a wrapped tool starts returning 404, this reaches the replacement without waiting for a new version of this server. Responses are returned RAW and unshaped, so a broad endpoint like bootstrap can return hundreds of kilobytes; prefer the wrapped tools, which summarize. Writes are DISABLED: only GET is permitted. Set UNIFI_PROTECT_ALLOW_WRITES=1 to allow mutations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoJSON request body, for POST and PATCH.
pathYesPath relative to /proxy/protect/api, without a leading slash, e.g. "cameras", "nvr", "events/abc123". Not an absolute URL.
queryNoQuery parameters as a flat string map, e.g. {"start":"1756500000000"}. Remember that Protect times are milliseconds since the epoch.
methodNoHTTP method.GET
Behavior5/5

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

Annotations readOnlyHint=true align with the description's 'only GET is permitted'. The description adds important extra behavior not in annotations: responses are returned raw and unshaped, can be hundreds of kilobytes, and writes can be enabled via UNIFI_PROTECT_ALLOW_WRITES=1. This is exactly the kind of context agents need. No contradiction with annotations.

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?

The description is front-loaded with the 'escape hatch' framing, then explains rationale, warns about raw responses, and states write restrictions. Each sentence earns its place; slightly long but justified for an undocumented endpooint escape hatch.

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?

Despite no output schema, the description covers return behavior, size caveats, write restrictions, and the conditional override. Combined with a fully described schema, an agent has enough to call and interpret this tool 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%, so the schema already documents path, query, body, and method. The description itself does not add parameter-level details, but it does clarify the write-disabled context and raw response behavior. 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?

The description clearly states a specific purpose: directly call any private Protect API endpoint relative to /proxy/protect/api. It differentiates from the wrapped sibling tools by framing itself as an 'escape hatch' and explicitly says 'prefer the wrapped tools, which summarize.'

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 provides explicit when-to-use: when a wrapped tool starts returning 404 because Ubiquiti moved an endpoint. It also tells the agent to prefer wrapped tools and warns against broad endpoints like bootstrap. This is strong routing guidance relative to the siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mgcrea/mcp-unifi-protect'

If you have feedback or need assistance with the MCP directory API, please join our Discord server