dhcp_servers
List MikroTik DHCP server configuration by device name, returning interface, address pool, lease time, and authoritative status so you can inspect server settings, not handed-out leases.
Instructions
List DHCP server CONFIG (/ip/dhcp-server) - as opposed to
dhcp_leases, which lists the leases a server has handed out. Each
entry keeps every field RouterOS returns (name, interface,
address-pool, lease-time, authoritative, comment, ...), with
disabled normalized to bool | None (formatting.coerce_ros_bool
never a
== "true"string-equality trap, see that helper's docstring).authoritativeis left as RouterOS's own raw value (it can be"yes"/"no"/"after-2sec-delay"/... - not a strict boolean - so it is not coerced).
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": "dhcp_servers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |