Exchange EWS MCP Server implemented in Python using exchangelib
Server has 14 tools with complete schemas and descriptions, but quality is inconsistent. Naming follows verb_noun convention well (list_messages, send_email, delete_message). Descriptions are present but often generic (e.g., 'Send an email message' lacks context on when to use vs reply_to_message). Parameters have types and descriptions, but lack constraints (enums, ranges, patterns). Output schemas are JSON strings rather than structured objects, forcing LLM parsing. Error handling is minimal, most tools return JSON with 'success' flag but no recovery guidance. Idempotency keys present on write operations (good), but no confirmation pattern for destructive delete_message. No tool annotations (readOnlyHint, destructiveHint) despite clear risk levels.
Delete a message permanently.
Forward an email message to new recipients.
Extract text content from an attachment (supports txt, csv, html, json, md, pdf, docx, xlsx).
Get all messages in the same conversation thread as the given message.
Get full details of an email by ID.
List information about all attachments of an email.
List all folders in the mailbox.
Output schemas are JSON strings, not structured objects. LLMs must parse unstructured text (e.g., 'return json.dumps(...)'), wasting tokens and increasing hallucination risk. Should return typed dicts with documented fields.
Descriptions lack context on WHEN to use each tool. 'Send an email message' does not explain when to use send_email vs reply_to_message vs forward_message. LLMs cannot disambiguate without explicit guidance.
No input validation constraints. folder_name accepts any string; should validate against known folders or return actionable error. limit parameters unbounded; should specify min/max (e.g., 1-100). query parameter lacks AQS syntax documentation.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | <=2025-11-25 | v2 |
List newest messages in a folder (e.g. 'inbox', 'sent').
Mark a message as read.
Mark a message as unread.
Move a message to a different folder.
Reply to an existing email message.
Search messages using keywords (e.g. 'subject:Project').
Send an email message.
delete_message lacks confirmation or dry-run pattern. Destructive operations should require explicit confirmation or support a preview step to prevent accidental data loss.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Risk levels are documented in metadata but not exposed to LLM via schema. Should add annotations to guide agent planning.