Check a domain's SPF record
check_spfCheck a domain's SPF record, the DNS TXT record (starting with v=spf1) that lists the servers allowed to send email for the domain.
It checks that the domain has exactly one SPF record, parses it, follows every include: and redirect= into a tree, and counts the DNS lookups a receiver makes against RFC 7208's limit of 10 and the void lookups (lookups that find nothing) against the limit of 2. Above either limit receivers fail SPF for every message. It also flags +all (any server may send as the domain), ?all, a missing all, ptr, syntax errors and include loops.
Returns {"domain", "record" (the record text, null without exactly one), "tree" (each node: domain, via, status, record, children), "lookups", "lookups_exact" (false when counting stopped past the limit, so lookups is a lower bound), "void_lookups", "findings" (each {"level": "ok"|"info"|"warn"|"error", "code", "text"}; "info" is a note that grades nothing), "grade" (the worst level)}. Show the user the findings' text.
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": {
"domain": "<domain>"
},
"name": "check_spf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The domain to check, such as example.com. A URL or an email address works too: the tool takes the domain from it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||