Email header analyser
email_headersParse raw RFC 5322 email headers offline to trace Received relay hops, inter-hop delays, and Authentication-Results (SPF, DKIM, DMARC, ARC). text requires raw headers from "Show original" (20 chars to 256 KB); parsing stops at the first blank line so bodies are ignored. Use to debug a specific email, not live domain DNS (spf, dkim, dmarc, email_score). Offline; flags clock skew, >300s delays, and auth failures as warn findings, and returns isError=true if no headers exist. Requires middle.network auth; uses 1 daily quota unit.
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": {
"text": "<text>"
},
"name": "email_headers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The full headers of one email, as pasted from “Show original”. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ISO-8601 UTC timestamp when the result was generated. | |
| ms | No | Elapsed execution time in milliseconds. | |
| data | Yes | Tool-specific structured payload (records, timings, parsed fields, or scores). | |
| tool | Yes | Catalog tool identifier. | |
| share | No | Optional shareable report link metadata. | |
| status | Yes | Overall diagnostic verdict (worst finding wins; no findings = pass). | |
| target | Yes | Normalised domain, IP, or input target. | |
| limited | No | Optional list of upstream data sources that were rate-limited or unavailable. | |
| summary | Yes | Plain-English and technical one-line summaries. | |
| findings | Yes | Ordered diagnostic findings with severity and actionable fixes. |