Skip to main content
Glama

get_recent_protect_activity

Read-only

See what just happened across all UniFi Protect cameras by retrieving the most recent events with camera names and timestamps. Use this quick read-only overview to spot recent activity.

Instructions

Return the most recent Protect events across all cameras as a quick overview.

Read-only operation: it fetches the latest events (up to limit) for the targeted console with camera names and timestamps resolved. Requires Protect username/password credentials configured for the console. Use this for a fast "what just happened" check; use get_protect_event_summary for aggregate counts or get_motion_events/get_smart_detections for filtered, time-windowed history.

Args: limit: Maximum number of recent events to return (default 20). device: Optional Protect console name to target a specific UniFi Protect device; omit to use the first Protect-enabled device.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of recent events to return (default 20).
deviceNoOptional Protect console name to target a specific UniFi Protect device; omit to use the first Protect-enabled device.
Install Server

TDQS

A4.6/5.0
Behavior5/5

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

The description states 'Read-only operation' and adds context beyond the readOnlyHint annotation: it requires Protect username/password credentials, fetches up to limit events for the targeted console, and resolves camera names and timestamps. This is concrete behavioral detail an agent needs before calling.

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 purpose, then read-only behavior, then usage guidance and arguments. It is mostly efficient, though the Args section duplicates parameter descriptions already present in the schema, adding mild redundancy.

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 simple read-only tool with two optional parameters, no output schema, and annotations covering safety, the description covers the essential context: purpose, alternatives, credential requirement, and default device behavior. Nothing an agent needs to invoke it correctly is missing.

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. The Args section mostly restates the schema descriptions ('Maximum number of recent events to return (default 20)' and 'Optional Protect console name...'), adding no new meaning beyond what the input schema already provides.

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 opens with a specific verb and resource: 'Return the most recent Protect events across all cameras as a quick overview.' It is clearly distinguished from sibling tools like get_protect_event_summary, get_motion_events, and get_smart_detections, so an agent can tell what this tool does without opening schemas.

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 explicitly says 'Use this for a fast "what just happened" check' and routes alternatives: 'use get_protect_event_summary for aggregate counts or get_motion_events/get_smart_detections for filtered, time-windowed history.' It also states the credential prerequisite, leaving no ambiguity about when to select this tool.

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

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/mikeholownych/unifi-mcp'

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