Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

List Networks (LANs/VLANs)

unifi_list_networks
Read-onlyIdempotent

Lists configured LAN networks and VLANs on a site with name, VLAN ID, management type, and enabled state; supports filtering and pagination to find specific networks.

Instructions

List the configured LAN networks/VLANs on a site with name, VLAN ID, management type, and enabled state. Use unifi_get_network for one network's full configuration including subnet and DHCP. Filter example: "vlanId.eq(20)".

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

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.4/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. The description adds the shape of the summary payload but says nothing about pagination behavior, result caps, or how filter failures surface, so it adds only modest value beyond 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?

Three short sentences: purpose and return shape first, disambiguation second, filter hint last. No filler, no restatement of the title, and the most decision-relevant content is front-loaded.

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 complete annotations, the description covers purpose, return fields, and sibling routing. It leaves pagination defaults and the markdown-vs-json output tradeoff to the schema, which documents them adequately, so nothing critical is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds an endpoint-specific filter example ('vlanId.eq(20)') that names a property not present in the schema's generic examples (state, access.type, name). That tells the agent something the schema does not: vlanId is a meaningful filter here.

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 the configured LAN networks/VLANs on a site') and enumerates the returned summary fields (name, VLAN ID, management type, enabled state). It is immediately distinguishable from the sibling unifi_get_network, which is named explicitly as the single-network alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: use this tool for the list view, use unifi_get_network when full configuration (subnet, DHCP) is needed. It also supplies a concrete filter example, giving the agent a starting point for narrowing results rather than leaving it to guess.

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