write_email_draft
Generate draft emails via the Gmail API by specifying recipient, subject, and body. Integrates with AVA MCP Server for streamlined email drafting and task management.
Instructions
Create a draft email using the Gmail API.
Args:
recipient_email (str): The email address of the recipient.
subject (str): The subject line of the email.
body (str): The main content/body of the email.
Returns:
dict or None: A dictionary containing the draft information including 'id' and 'message'
if successful, None if an error occurs.
Raises:
HttpError: If there is an error communicating with the Gmail API.
Note:
This function requires:
- Gmail API credentials to be properly configured
- USER_EMAIL environment variable to be set with the sender's email address
- Appropriate Gmail API permissions for creating drafts
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | Yes | ||
recipient_email | Yes | ||
subject | Yes |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"title": "Body",
"type": "string"
},
"recipient_email": {
"title": "Recipient Email",
"type": "string"
},
"subject": {
"title": "Subject",
"type": "string"
}
},
"required": [
"recipient_email",
"subject",
"body"
],
"title": "write_email_draftArguments",
"type": "object"
}