MCP server for retrieving and sending iMessages via the Messages application on macOS
Two tools with basic schemas and descriptions, but significant gaps in parameter validation, error handling, and LLM-optimized documentation. Tool names are action-verb-based (good), but descriptions lack context about when to use each tool and what prerequisites exist. Parameters have minimal constraints, no enums, no format specifications, no range validation. Output schemas are not documented. No error recovery guidance. This is a typical community server with functional but incomplete definitions.
Retrieve recent iMessage chat messages
Send an iMessage to a phone number
Tool descriptions are too brief (18 and 25 characters) and lack actionable context. 'Retrieve recent iMessage chat messages' does not explain when to call this vs a similar tool, what happens on error (chat not found, no messages), or whether it requires database access. Per the rubric baseline, descriptions should be 194 chars (p10=34, p90=392). Descriptions under 20 chars default to score 0-20.
Input parameters lack type constraints and validation guidance. 'phoneNumber' accepts any string, the description should specify format (e.g. '+1 (XXX) XXX-XXXX' or 'E.164 format'), whether international numbers are supported, and what happens on invalid format. 'limit' has no range (1 - 100? 1 - 1000?). Per pattern:constrained-input, free-form strings invite hallucinated values.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 43 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 35 | - | v1 |
No output schema documented. The ListToolsResponse shows tool definitions, but CallToolRequest responses are opaque, text saying 'Message sent successfully' or a JSON array of messages with no type hints. LLMs cannot reason about return structure, extract IDs for chaining, or plan multi-step operations. Per pattern:tool, all outputs must be documented.
No error handling or recovery guidance. If phoneNumber is invalid, user not found, or AppleScript fails, the tool throws an error with no context. 'Unknown tool: {name}' and generic error messages do not tell the LLM whether to retry, ask the user, or try a different tool. Per pattern:recovery-guide, errors must guide the next action.
send-imessage is a destructive operation (modifies state via AppleScript) but has no confirmation step or dry-run. Per pattern:confirmation-request, irreversible operations should support confirmation to prevent accidental message sends.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). send-imessage is clearly destructive, but the MCP definition does not declare this. get-recent-chat-messages is read-only but unmarked. Annotations help LLMs reason about side effects and plan safer call sequences.
get-recent-chat-messages has no pagination. The 'limit' parameter caps results, but there is no cursor, offset, or total_count. If a conversation has 1000+ messages, the agent cannot iterate safely. Per pattern:paginated-result, list tools must return pagination metadata.
Parameter names lack specificity. 'phoneNumber' is clear, but 'message' is generic, could mean email, SMS, or iMessage. Per naming conventions, params should be suffixed with the type or service: 'imessage_text' or 'message_body'. Similarly, 'limit' is ambiguous without context.
No input validation in tool handler. The CallToolRequestSchema handler casts arguments without checking types or constraints. If an LLM passes 'limit: -5' or 'phoneNumber: null', the tool will fail downstream with unclear errors. Per pattern:tool-gateway, all agent input is untrusted and must be sanitized.