Skip to main content
Glama

List switch LAG / LACP port channels

list_switch_lags
Read-onlyIdempotent

List configured LAG/LACP port-channel groups, member ports, and LAG hardware limits on a switch to verify aggregation settings and capacity.

Instructions

List configured LAG/LACP port-channel groups, member ports, and LAG hardware limits on a switch.

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": {
      "mac": "<mac>"
    },
    "name": "list_switch_lags"
  }
}

Input Schema

NameRequiredDescriptionDefault
macYes
siteNo

Output Schema

NameRequiredDescriptionDefault
macYes
lagsYes
nameYes
lagCountYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.5.2

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds that the response includes member ports and LAG hardware limits, which is useful, but says nothing about behavior when the switch has no LAGs or how mac scopes the query.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the listed return contents earn their place. It is efficient but arguably too terse given the undocumented parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the safety annotations are rich. However, with a required mac parameter at 0% schema coverage and no usage guidance, the definition leaves real gaps for an agent deciding how to invoke it.

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

Parameters2/5

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

Schema description coverage is 0% for both parameters, so the description carries the full burden — yet it never explains that mac is the required switch identifier or what site is used for. Neither parameter's meaning is clarified beyond its name.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb (List) and a precise resource (LAG/LACP port-channel groups, member ports, LAG hardware limits), which is clearly distinct from siblings like list_port_profiles or list_port_forwards. It stops short of explicitly naming a sibling to disambiguate against, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus related tools such as get_switch_ports or list_port_profiles, and no mention of prerequisites like the required mac identifying a specific switch. The agent must infer call conditions entirely.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.