Manage DHCP Server
manage_dhcp_serverAdd, remove, enable, or disable a DHCP server on MikroTik RouterOS. Idempotent by name, duplicate adds return already_exists.
Instructions
Add, remove, enable, or disable a DHCP server. Idempotent by name: add returns already_exists if a server with the same name, interface, and address pool already exists.
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": {
"action": "<action>",
"name": "<name>"
},
"name": "manage_dhcp_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Server name — idempotency key | |
| action | Yes | Action to perform | |
| dryRun | No | Preview changes without applying. | |
| comment | No | Optional comment | |
| routerId | No | Router ID; omit to use the default router. | |
| interface | No | Interface to serve DHCP on (required for add) | |
| leaseTime | No | Lease duration (e.g. '1d', '12h') | |
| addressPool | No | IP pool name (required for add) | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |