Enable or disable a RouterOS item
mikrotik_set_enabledEnable or disable RouterOS interfaces, firewall rules, routes, users, or other items by ID or equality filter. Specify the menu path and desired enabled state.
Instructions
Enable or disable an interface, firewall rule, route, user, etc. Identify it by id or a where filter.
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": {
"path": "<path>",
"enabled": "<enabled>"
},
"name": "mikrotik_set_enabled"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| path | Yes | RouterOS menu path, e.g. "/ip/address", "/interface/bridge/port" or "ip firewall filter". | |
| where | No | Equality filters, e.g. {"type": "ether", "disabled": false}. | |
| device | No | Name of the configured device. Defaults to the first device (see mikrotik_list_devices). | |
| enabled | Yes |