Check email security (MX, SPF, DKIM, DMARC)
check_email_securityCheck whether anyone can send email as this domain, and whether its own mail reaches the inbox. Use when the person asks about email security, spoofing or phishing risk, SPF, DKIM or DMARC setup, or why their mail goes to spam. Input: a bare domain like example.com - no scheme, no path. Given a URL or an email address, extract the domain and say what you extracted. Subdomains score in their own right: mail from the apex is not evidence about mail.example.com. Returns an Email Security score 0-100 broken into MX (25), SPF (25), DKIM (20) and DMARC (30), the status of each published record, the mail provider identified from MX, and the exact DNS record to publish for every finding. DNS-only, so it answers in about a second; cached 15 minutes, and refresh is for when DNS has just changed. One caveat to pass on rather than hide: DKIM selectors cannot be enumerated from DNS. They are found by probing the selectors known for the mail provider plus a list of a few hundred common names. A provider that issues random selectors - Amazon SES and Postmark among them - can only be confirmed from a live email, so report DKIM as not found by probing, never as proof the domain does not sign.
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": {
"domain": "<domain>"
},
"name": "check_email_security"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The domain to check, as the person gave it (no scheme, no path). Reserved names such as example.com are refused. | |
| refresh | No | Force a fresh scan instead of the cached result (rate limited) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | What the components add up to, before the cap | |
| grade | Yes | A+ to F | |
| score | Yes | Out of 100, exactly as astraverify.com shows it | |
| capped | No | ||
| domain | Yes | ||
| null_mx | No | The domain declares that it sends and receives no mail | |
| records | No | DNS records found, keyed mx, spf, dkim, dmarc | |
| provider | No | Mail provider detected from MX; null when not recognised | |
| held_back | No | Points the cap holds back while a fix is open (89 cap) or a critical one is (69). Not taken from any component: sum(components.points) - held_back = score | |
| components | No | ||
| open_fixes | No | Findings above info level | |
| report_url | No | The report page for this domain on astraverify.com | |
| request_id | No | req_... for this call. Quote it when reporting a problem with the result. | |
| recommendations | No | ||
| cache_age_seconds | No | Age of the result; 0 means it was scanned just now |