mikrotik-rest-mcp
v0.1.2MikroTik RouterOS 7 REST MCP: filtered reads, guarded writes, timed rollback
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_containers
List RouterOS containers with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_dhcp_leases
List DHCP leases with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_dhcp_servers
List DHCP servers with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_files
List RouterOS files and directories with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_firewall_connections
List firewall connections with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_filter_rules
List firewall filter rules with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_nat_rules
List NAT rules with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_mangle_rules
List mangle rules with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_routes
List routes with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_routing_rules
List routing rules with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_routing_tables
List routing tables with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_interfaces
List interfaces with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_interface_lists
List interface lists with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_veth_interfaces
List veth interfaces with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_wifi_interfaces
List Wi-Fi interfaces with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_wifi_registrations
List Wi-Fi registration table entries with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_ip_addresses
List IP addresses with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_arp
List ARP entries with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_neighbors
List neighbor entries with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_dns_cache
List DNS cache entries with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_dns_static
List static DNS records with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_address_lists
List firewall address-list entries with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_wireguard_interfaces
List WireGuard interfaces with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_scripts
List system scripts with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_schedulers
List schedulers with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_wireguard_peers
List WireGuard peers with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_dns
Get RouterOS DNS configuration.
get_system_identity
Get RouterOS system identity.
get_system_clock
Get RouterOS system clock settings.
get_system_health
Get RouterOS system health summary.
get_system_logging
List RouterOS system logging rules with optional client-side filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
get_system_resource
Get RouterOS system resource summary.
get_logs
List router log entries. Supports limit, contains, fields, sort_by plus log-oriented filters.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
since | string | Keep log entries with time >= this RouterOS timestamp string. |
sort_by | string | Sort by a field name after filtering. |
topics | array | Keep entries whose topics string contains all of these fragments. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
run_ping
Run a bounded RouterOS ping diagnostic via POST /rest/ping.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
count | integer | |
interface | string | |
src_address | string | |
vrf | string |
run_traceroute
Run a bounded RouterOS traceroute diagnostic via POST /rest/tool/traceroute.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
count | integer | |
interface | string | |
max_hops | integer | |
src_address | string | |
use_dns | boolean | |
vrf | string |
run_fetch
Run a bounded RouterOS fetch diagnostic with as-value output and no file writes.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
address | string | |
host | string | |
http_method | string | |
output | string |
run_wifi_monitor
Run a one-shot RouterOS Wi-Fi monitor for an interface via POST /rest/interface/wifi/monitor.
| Parameter | Type | Description |
|---|---|---|
interface * | string |
read_file
Read a RouterOS file chunk via /rest/file/read and return base64 plus text preview when possible.
| Parameter | Type | Description |
|---|---|---|
file * | string | |
chunk_size | integer | |
offset | integer |
download_file
Download a RouterOS file to a local path on this computer using repeated /rest/file/read chunks.
| Parameter | Type | Description |
|---|---|---|
file * | string | |
local_path * | string | |
chunk_size | integer | |
overwrite | boolean | Replace an existing local file (default: refuse). |
create_file
Create a small RouterOS text file via PUT /rest/file.
| Parameter | Type | Description |
|---|---|---|
contents * | string | |
name * | string |
update_file
Update contents of a small RouterOS text file via POST /rest/file/set.
| Parameter | Type | Description |
|---|---|---|
contents * | string | |
name * | string |
rename_file
Rename a RouterOS file or directory via POST /rest/file/set.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
new_name * | string |
delete_file
Delete a RouterOS file or directory via POST /rest/file/remove.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
confirm | boolean | Set true only after the user explicitly approves this deletion. |
upload_file
Upload a small local UTF-8 text file to RouterOS via PUT /rest/file.
| Parameter | Type | Description |
|---|---|---|
local_path * | string | |
remote_name * | string |
save_backup
Create a RouterOS binary backup file on the router via POST /rest/system/backup/save.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
dont_encrypt | boolean | |
password | string |
save_export
Create a RouterOS text export file on the router via POST /rest/export.
| Parameter | Type | Description |
|---|---|---|
file * | string | |
compact | boolean | |
show_sensitive | boolean | |
terse | boolean | |
verbose | boolean |
routeros_get
GET a RouterOS REST path starting with /rest/, then optionally filter the result.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
descending | boolean | Reverse sort order when sort_by is set. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
routeros_write
Mutate a whitelisted RouterOS REST path using POST, PUT, PATCH or DELETE.
| Parameter | Type | Description |
|---|---|---|
method * | string | |
path * | string | |
confirm | boolean | Set true only after the user explicitly approves a destructive/disruptive operation. |
data | object | array | string | number | boolean | null |
patch_resource_by_id
PATCH a whitelisted RouterOS collection item by .id.
| Parameter | Type | Description |
|---|---|---|
collection_path * | string | |
data * | object | |
item_id * | string | |
confirm | boolean | Set true only after the user explicitly approves a destructive/disruptive operation. |
flush_dns_cache
Flush MikroTik DNS cache.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Set true only after the user explicitly approves this operation. |
run_script
Run RouterOS system script by name using /rest/system/script/run.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
confirm | boolean | Set true only after the user explicitly approves running this script. |
container_shell
Execute a shell command inside a RouterOS container by .id or name.
| Parameter | Type | Description |
|---|---|---|
cmd * | string | |
container * | string | Container name or .id |
timeout_seconds | number | Override REST request timeout for long-running commands (default MIKROTIK_TIMEOUT=10s). |
apply_safe
Apply a whitelisted mutation with automatic timed rollback. Snapshots the target, applies the change, and auto-reverts after window_seconds unless commit_safe is called. Rollback runs via an on-router scheduler when possible, else an in-process timer.
| Parameter | Type | Description |
|---|---|---|
method * | string | |
path * | string | Item path for PATCH/DELETE (/rest/<coll>/<.id>), collection path for PUT |
data | object | |
window_seconds | integer |
container_apply_safe
Run a shell command inside a RouterOS container with snapshot + timed rollback. Copies snapshot_paths aside, runs cmd, optionally runs check_cmd (auto-rollback on non-zero), then arms an in-container watchdog that restores the snapshot after window_seconds unless container_commit_safe is called.
| Parameter | Type | Description |
|---|---|---|
cmd * | string | Mutation command to run |
container * | string | Container name or .id |
check_cmd | string | Validation command; non-zero exit triggers immediate rollback |
rollback_cmd | string | Extra command appended to rollback (e.g. restart the service) |
snapshot_paths | array | Files/dirs inside the container to back up before cmd |
window_seconds | integer |
container_commit_safe
Commit a change made via container_apply_safe, disarming its in-container rollback watchdog.
| Parameter | Type | Description |
|---|---|---|
pending_id * | string |
routeros_batch
Run up to 16 RouterOS GETs in parallel. Each request accepts the same filters as routeros_get (where/fields/limit/compact).
| Parameter | Type | Description |
|---|---|---|
requests * | array |
describe_path
Introspect a REST path: fetch up to N items and report their field names plus a sample. Useful before writing filters.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
sample | integer |
interface_traffic
Measure live rx/tx bitrate and packet rate of an interface over a short sampling window (0.5-10s).
| Parameter | Type | Description |
|---|---|---|
name * | string | |
seconds | number |
routeros_watch
Sample a REST path N times with an interval; optionally report per-item deltas of numeric fields (diff=true). Useful for watching counters, traffic, registrations.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
compact | boolean | Emit compact single-line JSON per item instead of pretty-printed output. |
contains | string | Case-insensitive substring search across the rendered item. |
count | integer | |
descending | boolean | Reverse sort order when sort_by is set. |
diff | boolean | Report field deltas between first and last sample instead of raw samples. |
fields | array | Client-side field projection applied after any RouterOS .proplist request. |
interval | number | |
limit | integer | Limit returned items after filtering and sorting. |
proplist | Optional RouterOS .proplist for server-side property selection on POST .../print. | |
query_words | array | Optional RouterOS .query stack for server-side filtering on POST .../print. |
sort_by | string | Sort by a field name after filtering. |
where | object | Client-side filters applied after any RouterOS .query/.proplist request. Exact match by field, or use suffixes __contains / __in / __not / __startswith / __endswith / __gt / __gte / __lt / __lte. |
run_script_inline
Create a temporary RouterOS script, execute it, and remove it. Requires a policy-capable user (yolo mode); always asks for confirmation in careful mode.
| Parameter | Type | Description |
|---|---|---|
script * | string | |
confirm | boolean | Set true only after the user explicitly approves executing this script. |
commit_safe
Commit a change made via apply_safe, cancelling its automatic rollback.
| Parameter | Type | Description |
|---|---|---|
pending_id * | string |
catalog_search
Search the RouterOS endpoint catalog by substring; returns callable get_<name> aliases and their /rest paths.
| Parameter | Type | Description |
|---|---|---|
query * | string | Substring matched against catalog names and paths (e.g. 'wireguard', 'route'). |
safe_status
List pending apply_safe operations and their rollback state.