Analyze email headers
analyze_email_headersRead an email's header and report how the message was delivered.
Headers are parsed in memory and not stored. Nothing is looked up in DNS: the verdicts are the ones the receiving server wrote.
Returns subject, date and message_id; from_domain,
return_path_domain and dkim_domains; hops (the Received headers
oldest first: from_host, by_host, with_protocol, timestamp and
delay_seconds since the previous hop); authserv_id and
auth_results (the SPF, DKIM and DMARC verdicts of the topmost
Authentication-Results header); alignment (spf_aligned,
dkim_aligned: whether the From domain matches the Return-Path and a
DKIM signature's d= domain; DMARC needs one); findings (level,
code, text) and grade, the worst level among the findings.
Credits: 1 per call.
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": {
"headers": "<headers>"
},
"name": "analyze_email_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| headers | Yes | The message header as text, from the first Received: line down to the blank line before the body (a mail program's 'Show original' or 'View message source'). A whole message is fine; the body is ignored. At most 200 KB. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||