MCP Server for remote server administration - Full system control via AI
servagent demonstrates solid definition quality with explicit tool registration, comprehensive parameter descriptions, and proper use of tool annotations. All 6 tools are explicitly defined with input schemas and descriptions. Most parameters have clear types and descriptions. However, there are gaps in output schema documentation and some parameter constraints lack formal enum declarations. Tool names follow verb_noun conventions well (execute_command, read_file, write_file, edit_file, service_action, tail_file). The server correctly uses ToolAnnotations to declare readOnlyHint, destructiveHint, and idempotentHint, which is excellent for agent planning. Key weaknesses: (1) output schemas are not formally documented in code comments or schema blocks, forcing LLMs to infer structure; (2) service_action lacks an enum constraint for 'action' parameter despite having only 6 valid values; (3) no pagination support on read_file despite accepting offset/limit, creating ambiguity about total available results; (4) error handling is present but not optimized for LLM recovery (e.g., 'File not found' is clear, but no suggestions for alternatives).
Find and replace a string in a file on the **remote** server. All occurrences of ``old_string`` are replaced.
Execute a shell command on the **remote** server and return its output. This is the general-purpose tool for remote administration. The command runs in a shell on the remote host and you receive stdout, stderr, and the exit code. Use it for anything that doesn't have a dedicated tool: installing packages, running scripts, managing users, docker, git, etc.
Read a text file on the **remote** server.
Manage a systemd service on the **remote** server.
Read the last N lines of a file (like the `tail` command).
Create or overwrite a text file on the **remote** server.
Output schemas not formally documented. All 6 tools return dict objects but the structure, field types, and required fields are not declared in docstrings or code comments. LLMs must infer structure from the code (difficult) or make assumptions (error-prone).
service_action 'action' parameter is a free-form string with enumerated values in the description, but NOT constrained as an enum in the JSON Schema. LLMs may pass invalid actions like 'pause' or 'reload' that are not supported.
Error handling is present but not optimized for LLM recovery. Errors like 'File not found: <path>' are clear but do not suggest next steps (e.g., 'Did you mean: <similar_paths>?' or 'Available commands: <list>'). Agents may retry blindly instead of adapting.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-21 | C | 67 | <=2025-11-25 | v2 |
| 2026-03-09 | B | 72 | - | v1 |
read_file accepts offset/limit but does not return pagination metadata (total_lines is returned, but no next_offset or has_more flag). Agents cannot reliably determine if they've read all content or need to fetch more.
Parameter constraints (e.g., timeout bounds, max file size, max command length) are not documented in descriptions. LLMs may pass absurd values (timeout=999999, very large content) that cause failures or DoS.
No batch variants for tools. If an agent needs to read 10 files or run 5 commands, it must make 10-5 separate sequential calls, wasting tokens and latency.