Static source inference · medium confidence · evidence: stateless requests
Current-spec patterns detected
Summary
The OpenAgent Email MCP server defines 25 tools with generally good naming conventions (verb_noun prefix structure: mail_*, task_*, notify_*) and complete parameter schemas. However, descriptions are inconsistent in depth and quality. Parameter descriptions are minimal (typically 10-30 chars), lacking guidance on constraints, ranges, valid values, or dependencies. Output schemas are not documented, we cannot see what fields each tool returns, forcing LLMs to reason about response structure. Error handling and recovery guidance are absent from descriptions. The tool set is well-composed with clear responsibilities, but falls short of production-grade LLM-readiness due to sparse parameter documentation and missing output schema specifications.
Output schemas not documented. No tool returns expected structure visible in code. LLMs cannot predict what fields to extract from responses (e.g., does mail_list_messages return message_ids, subjects, timestamps, senders?). This forces agents to guess and wastes tokens on trial-and-error parsing.
Parameter descriptions are sparse and lack constraints. E.g., mail_list_messages 'limit' param says 'Maximum number of messages to return' but does not state valid range (1 - 100?), default value, or what happens if limit exceeds capacity. Minimal descriptions (10 - 30 chars avg) miss guidance on format, enum values, dependencies, and error conditions.
Document output schemas for all 25 tools. For each tool, explicitly state the JSON structure of the response: field names, types, and semantic meaning. Example for mail_list_messages: '{"messages": [{"id": "string", "sender": "string", "subject": "string", "timestamp": "ISO8601", "seen": "boolean"}], "total": "number", "nextCursor": "string|null"}'.
Expand parameter descriptions to 50 - 150 characters and include: (a) what the parameter controls, (b) valid range or enum values, (c) default behavior if omitted, (d) interaction with other parameters. Example: 'limit: Maximum number of messages to return (1 - 100, default 20). If omitted, returns most recent 20 messages sorted by timestamp descending.'
Add side-effect warnings to tool descriptions for WRITE and IRREVERSIBLE operations. Example for mail_send: 'Sends an email immediately. This action cannot be undone. On success, returns message_id; on failure (e.g., invalid address), returns error with recovery hint (e.g., try validating address with mail_list_identities first).'
Document the task leasing protocol explicitly. Add to task_claim, task_renew, task_release descriptions: 'Lease tokens are short-lived (default 5 minutes). Call task_renew before expiry to extend. On lease expiry, the task is automatically released and becomes available for other agents. Releasing early via task_release is idempotent.'
Add enum constraints to mail_webhook_create 'events' parameter: explicitly list valid event types (e.g., message_received, message_read, message_deleted, webhook_test). If variable, provide a discovery tool or link to docs.
Score history
Overall score trend
First recorded score · v2 rubric
63/100
Scored
Grade
Overall
Spec posture
Rubric
2026-09-23
C
63
2026-07-28+
v2
mail_webhook_createwriteauthsource verified70/100
Create a new webhook for receiving email notifications
No error handling or recovery guidance in tool descriptions. Tools like mail_send and mail_new_identity perform irreversible or high-stakes operations (send email, create identity) but descriptions do not warn of side effects, mention retry behavior, or guide agents on failure modes. Missing: 'This operation cannot be undone' or 'On error, try X instead.'
Leasing mechanism for task_claim/task_renew/task_release requires 'leaseToken' parameter but description does not explain token lifecycle, validity duration, or what happens on expiry. This is a complex dependency pattern that LLMs will struggle to understand without explicit guidance.
mail_webhook_create 'events' parameter is an array but has no description of valid enum values (what events can webhooks subscribe to?). This forces LLMs to guess or requires a separate discovery tool. Should document: 'array of event types: ["message_received", "message_read", ...]'
notify_check 'since' parameter is 'optional ISO timestamp' but no description clarifies what it filters (notifications since that time? Or starting from that ID?). Expected format and example would improve clarity.
task_list_children 'cursor' parameter is described as 'Optional pagination cursor' but does not explain cursor format, how to obtain it, or when pagination is necessary. Agents need to know: does this tool always paginate? What is the default page size?
task_list_children
Clarify pagination patterns. For tools accepting limit/cursor (mail_list_messages, task_list, task_list_children), state: default page size, max results per call, cursor format, and whether results are always paginated or only when limit is exceeded.
For tools accepting flexible identifiers (address, email), document resolution order. Example: 'address: Email address or identity UUID. If ambiguous, exact email match is preferred; partial matches return error with suggestions.'
Add idempotency hints to tool descriptions. Example for mail_mark_seen: 'This operation is idempotent. Calling twice with the same (address, id) produces the same result.' This helps agents retry safely.
Include examples of successful and failed responses in docstrings or as separate documentation. Example for task_get: 'On success, returns task object with state, body, lease info. On not-found, returns 404 with suggestion: "Task not found. Try task_list to find available tasks."'