Skip to main content
Glama

unifi_list_clients

Read-onlyIdempotent

List UniFi clients, connected by default, with filters for network, AP/switch, wired, blocked, and first-seen date; returns names, IPs, uplinks, signal, and activity timestamps.

Instructions

List clients (connected ones unless includeOffline or blocked is set), newest activity first: name, IP, network, wired or wireless, uplink, signal, first and last seen. No MACs; use unifi_get_client for those. Filter by network, AP/switch, wired, blocked or first seen since.

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
apNoUplink AP or switch name, or its MAC
siteNoSite name, id or reference; optional while the console has a single site
limitNoRows to return (default 50, at most 500)
wiredNotrue for wired clients, false for wireless
blockedNotrue for blocked clients only, false for unblocked
networkNoNetwork name (e.g. IoT)
firstSeenSinceNoOnly clients first seen after this: ISO 8601 or a span back from now such as 7d
includeOfflineNoAlso list clients that are not connected now (implied by blocked: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the bar is lower; the description still adds real behavior beyond them, notably the default of returning only connected clients and the non-obvious rule that blocked: true implies includeOffline. It omits anything about result size or cost when many clients match, which is the one remaining gap for a list tool.

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 verb and scope, then the returned fields, then the sibling hand-off and the filters — a logical order with no filler sentences. It is dense to the point of slight terseness (the field run and the 'No MACs' clause both compress several ideas), but every clause carries information.

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 no output schema, the description rightly previews the returned fields (name, IP, network, medium, uplink, signal, first/last seen), and it covers defaults, scope modifiers and the sibling alternative for an 8-parameter read tool. Only pagination or volume behavior under large result sets 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 description coverage is 100%, so every parameter including limit, site and firstSeenSince is already documented, which sets the baseline at 3. The description restates the filter dimensions (network, AP/switch, wired, blocked, first seen since) but adds no syntax or format detail the schema does not already carry.

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?

Specific verb plus resource ('List clients'), an explicit default scope (connected only unless includeOffline or blocked is set), a stated sort order (newest activity first), and a field preview. It explicitly distinguishes itself from unifi_get_client ('No MACs; use unifi_get_client for those'), so an agent can pick between them without opening either schema.

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?

States the default condition under which clients are listed, names the flags that change that scope (includeOffline, blocked), and routes the agent to the sibling tool for MAC-level lookups. The alternative and the condition that selects it are both explicit, leaving little to inference.

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