list_vlans
Retrieve VLAN interfaces from a MikroTik device, including name, VLAN ID, parent interface, and status. Disabled interfaces are excluded by default; set include_disabled to list them.
Instructions
List VLAN interfaces (/interface/vlan): name, vlan-id,
interface (the parent interface it rides on top of), mtu,
running, disabled, comment (if set).
Excludes disabled VLAN interfaces by default, like interfaces;
pass include_disabled=True to see them too.
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": {
"device_name": "<device_name>"
},
"name": "list_vlans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes | ||
| include_disabled | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |