Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get Switch Stack Details

unifi_get_switch_stack
Read-onlyIdempotent

Retrieves a switch stack by ID to show its member devices and link aggregation groups (LAGs), using IDs from the switch stack list.

Instructions

Get one switch stack by ID: its member devices and any LAGs on the stack. IDs come from unifi_list_switch_stacks.

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": {
      "switchStackId": "<switchStackId>"
    },
    "name": "unifi_get_switch_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
switchStackIdYesSwitch stack ID (UUID from unifi_list_switch_stacks)
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 establish readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description adds useful return-shape context (member devices plus LAGs) but says nothing about error behavior, missing-ID handling, or the markdown-vs-json payload size difference. That is a modest but real addition on top of the annotations.

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 short sentences, with the resource and return contents front-loaded before the ID-provenance hint. Nothing is redundant or padded.

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?

This is a simple single-record read with full schema coverage and complete safety annotations, and there is no output schema, so the brief statement of what is returned is nearly sufficient. A little more on the response shape (e.g., that LAG details require unifi_get_lag) would close the remaining 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%, so siteId (with the single-site auto-resolution note), switchStackId, and responseFormat are already well documented in the schema. The description only restates that lookup is "by ID" and adds no new semantics such as format trade-offs or ID validity behavior, 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?

The description uses a specific verb and resource ("Get one switch stack by ID") and states exactly what the response contains ("its member devices and any LAGs on the stack"). It also distinguishes itself from the list sibling by noting that IDs come from unifi_list_switch_stacks, so an agent can tell the single-fetch apart from the enumeration tool.

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 clearly implies the retrieve-by-ID workflow by pointing to unifi_list_switch_stacks as the source of IDs, which is the main prerequisite. It does not state exclusions or point to unifi_get_lag / unifi_get_mclag_domain for per-LAG detail, so guidance is clear but not exhaustive.

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