Ports List
ports_listRetrieve all ports from LibreNMS with optional filters, including device, columns, limit, and offset, to query network interfaces and their status.
Instructions
Get all ports from LibreNMS with optional filters.
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": "ports_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return | |
| query | No | Query parameters for filtering ports: - columns: Comma-separated list of fields to return (e.g., "port_id,ifName,ifAlias") - device_id: Only return ports of this device (device ID or hostname) Available columns: port_id, device_id, ifDescr, ifName, ifAlias, ifType, ifSpeed, ifOperStatus, ifAdminStatus, etc. | |
| offset | No | Number of results to skip (offset) for pagination |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||