util_email_parse
Email (.eml / MIME) parser — Parse a raw RFC 5322 email into clean JSON. Pass eml= (the full message source incl. headers, URL-encoded, max 1 MB) or url= (link to a .eml file). Decodes RFC 2047 encoded-word headers, RFC 2231 filenames, base64 and quoted-printable bodies and legacy charsets; walks nested multipart trees and attached message/rfc822. Returns subject, from (with display name), to/cc/bcc/reply-to/sender/return-path address lists, date (ISO), message-id + threading (in-reply-to, references, is_reply), mailer, List-Unsubscribe (URLs, mailto, one-click), body text (text/plain or tag-stripped HTML, max_text= default 20,000), calendar invites, links (href targets with host counts and display-text vs target domain mismatch), attachments (filename, type, size, SHA-256, content sniffing, risk LOW/MEDIUM/HIGH for executables, macro Office files, double extensions, RTL-override names, HTML lures, PDF JavaScript, extension/content mismatch), Authentication-Results (SPF/DKIM/DMARC/ARC + domains), DKIM-Signature domains/selectors, Received hop chain with IPs, times and transit seconds, and the MIME part tree. flags[] call out display-name spoofing, Reply-To domain mismatch, SPF/DKIM/DMARC failures, unaligned DKIM, link text mismatches and risky attachments, rolled up into attention NONE/LOW/MEDIUM/HIGH. headers=true adds every header decoded. Offline, no AI, nothing stored. Price: $0.004 USDC (Base, via x402).
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": {
"eml": "<eml>"
},
"name": "util_email_parse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eml | Yes | From: Alice Example <alice@example.com> To: Bob <bob@example.org> Subject: Lunch on Friday? Date: Wed, 25 Nov 2026 09:00:00 -0500 Message-ID: <20261125.1@example.com> Content-Type: text/plain; charset=utf-8 Hi Bob, are you free for lunch on Friday at noon? Menu: https://example.com/menu |