MCP server that executes commands on host machine
Single tool with basic schema and minimal descriptions. Tool name 'execute_remote_command' is clear and verb-prefixed, but descriptions lack depth and context. Input schema present but parameters lack detailed constraints. No output schema documented. Critical security issues: command sanitization is incomplete (semicolon removal on Unix breaks legitimate commands like 'echo "hello; world"'), and the tool exposes destructive capabilities without confirmation or dry-run support. Error handling returns unstructured text rather than actionable guidance. No pagination, no idempotency guarantees, no permission gating.
Execute a command on the host machine
Incomplete command sanitization: removes semicolons on Unix, breaking legitimate commands like 'echo "hello; world"' and 'for i in 1;2;3'. Sanitization logic is fragile and does not account for quoted strings or escaped characters.
No output schema documented. LLMs cannot predict response structure. Tool returns unstructured text combining stdout/stderr without field separation, forcing LLMs to parse free-form output.
Destructive tool lacks confirmation or dry-run support. Agents can execute 'rm -rf /' without warning. No permission gating, no audit trail, no recovery mechanism.
Parameter descriptions are minimal (10-20 chars). 'cwd' description is 'Working directory for command execution' (38 chars) but lacks format guidance, defaults, or constraints. LLMs cannot infer valid values.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 46 | 2026-07-28+ | v2 |
Error responses are unstructured text. 'Command execution error: Command: ... Error: ...' does not guide LLM on retry strategy, root cause, or next steps. No error classification (retryable vs fatal).