Model Context Protocol server for MikroTik RouterOS devices
This MCP server demonstrates moderate definition quality with consistent naming conventions and schema presence, but significant gaps in parameter descriptions, output schema documentation, and error handling guidance. All 8 tools follow a clear verb_noun naming pattern (list_*, routeros_*) which aids LLM intent recognition. However, tool descriptions are generic (averaging ~60 chars, well below the 194-char production baseline), and parameter descriptions are largely absent or minimal. The server exposes device credentials through connection logic but does not fully implement secret injection patterns. Output schemas are undocumented, LLMs cannot determine what fields to expect or how to chain results to subsequent calls. Error handling returns raw exception strings without recovery guidance.
List all RouterOS devices
List bridges on a RouterOS device
Execute a RouterOS API command on a device
List interfaces on a RouterOS device
List IP addresses on a RouterOS device
List discovered neighbors on a RouterOS device
List routes on a RouterOS device
Get system information from a RouterOS device
Output schemas are not documented. Tools return raw API responses or formatted dicts (e.g., _routeros_system_info returns {'success': bool, 'device': str, 'info': {fields...}} but LLM has no way to know which fields are present or their types. This prevents downstream tool chaining and forces LLMs to infer result structure.
Tool descriptions are generic and under 50 characters (well below 194-char baseline). 'List all RouterOS devices' (27 chars) and 'List interfaces on a RouterOS device' (36 chars) lack context about when to call them or what makes them distinct from alternatives. No descriptions explain prerequisites, return structure, or discovery value.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 51 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Parameter descriptions are missing or trivial. 'parameters' in routeros_command is documented as 'Optional command parameters' (27 chars), LLM cannot infer valid keys, types, or examples. No descriptions for 'include_disabled' (boolean), 'only_active' (boolean), or other optional params explain their purpose or constraints.
Error handling does not guide recovery. _routeros_command catches all exceptions and returns {'success': False, 'error': str(e)} with raw exception text. LLM receives 'RouterOS connection failed' or similar without knowing if it should retry, ask user for credentials, or abort. No error categorization (retryable vs. fatal) or recovery suggestions.
No pagination support. list_routeros_devices and routeros_command do not accept limit/offset or return a total_count/next_cursor. If a device has hundreds of interfaces or routes, the entire result floods the context window, wasting tokens and degrading LLM reasoning.
Credentials are embedded in device configuration files and passed through load_device_connection(). While not exposed as tool parameters, the server does not implement server-side secret injection (env vars, vault, or encrypted config). Device passwords are loaded from YAML in plaintext during device manager initialization.
Response bloat, no field filtering. _routeros_system_info returns all API fields and manually formats a few (e.g., uptime, cpu-load), but raw responses from other tools (interfaces, routes) include unfiltered RouterOS API output. No guidance on which fields are essential for agent reasoning. This wastes tokens and increases hallucination risk.
routeros_command is overloaded and lacks clear input constraints. It accepts any command (e.g. '/interface/print', '/ip/address/print', '/system/reboot') and attempts to parse the operation from the string suffix. No enum of valid commands, no documentation of supported operations, and no protection against destructive commands like '/system/reset-configuration'. An agent could accidentally reset a router.