Manage IP Service
manage_ip_serviceEnable or disable RouterOS IP services (api, api-ssl, ssh, telnet, www, www-ssl, winbox, ftp) to control router access without changing ports, helping prevent lockout.
Instructions
Enable or disable a RouterOS IP service (api, api-ssl, ssh, telnet, www, www-ssl, winbox, ftp). Port number changes are intentionally not supported to prevent accidental lockout. MikroMCP reaches RouterOS through the REST API on www-ssl (or www for plaintext): disabling the service its connection uses cuts MikroMCP off from the router, including any later call to re-enable it.
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": {
"action": "<action>",
"name": "<name>"
},
"name": "manage_ip_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service name to manage (api, api-ssl, ssh, telnet, www, www-ssl, winbox, ftp) | |
| action | Yes | Action to perform — only enable/disable to prevent accidental lockout from changing ports | |
| dryRun | No | Preview changes without applying. | |
| 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. |