Skip to main content
Glama

Get switch ports, PoE & diagnostics

get_switch_ports
Read-onlyIdempotent

Inspect switch port links, PoE status, VLAN assignments, counters, cable tests, LAGs, and uplinks for a specified Omada switch MAC to diagnose connectivity and port issues.

Instructions

Inspect switch port links, PoE, VLANs, counters, cable tests, LAGs, and uplinks.

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": "get_switch_ports"
  }
}

Input Schema

NameRequiredDescriptionDefault
macYes
siteNo
compactNo
includeCountersNo
includeCableTestNo
includeDownPortsNo

Output Schema

NameRequiredDescriptionDefault
macYes
poeYes
nameYes
portsYes
warningsYes
uplinkPortsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / site
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv1.2.2

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. Beyond that, the description adds nothing behavioral: it doesn't say whether includeCableTest is slow or intrusive, what compact changes, or whether data is live or cached. For a tool with several optional heavy toggles, that silence matters.

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, enumerating capabilities efficiently. It is arguably a bare feature list, but nothing in it is wasted.

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

Completeness2/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 needn't be described. But with six parameters at 0% schema coverage, no usage guidance, and no explanation of the expensive-looking toggles, the definition is not complete enough for an agent to call it confidently.

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%, so all six parameters (mac, site, compact, includeCounters, includeCableTest, includeDownPorts) are unexplained in the schema. The description only hints at the existence of counters and cable tests, without saying these are optional boolean toggles, what compact returns, or what site scoping does. It does not compensate for the coverage gap.

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?

Uses a specific verb ("Inspect") plus a specific resource (switch port) and enumerates the data available: links, PoE, VLANs, counters, cable tests, LAGs, uplinks. That distinguishes it clearly from get_switch_global_features and get_ap_radios. Minor ambiguity: it claims to cover LAGs, which overlaps the sibling list_switch_lags, with no explanation of the difference.

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?

No when-to-use or when-not-to-use guidance, and no mention of alternatives such as list_switch_lags for LAG-only queries. It also omits prerequisites — notably that the required mac is the switch's MAC address, not a client or AP MAC.

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