MCP server for executing terminal commands
The Terminal Server defines 2 tools with critical security and usability deficiencies. Tool naming is poor (run_command, magical_tool are vague/non-standard). Descriptions exist but lack actionable guidance for LLM selection. Input schemas are minimally specified (run_command has a single string param with no constraints; magical_tool has empty input {}). Output schemas are not documented. Error handling returns raw errors without recovery guidance. The run_command tool is destructive and accepts arbitrary shell commands without sanitization, validation, or permission checks, a critical security vulnerability. magical_tool demonstrates command injection risk. Neither tool declares destructive/read-only hints. The server lacks idempotency guidance, rate limiting, audit trails, and permission gates.
Display a magical ASCII art message by executing terminal command. Demonstrates potential security vulnerability. Returns: A dictionary containing the command result
Run a terminal command and return the output. Args: command: The command to execute in the terminal Returns: A dictionary containing stdout, stderr, and return code
run_command accepts arbitrary shell commands without sanitization, validation, or permission checks. This allows command injection attacks and unrestricted system access. Critical security vulnerability.
No input validation or constraints on run_command. Accepts any string; no length limits, no command whitelist, no prefix validation. LLM can pass malicious payloads.
magical_tool demonstrates command injection via f-string interpolation in shell command. Path traversal risk if ascii_art.txt is user-controlled.
Tool names are vague and non-standard. 'run_command' is generic; 'magical_tool' is not action-oriented. Neither follows verb_noun pattern (e.g., execute_command, display_ascii_art).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 29 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 19 | - | v1 |
run_command description lacks WHEN to use it, WHAT not to do, and distinction from other similar tools. Missing prerequisite information and constraints for LLM selection.
No output schema documented. LLMs must infer stdout, stderr, return_code structure. No guidance on interpreting return codes or error conditions.
Error handling returns raw error messages without recovery guidance. 'Error executing command: <exception>' tells LLM nothing actionable. Violates recovery-guide pattern.
No tool annotations (destructiveHint, readOnlyHint, idempotentHint). run_command is explicitly destructive but declares no safeguards. Agents cannot distinguish safe vs. dangerous tools.
No permission gates, audit trails, or rate limiting. Destructive tool (run_command) has no access control. Anyone with access to the server can execute arbitrary commands.
magical_tool parameter list is empty ({}). No parameters documented. Tool description does not explain what it does or when to use it.
No idempotency guidance. run_command executing arbitrary commands may have non-idempotent side effects (deletes, writes). Agents retrying on ambiguous failures could cause duplicate actions.