Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List Switch Stacks

unifi_list_switch_stacks
Read-onlyIdempotent

Lists switch stacks on a UniFi site—multiple physical switches managed as one logical unit—so you can identify grouped switches and choose a stack for member details.

Instructions

List switch stacks on a site — multiple physical switches managed as one logical unit. Use unifi_get_switch_stack for one stack's members.

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

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

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds useful conceptual context about what a stack is, but says nothing extra about result volume, pagination behavior, or what a stack record contains. With annotations carrying the behavioral load, a 3 is appropriate.

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?

Two sentences, no filler, and the core purpose plus the disambiguation are both front-loaded. Every clause earns its place.

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 simple read-only list endpoint with a fully documented five-parameter schema and complete annotations, the description covers purpose and sibling routing adequately. No output schema exists, but the description need not explain return values at this complexity level; the only minor omission is any hint about result size or pagination expectations.

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, filter, siteId, and responseFormat all documented inline including the siteId auto-resolution rule and filter syntax. The description adds no parameter 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?

States a specific verb and resource ('List switch stacks on a site') and immediately defines the domain concept ('multiple physical switches managed as one logical unit'), which an agent needs to know what a stack is. It also names the sibling tool that handles the single-stack case, so the boundary is unambiguous.

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?

Explicitly routes the agent: use this for listing, use unifi_get_switch_stack for one stack's members. That is a clear when-to-use/when-to-use-other signal. It stops short of a full 5 because it says nothing about paging through large result sets or when the filter parameter is worth applying.

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