The AppleScript MCP server has a single tool (applescript_execute) with critical definition quality issues. The tool description is overly long (400+ chars), lacks clarity on the immediate risks of execution, and the input schema is minimally documented. The code shows basic parameter definitions (code_snippet, timeout) but they lack sufficient descriptive detail for LLM reasoning. The tool's description reads more like a feature list than actionable guidance on when/why to use it. No output schema is documented. Error handling exists at the implementation level but does not surface recovery guidance to the LLM. The server accepts a high-risk operation (arbitrary code execution) without proper constraints, validation hints, or permission gates in the definition.
Run AppleScript code to interact with Mac applications and system features. This tool can access and manipulate data in Notes, Calendar, Contacts, Messages, Mail, Finder, Safari, and other Apple applications. Common use cases include but not limited to: - Retrieve or create notes in Apple Notes - Access or add calendar events and appointments - List contacts or modify contact details - Search for and organize files using Spotlight or Finder - Get system information like battery status, disk space, or network details - Read or organize browser bookmarks or history - Access or send emails, messages, or other communications - Read, write, or manage file contents - Execute shell commands and capture the output
Tool description lacks actionable guidance and safety framing. At 400+ chars, it reads as a marketing feature list rather than LLM-optimized documentation. Expected format: 50-200 chars explaining WHAT the tool does, WHEN to use it, and any prerequisites or constraints.
Input parameters lack descriptive depth. 'code_snippet' has minimal description ('Multi-line appleScript code to execute'), and 'timeout' description ('Command execution timeout in seconds (default: 60)') does not specify valid range (e.g., 1-3600), constraints, or recovery if timeout occurs.
No output schema documented. LLM has no visibility into what fields to expect from execution success, failure, or timeout scenarios. This forces the LLM to infer structure from trial and error.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 45 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 27 | - | v1 |
Security-critical tool definition missing permission gates, scope declarations, or least-privilege hints. Tool executes arbitrary AppleScript code on local or remote macOS; LLM has no guidance on whether this is safe to call freely or requires explicit permission.
No error guidance in definition. Code can fail with timeouts, SSH errors, missing osascript, or malformed AppleScript. These errors surface as plain strings ('AppleScript execution failed: <stderr>') with no actionable recovery path for the LLM.
Tool does multiple things: local execution, remote SSH execution with file upload/cleanup, and timeout handling. This breadth increases complexity and error surface. Consider splitting into applescript_execute_local and applescript_execute_remote.
Timeout parameter accepts a number with no explicit min/max constraint in the definition. Baseline rubric requires numeric ranges: 1 - 3600 seconds would be reasonable. Unbounded numbers let LLMs pass absurd values (e.g., 999999999).
Remote SSH execution stores credentials (password, host, user) as CLI arguments and logs them (see logger.info lines in main()). This violates secret-injection pattern, credentials should never appear in logs or tool traces.