extract_contacts
Scan recent IMAP messages to return structured contact data—name, email, and frequency—sorted by how often each contact emails you, helping identify your most frequent senders.
Instructions
Scan recent messages via IMAP and return structured contact data (name, email, frequency) sorted by how often they email you — enables "who emails me most?" queries. Works with any IMAP provider.
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": {
"accountId": "<accountId>"
},
"name": "extract_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of recent messages to scan (default: 100, max: 500) | |
| folder | No | The folder to scan (default: INBOX) | |
| accountId | Yes | The ID of the account to use |