get_email_headers
Extract email headers like From, To, Subject, and Date without downloading the full message body for efficient email analysis and organization.
Instructions
Fetch only email headers (From, To, Subject, Date, Message-ID, etc.) without downloading the body. account_id recommended so the UID lookup hits the right mailbox.
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_id": "<email_id>"
},
"name": "get_email_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | Email ID to get headers from | |
| folder | No | Email folder (default: 'INBOX') | INBOX |
| account_id | No | Specific account ID (optional) | |
| headers | No | Specific headers to retrieve (optional, default: common headers like From, To, Subject, Date, Message-ID) |