Skip to main content
Glama

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
NameRequiredDescriptionDefault
email_idYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bastienchabal/gmail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server