getGatewayPorts
Retrieves all WAN and LAN port details for a gateway, including link status, speed, IP address, traffic counters, and port profile, to inspect port health and configuration.
Instructions
Get all WAN and LAN port details for a specific gateway: link status, speed, IP address, bytes in/out, and port profile. More detailed than getGatewayWanStatus or getGatewayLanStatus. Use listDevices to get the gatewayMac.
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": {
"gatewayMac": "<gatewayMac>"
},
"name": "getGatewayPorts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | No | Site ID to target. If omitted, uses the default site from OMADA_SITE_ID config. Use listSites to discover available site IDs. | |
| gatewayMac | Yes | MAC address of the gateway (e.g. "AA-BB-CC-DD-EE-FF"). Use listDevices to find the gateway MAC. |