fetch_relevant_gmail_threads
Search a contact's email history to find relevant discussions, extract interaction patterns, and generate actionable insights for upcoming meetings.
Instructions
Search a contact's email history for relevant discussions, extract interaction patterns, timelines, and generate actionable insights based on contact and meeting details.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email_provider": "<email_provider>",
"date_range_days": "<date_range_days>",
"max_results": "<max_results>",
"analysis_type": "<analysis_type>",
"output_variable_name": "<output_variable_name>"
},
"name": "fetch_relevant_gmail_threads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_provider | Yes | Email service to search. Supports Gmail and Outlook Mail. | gmail |
| contact_email | No | The email address to search for (e.g., john@example.com). Will search in from, to, and cc fields. | |
| meeting_topic | No | Topic or keywords to search for in emails (e.g., 'Q4 pricing proposal'). AI will extract relevant keywords. | |
| date_range_days | Yes | How far back to search for emails. | 90 |
| max_results | Yes | Maximum number of email threads to retrieve (e.g., 10, 50, 100). | 10 |
| analysis_type | Yes | Optional AI analysis to run on the fetched emails. | none |
| output_variable_name | Yes | Provide a variable name to store the Gmail threads, like 'topic_relevant_gmail_threads' or 'contact_emails'. | topic_relevant_gmail_threads |