switch-get-ports
Retrieve switch port details including configuration and status for a given serial and port ID. Access fields like VLAN, PoE, enabled status, and more.
Instructions
Return a switch port. (read-only)
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": {
"serial": "<serial>",
"portId": "<portId>"
},
"name": "switch-get-ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | Serial | |
| portId | Yes | Port ID | |
| fields | No | Return only these top-level fields; omit for all. Available: accessPolicyNumber, accessPolicyType, adaptivePolicyGroup, adaptivePolicyGroupId, allowedVlans, daiTrusted, dot3az, enabled, flexibleStackingEnabled, highSpeed, isolationEnabled, linkNegotiation, linkNegotiationCapabilities, macAllowList, macWhitelistLimit, mirror, module, name, peerSgtCapable, poeEnabled, portId, portScheduleId, profile, rstpEnabled, schedule, stickyMacAllowList, stickyMacAllowListLimit, stormControlEnabled, stpGuard, stpPortFastTrunk, tags, type, udld, vlan, voiceVlan. |