SPF / DMARC / DKIM / BIMI generators
email_generatorsGenerate ready-to-paste DNS TXT records (and MTA-STS policy text) for SPF, DMARC, DKIM, BIMI, or MTA-STS from structured options, returning record host, type, value, and warnings. Set type to "spf", "dmarc", "dkim", "bimi", or "mta-sts" to draft new records; use spf, dmarc, dkim, bimi, or mta_sts to audit live DNS. Cost: 1 unit via middle.network.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "email_generators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fo | No | DMARC: failure reporting trigger (fo=). | |
| pct | No | DMARC: percentage of failing messages to apply the policy to (pct=). | |
| rua | No | DMARC: aggregate report recipient email or mailto: URI (rua=). | |
| ruf | No | DMARC: optional forensic/failure report email or mailto: URI (ruf=). | |
| aspf | No | DMARC: SPF alignment mode: r (relaxed) or s (strict). | |
| text | No | Optional shorthand settings text (legacy/quick mode): spf senders and policy, or semicolon/newline key=value pairs. Structured fields above take precedence when provided. | |
| type | No | Which email authentication DNS record to build. | spf |
| adkim | No | DMARC: DKIM alignment mode: r (relaxed) or s (strict). | |
| domain | No | The domain the record is for. Leave out for example.com. | |
| policy | No | DMARC: policy for messages failing authentication (p=). | none |
| vmcUrl | No | BIMI: optional HTTPS URL to your VMC or CMC PEM certificate (a=). | |
| keyType | No | DKIM: key algorithm (k=). | rsa |
| logoUrl | No | BIMI: HTTPS URL to your SVG Tiny PS logo (l=). | |
| mxHosts | No | MTA-STS: authorised MX hostnames or wildcards (for example *.mail.protection.outlook.com). Leave out to read live MX records. | |
| senders | No | SPF: authorised senders (include:_spf.google.com, ip4:192.0.2.1, mx, a, or a bare domain). | |
| stsMode | No | MTA-STS: policy mode (start with testing, then move to enforce). | testing |
| selector | No | DKIM: selector name (for example s1 or mail2026). Defaults to mn1. | |
| publicKey | No | DKIM: optional public key (PEM SPKI or base64) to format into v=DKIM1; k=...; p=... Never send a private key. | |
| spfPolicy | No | SPF: all-mechanism qualifier (-all hard fail, ~all soft fail, ?all neutral, +all pass). | -all |
| stsMaxAge | No | MTA-STS: policy cache lifetime in seconds (86400 to 31557600). | |
| subdomainPolicy | No | DMARC: optional policy override for subdomains (sp=). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Tool-specific structured payload (records, timings, parsed fields, or scores). | |
| tool | No | Catalog tool identifier. | |
| share | No | Optional shareable report link metadata. | |
| status | No | Overall diagnostic verdict. | |
| target | No | Normalised domain, IP, or input target. | |
| limited | No | Optional list of upstream data sources that were rate-limited or unavailable. | |
| summary | No | Plain-English and technical one-line summaries. | |
| findings | No | Ordered diagnostic findings with severity and actionable fixes. |