Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List Connected Clients

unifi_list_clients
Read-onlyIdempotent

List clients currently connected to a UniFi network with name, IP, MAC, connection type, and connect time. Filter results by type, guest access, or IP address to target specific devices.

Instructions

List clients currently connected to the network (laptops, phones, IoT, etc.) with name, IP, MAC, connection type (WIRED/WIRELESS/VPN/TELEPORT), and connect time. Note: this shows CURRENTLY CONNECTED clients only. Filter examples: "type.eq('WIRELESS')", "access.type.eq('GUEST')", "ipAddress.eq('192.168.1.50')".

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
filterNoOptional UniFi filter expression: property.function(args) with functions eq, ne, like, in, isNull, isNotNull and more; combinators and(...), or(...), not(...). Strings in single quotes. Examples: "state.eq('OFFLINE')", "access.type.eq('GUEST')", "name.like('Office*')". Note: which properties are filterable varies by endpoint — a 400 error means that property/function is not supported here.
offsetNoNumber of results to skip, for pagination (default 0)
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
responseFormatNo'markdown' for a compact human-readable summary (default), 'json' for full raw API datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real behavioral context beyond that: it enumerates returned fields and emphasizes the currently-connected-only constraint, which is the most consequential trait of this call. It omits pagination behavior and what happens when limit truncates results.

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?

Three compact sentences, front-loaded with the core action and return fields, then the critical scope caveat, then filter syntax. The filter examples partially overlap with the schema's own examples, which is mild redundancy but still useful for quick selection.

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 five optional parameters, no output schema, and read-only annotations, the description does enough: it lists return fields (compensating for the missing output schema), states the scope limitation, and shows filter usage. Only the interaction between limit/offset and result truncation is left unaddressed.

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 coverage is 100%, so all five parameters are already documented and the baseline is 3. The description's filter examples ("type.eq('WIRELESS')", "access.type.eq('GUEST')", "ipAddress.eq('192.168.1.50')") do add endpoint-specific filterable properties beyond the generic schema examples, but they are illustrative rather than a definitive list of filterable fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("List clients currently connected to the network") and enumerates the returned fields (name, IP, MAC, connection type, connect time), so the agent knows exactly what this returns. It does not explicitly distinguish itself from siblings like unifi_list_devices or unifi_list_pending_devices, leaving the connected-vs-known distinction to be inferred.

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

Usage Guidelines3/5

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

The "CURRENTLY CONNECTED clients only" note functions as a scoping exclusion and tells the agent this will not surface offline or historical clients. However, it never names an alternative tool for offline/known devices (e.g., unifi_list_devices), so the agent must guess where to go for that case.

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

Deploy Server

Other Tools