Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get LAG Details

unifi_get_lag
Read-onlyIdempotent

Retrieve a Link Aggregation Group by ID to view its type and member devices or ports; use IDs from the LAG list.

Instructions

Get one Link Aggregation Group by ID: its type and member devices/ports. IDs come from unifi_list_lags.

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": {
      "lagId": "<lagId>"
    },
    "name": "unifi_get_lag"
  }
}

Input Schema

NameRequiredDescriptionDefault
lagIdYesLAG ID (UUID from unifi_list_lags)
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 readOnly, idempotent, non-destructive, openWorld behavior, so the safety profile needs no restatement. The description adds a brief hint about the returned shape but says nothing about error behavior for a stale or unknown ID, or about permissions needed to read LAG configuration.

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 clauses: purpose plus return contents first, the ID-provenance note second. No filler and 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?

A simple read-only single-resource getter with fully documented parameters and no output schema; the description covers what is returned. Minor gap: it does not mention the markdown vs json responseFormat choice, though the schema documents it.

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%, including the 'UUID from unifi_list_lags' note on lagId, siteId auto-resolution when there is one site, and the markdown/json enum for responseFormat. The description adds nothing beyond that, so baseline 3 is appropriate.

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 ('Get one Link Aggregation Group by ID') and even names the fields returned ('its type and member devices/ports'), so the agent can distinguish it from unifi_list_lags at a glance.

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?

'IDs come from unifi_list_lags' establishes the required workflow (list first, then fetch detail) and rules out guessing an ID. It stops short of naming when a different detail tool (e.g. mclag domain or switch stack) is the better choice.

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