ros_command
Run RouterOS API commands with full paths and parameters to configure, monitor, and troubleshoot MikroTik routers.
Instructions
Run ANY RouterOS API command: full path including the verb. Examples: '/system/reboot', '/tool/ping' {'address': '8.8.8.8', 'count': 3}, '/ip/firewall/filter/move' {'numbers': '*5', 'destination': '*2'}, '/system/package/update/check-for-updates', '/interface/monitor-traffic' {'interface': 'ether1', 'once': ''}, '/tool/traceroute' {'address':'1.1.1.1','count':1}. Long-running commands need 'count' / 'once' / 'duration' so they end.
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": {
"command": "<command>"
},
"name": "ros_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| params | No | ||
| router | No | ||
| command | Yes | ||
| proplist | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |