Skip to main content
Glama

middle.network: DNS, Email Auth (SPF/DKIM/DMARC/MTA-STS), WHOIS/RDAP, ASN & Network Tools

SPF / DMARC / DKIM / BIMI generators

email_generators
Read-onlyIdempotent

Generate 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

NameRequiredDescriptionDefault
foNoDMARC: failure reporting trigger (fo=).
pctNoDMARC: percentage of failing messages to apply the policy to (pct=).
ruaNoDMARC: aggregate report recipient email or mailto: URI (rua=).
rufNoDMARC: optional forensic/failure report email or mailto: URI (ruf=).
aspfNoDMARC: SPF alignment mode: r (relaxed) or s (strict).
textNoOptional shorthand settings text (legacy/quick mode): spf senders and policy, or semicolon/newline key=value pairs. Structured fields above take precedence when provided.
typeNoWhich email authentication DNS record to build.spf
adkimNoDMARC: DKIM alignment mode: r (relaxed) or s (strict).
domainNoThe domain the record is for. Leave out for example.com.
policyNoDMARC: policy for messages failing authentication (p=).none
vmcUrlNoBIMI: optional HTTPS URL to your VMC or CMC PEM certificate (a=).
keyTypeNoDKIM: key algorithm (k=).rsa
logoUrlNoBIMI: HTTPS URL to your SVG Tiny PS logo (l=).
mxHostsNoMTA-STS: authorised MX hostnames or wildcards (for example *.mail.protection.outlook.com). Leave out to read live MX records.
sendersNoSPF: authorised senders (include:_spf.google.com, ip4:192.0.2.1, mx, a, or a bare domain).
stsModeNoMTA-STS: policy mode (start with testing, then move to enforce).testing
selectorNoDKIM: selector name (for example s1 or mail2026). Defaults to mn1.
publicKeyNoDKIM: optional public key (PEM SPKI or base64) to format into v=DKIM1; k=...; p=... Never send a private key.
spfPolicyNoSPF: all-mechanism qualifier (-all hard fail, ~all soft fail, ?all neutral, +all pass).-all
stsMaxAgeNoMTA-STS: policy cache lifetime in seconds (86400 to 31557600).
subdomainPolicyNoDMARC: optional policy override for subdomains (sp=).

Output Schema

NameRequiredDescriptionDefault
dataNoTool-specific structured payload (records, timings, parsed fields, or scores).
toolNoCatalog tool identifier.
shareNoOptional shareable report link metadata.
statusNoOverall diagnostic verdict.
targetNoNormalised domain, IP, or input target.
limitedNoOptional list of upstream data sources that were rate-limited or unavailable.
summaryNoPlain-English and technical one-line summaries.
findingsNoOrdered diagnostic findings with severity and actionable fixes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds value beyond them by disclosing cost ("Cost: 1 unit via middle.network") and the output fields (host, type, value, warnings) — cost is not captured in any annotation. It could still note whether generation is deterministic or performs any live DNS lookups (relevant given openWorldHint=true and the mxHosts fallback).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly packed sentences: artifact and return shape first, then the type dispatch and cost. Every clause earns its place. Minor density cost from the comma-heavy lists, but nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 21-parameter, zero-required generator with an output schema and full annotation coverage, the description supplies the key missing framing: what is produced, how type selects the record family, when to use siblings instead, and the cost. Remaining gaps (per-type field applicability, MX lookup fallback behavior) are largely covered by the schema itself.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% across 21 parameters with 9 enums, so the schema already carries the parameter burden. The description only reinforces the type dispatch and the draft-vs-audit meaning of the type values. It adds no guidance on precedence-heavy interactions (e.g. structured fields vs the legacy `text` shorthand) beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and artifact: "Generate ready-to-paste DNS TXT records ... for SPF, DMARC, DKIM, BIMI, or MTA-STS," plus the return shape (host, type, value, warnings). It distinguishes drafting from auditing live DNS. The distinction is slightly muddied because the audit tools share names with the type enum values ("spf", "dkim"), so an agent must infer that those names refer to sibling tools rather than values.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing is present: set type to a draft value to build new records, or use the sibling spf/dmarc/dkim/bimi/mta_sts tools to audit live DNS. That covers the primary when/when-not decision. It does not say how to choose between this multi-type generator and per-record siblings for simple single-record generation, nor which fields apply per type beyond what the schema implies.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.