disable_interface
Disable a MikroTik network interface by name; preview first with confirm=False, then set confirm=True to apply. Fails if the interface does not exist.
Instructions
Disable a network interface by name (sets disabled=yes).
WRITE tool, guarded: blocked entirely unless the server is running
with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the
default) to get a before/after preview without changing anything;
call again with confirm=True to actually apply it. Errors clearly if
interface_name does not exist on the device - it is never created.
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>",
"interface_name": "<interface_name>"
},
"name": "disable_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| device_name | Yes | ||
| interface_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||