Run Command
run_commandExecute RouterOS console commands via SSH with an allow/deny policy. Use dedicated tools for specific actions; this tool provides direct command access subject to policy controls.
Instructions
Execute an arbitrary RouterOS console command via SSH. Guarded by an allow/deny policy (built-in deny list blocks destructive commands; tighten via cmdAllow in routers.yaml or MIKROMCP_CMD_ALLOW). Prefer dedicated tools (reboot, etc.) where available. Output capped at 4000 characters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview the command without executing (validates allow/deny policy only) | |
| command | Yes | RouterOS console command to execute | |
| routerId | No | Router ID; omit to use the default router. | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |