switch_get_port_stats
Read TP-Link switch port TX/RX good and bad packet counters for one port, a PORT_MAP name, or all ports with error_ports flagged. Non-mutating, for monitoring link health and errors.
Instructions
Read-only: tx/rx good/bad packet counters. Pass a port number or a PORT_MAP name for one port, or omit it for all ports plus error_ports (any port with rx_bad+tx_bad > 0). Does not mutate.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "switch_get_port_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No |