list_dhcp_leases
List DHCP leases from MikroTik RouterOS to identify devices on the network. Filter by hostname, MAC, or IP, or restrict to active leases only.
Instructions
List DHCP leases — effectively the inventory of what is on the network.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_dhcp_leases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Case-insensitive match against hostname, MAC or address. | |
| active_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |