Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List Link Aggregation Groups

unifi_list_lags
Read-onlyIdempotent

Retrieve Link Aggregation Groups (LAGs) for a UniFi site to inspect LACP trunk bundles, with filtering and pagination options.

Instructions

List Link Aggregation Groups (LAGs) on a site — bundles of switch ports acting as one logical link (LACP trunks). Use unifi_get_lag for one LAG's full membership.

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

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, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered by structured data. The description's only addition is the domain explanation of what a LAG is, which aids interpretation but is not behavioral disclosure — nothing is said about pagination behavior, result caps, or whether the site scope restricts what is returned. With annotations doing the heavy lifting, a 3 is appropriate for the modest added value.

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 zero waste: the identification and domain gloss come first, then the sibling routing. Every clause earns its place and the alternative is front-loaded at the end where it is still visible.

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 read-only list tool with full schema coverage and rich annotations, the description supplies what structured data cannot: what a LAG is and when to use the singular getter instead. No output schema exists, so a brief note on what the returned entries contain would have closed the remaining gap, but nothing required to call the tool correctly is missing.

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 limit, offset, filter, siteId and responseFormat are all documented in structured data, including the filter expression syntax and the optional siteId fallback. The description adds no further parameter meaning, 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 Link Aggregation Groups (LAGs) on a site") and immediately glosses the domain term as "bundles of switch ports acting as one logical link (LACP trunks)". It also names the sibling it is not (unifi_get_lag), so an agent can distinguish list-vs-get without opening either schema.

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 to the alternative: "Use unifi_get_lag for one LAG's full membership." That is a clear selection rule for the main ambiguity (listing vs fetching one). It stops short of stating any when-not-to-use case (e.g. when filtering by property is preferable to listing all), so it is strong 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