Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List UniFi Sites

unifi_list_sites
Read-onlyIdempotent

List sites managed by a UniFi console and return each site's name and ID for use as siteId.

Instructions

List the sites managed by this UniFi console. Returns each site's name and ID. Most consoles have exactly one site; its ID is what other tools accept as 'siteId' (they auto-detect it when there is only one site).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1-200, default 50)
offsetNoNumber of results to skip, for pagination (default 0)
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.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered. The description adds genuine value beyond them: the expected cardinality (usually one site), the returned fields, and the cross-tool contract that site IDs feed other tools' 'siteId' argument.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, each earning its place: purpose, return shape, and the siteId cross-tool convention front-loaded ahead of the auto-detect caveat. No redundancy with the schema.

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?

For a zero-required-parameter read-only list tool with full schema coverage, full annotations and no output schema, the description covers what it returns and how the result is consumed. Pagination behavior is left entirely to the schema, which is a minor omission rather than a blocking gap.

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%, with limit, offset and responseFormat fully documented including defaults, ranges and the markdown/json distinction. The description adds no parameter-level meaning beyond that, so the 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?

Specific verb + resource ('List the sites managed by this UniFi console') with an explicit statement of what is returned (each site's name and ID). No sibling tool lists sites, and the description ties the output to the 'siteId' parameter used by other tools, so an agent can place it precisely in the catalog.

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?

Explains the practical context for calling it: most consoles have exactly one site, and other tools auto-detect the siteId when only one exists, which tells the agent this is usually a discovery prerequisite rather than a routine call. It stops short of naming explicit alternatives or when-not-to-call conditions, but none are really needed for a singleton-returning read.

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