Gmail MCP server with auto authentication support
Gmail MCP server has basic tool definitions with schemas and descriptions, but significant gaps limit production readiness. All 5 tools have names, descriptions, and input schemas visible in src/index.ts. However, descriptions are minimal (10-50 chars), parameter descriptions lack detail on constraints and formats, output schemas are undocumented, and error handling is absent. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk levels. Tool composition is reasonable (send_email, read_email, search_emails, modify_email, delete_email are distinct), but parameter naming could be more explicit (e.g., 'messageId' vs 'message_id' inconsistency). No pagination support visible for search_emails despite maxResults parameter. Critical: delete_email and send_email lack confirmation/dry-run patterns despite destructive/write risk.
Permanently deletes an email
Modifies email labels (move to different folders)
Retrieves the content of a specific email
Searches for emails using Gmail search syntax
Sends a new email
Output schemas undocumented. No tool returns a documented response structure. LLMs cannot plan downstream calls or extract required fields (e.g., messageId from search_emails for read_email chaining).
Destructive operations (delete_email, send_email) lack confirmation/dry-run pattern. Agents can permanently delete emails or send unintended messages without verification, risking data loss.
Tool descriptions too brief (10-50 chars). 'Sends a new email' and 'Retrieves the content of a specific email' lack context on when to use each tool, prerequisites (OAuth setup), or what happens on error. Baseline: 194 chars average.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 43 | 2026-07-28+ | v2 |
Parameter descriptions lack constraints and formats. 'messageId' has no hint it's a Gmail API message ID format. 'labelIds' array lacks explanation of valid label IDs or how to discover them. 'query' for search_emails lacks Gmail search syntax examples or link to documentation.
No error handling guidance. Code catches errors but returns generic messages. LLMs receive no actionable recovery hints (e.g., 'OAuth token expired, re-run auth command' or 'Invalid messageId, call search_emails first').