prepare_email_reply
Gather comprehensive email context including thread history, sender information, and communication patterns to craft informed replies.
Instructions
Prepare a context-rich reply to an email.
This tool gathers comprehensive context for replying to an email,
including the original email, thread history, sender information,
communication patterns, and related emails.
Prerequisites:
- The user must be authenticated. Check auth://status resource first.
- You need an email ID, which can be obtained from list_emails() or search_emails()
Args:
email_id (str): The ID of the email to reply to.
Returns:
Dict[str, Any]: Comprehensive context for generating a reply, including:
- original_email: The email being replied to
- thread_context: Information about the thread
- sender_context: Information about the sender
- communication_patterns: Analysis of communication patterns
- entities: Entities extracted from the email
- related_emails: Related emails for context
Example usage:
1. First check authentication: access auth://status resource
2. Get a list of emails: list_emails()
3. Extract an email ID from the results
4. Prepare a reply: prepare_email_reply(email_id="...")
5. Use the returned context to craft a personalized reply
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes |