Skip to main content
Glama
unifi-mcp-server

unifi-mcp-server

by PainInTheNic

Get MC-LAG Domain Details

unifi_get_mclag_domain
Read-onlyIdempotent

Retrieves a specific MC-LAG domain by ID, returning its peer switches, roles, link ports, and shared LAGs; use IDs from the domain list.

Instructions

Get one MC-LAG domain by ID: peer switches (and their roles/link ports) and the LAGs shared across them. IDs come from unifi_list_mclag_domains.

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": {
      "mcLagDomainId": "<mcLagDomainId>"
    },
    "name": "unifi_get_mclag_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically.
mcLagDomainIdYesMC-LAG domain ID (UUID from unifi_list_mclag_domains)
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.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds value by disclosing the shape of the returned data (peer roles, link ports, shared LAGs) in the absence of an output schema, though it says nothing about error behavior for unknown IDs or about pagination/response-format effects.

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 compact sentences with the primary action front-loaded and the ID-provenance hint trailing. No filler or restatement of the title.

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?

With no output schema, the description usefully summarizes what a single domain record contains, which is the main thing an agent needs to decide to call it. Minor gaps remain around failure modes for a bad or foreign-site ID, but the core is covered.

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 siteId's auto-selection behavior and responseFormat's markdown/json tradeoff already documented in the schema. 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?

Specific verb and resource ('Get one MC-LAG domain by ID') plus a preview of the payload (peer switches with roles/link ports and shared LAGs). The 'one ... by ID' phrasing cleanly separates it from the sibling list tool unifi_list_mclag_domains, which is named outright.

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?

States the prerequisite workflow by noting IDs come from unifi_list_mclag_domains, so an agent knows to enumerate first. It stops short of explicit when-not guidance or a named alternative for related lookups such as unifi_get_lag, leaving some inference.

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