Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get Connected Client Details

unifi_get_client
Read-onlyIdempotent

Retrieve full details for a currently connected UniFi client by ID, including connection type, IP/MAC, access type, uplink device, and connection time.

Instructions

Get full details for one currently connected client by ID (IDs come from unifi_list_clients): connection type, IP/MAC, access type (default/guest), uplink device, and connection time.

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": {
      "clientId": "<clientId>"
    },
    "name": "unifi_get_client"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
clientIdYesClient ID (UUID from unifi_list_clients)
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

A4.1/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, so the safety profile is covered. The description adds genuinely new behavioral context: the lookup only applies to currently connected clients and the payload includes connection type, IP/MAC, access type, uplink device, and connection time. It does not address error behavior or staleness of the data, which keeps it below 5.

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?

A single front-loaded sentence with the scope constraint and ID provenance first, followed by the field list. No filler, though the enumerated return fields make it slightly dense rather than crisply prioritized.

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 usefully enumerates what comes back and restricts scope to connected clients, which is what an agent needs to call it correctly. Minor gaps remain around failure modes and whether siteId affects results on multi-site consoles.

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%, and the schema already documents clientId provenance, siteId auto-resolution on single-site consoles, and the markdown/json responseFormat. The description only echoes the clientId source and says nothing about siteId or responseFormat, so it adds little beyond the structured fields.

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 (Get) + resource (full details for one currently connected client) + identifier (by ID), and it enumerates the returned fields. It also explicitly points at the sibling that produces the ID (unifi_list_clients), so an agent can distinguish this from the list tool immediately.

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

Usage Guidelines4/5

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

It states the prerequisite workflow: IDs come from unifi_list_clients, which routes the agent correctly. It also bounds usage to 'currently connected' clients, implying disconnected/offline clients are not retrievable here. It stops short of explicitly naming when to prefer the list tool or what to do if the lookup fails.

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