Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as middle.network - DNS, Email, Network, Compliance, Domain and Audit Tools. If you published it, claim ownership there.

SPF / DMARC / DKIM / BIMI / MTA-STS record generator

email_generators
Read-onlyIdempotent

Generate ready-to-paste DNS TXT records (and MTA-STS policy text) for SPF, DMARC, DKIM, BIMI, or MTA-STS. type (default "spf") picks the family and domain defaults to example.com; structured fields (senders, policy/rua, selector/publicKey, logoUrl, mxHosts/stsMode) always override legacy text shorthand. Use to draft records, not audit live DNS - call sibling audit tools (spf, dmarc, dkim, bimi, mta_sts) instead. Offline except type="mta-sts" (queries live MX if mxHosts/text omitted); refuses private keys with isError=true. Requires middle.network auth; uses 1 daily quota unit.

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
atNoISO-8601 UTC timestamp when the result was generated.
msNoElapsed execution time in milliseconds.
dataYesTool-specific structured payload (records, timings, parsed fields, or scores).
toolYesCatalog tool identifier.
shareNoOptional shareable report link metadata.
statusYesOverall diagnostic verdict (worst finding wins; no findings = pass).
targetYesNormalised domain, IP, or input target.
limitedNoOptional list of upstream data sources that were rate-limited or unavailable.
summaryYesPlain-English and technical one-line summaries.
findingsYesOrdered diagnostic findings with severity and actionable fixes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedOutput schema / properties / at
      Added value: +{
      +  "description": "ISO-8601 UTC timestamp when the result was generated.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / findings / items / properties / level / enum
      Previous value: -[
      -  "ok",
      -  "info",
      -  "warn",
      -  "fail",
      -  "error"
      -]New value: +[
      +  "pass",
      +  "info",
      +  "warn",
      +  "fail",
      +  "error"
      +]
    • addedOutput schema / properties / findings / items / required
      Added value: +[
      +  "level",
      +  "plain",
      +  "tech"
      +]
    • addedOutput schema / properties / ms
      Added value: +{
      +  "description": "Elapsed execution time in milliseconds.",
      +  "type": "integer"
      +}
    • changedOutput schema / properties / status / description
      Previous value: -"Overall diagnostic verdict."New value: +"Overall diagnostic verdict (worst finding wins; no findings = pass)."
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "ok",
      -  "warn",
      -  "fail",
      -  "error",
      -  "info"
      -]New value: +[
      +  "pass",
      +  "warn",
      +  "fail",
      +  "error",
      +  "info"
      +]
    • addedOutput schema / properties / summary / required
      Added value: +[
      +  "plain",
      +  "tech"
      +]
    • addedOutput schema / required
      Added value: +[
      +  "tool",
      +  "target",
      +  "status",
      +  "summary",
      +  "findings",
      +  "data"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Standard middle.network ToolResult envelope returned in structuredContent.",
      +  "properties": {
      +    "data": {
      +      "description": "Tool-specific structured payload (records, timings, parsed fields, or scores).",
      +      "type": "object"
      +    },
      +    "findings": {
      +      "description": "Ordered diagnostic findings with severity and actionable fixes.",
      +      "items": {
      +        "properties": {
      +          "fix": {
      +            "description": "Optional copy-paste fix or next step.",
      +            "type": "string"
      +          },
      +          "level": {
      +            "description": "Finding severity.",
      +            "enum": [
      +              "ok",
      +              "info",
      +              "warn",
      +              "fail",
      +              "error"
      +            ],
      +            "type": "string"
      +          },
      +          "plain": {
      +            "description": "Plain-English explanation.",
      +            "type": "string"
      +          },
      +          "tech": {
      +            "description": "Technical evidence or record value.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "limited": {
      +      "description": "Optional list of upstream data sources that were rate-limited or unavailable.",
      +      "items": {
      +        "properties": {
      +          "reason": {
      +            "description": "Why the upstream result was limited.",
      +            "type": "string"
      +          },
      +          "upstream": {
      +            "description": "Upstream provider name.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "share": {
      +      "description": "Optional shareable report link metadata.",
      +      "properties": {
      +        "at": {
      +          "description": "ISO-8601 timestamp when the share snapshot was created.",
      +          "type": "string"
      +        },
      +        "id": {
      +          "description": "Share identifier at https://share.middle.network/<id>.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "status": {
      +      "description": "Overall diagnostic verdict.",
      +      "enum": [
      +        "ok",
      +        "warn",
      +        "fail",
      +        "error",
      +        "info"
      +      ],
      +      "type": "string"
      +    },
      +    "summary": {
      +      "description": "Plain-English and technical one-line summaries.",
      +      "properties": {
      +        "plain": {
      +          "description": "Plain-English summary for end users.",
      +          "type": "string"
      +        },
      +        "tech": {
      +          "description": "Exact technical summary for engineers.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "target": {
      +      "description": "Normalised domain, IP, or input target.",
      +      "type": "string"
      +    },
      +    "tool": {
      +      "description": "Catalog tool identifier.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, but the description adds non-obvious behavior the annotations do not convey: offline operation except the mta-sts live-MX path, refusal of private keys returning isError=true, a middle.network auth requirement, and a 1-unit daily quota cost. The live-MX note is also consistent with openWorldHint=true rather than contradicting it.

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?

Front-loaded with purpose and alternatives, then caveats, then cost/auth — a sensible order with no filler sentences. It is dense and packs several distinct facts into a short block; a slightly more scannable structure (e.g. separating cost/error behavior) would improve it, but nothing is superfluous.

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

Completeness5/5

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

For a 21-parameter, all-optional builder with full schema descriptions and an output schema, the description covers the things structured fields cannot: the record families and their default, precedence between shorthand and structured input, the single non-offline path, error behavior, and auth/quota. Nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so per-parameter docs are already handled, which sets the baseline at 3. The description adds cross-parameter semantics the schema does not make prominent as a rule: type defaults to "spf", domain defaults to example.com, and "structured fields ... always override legacy text shorthand," which tells the agent how the text field interacts with the 20 field-level parameters.

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

Purpose5/5

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

Opens with a specific verb and concrete output artifact: "Generate ready-to-paste DNS TXT records (and MTA-STS policy text) for SPF, DMARC, DKIM, BIMI, or MTA-STS." It enumerates the five record families, matching the type enum, and explicitly separates this builder from the per-family sibling tools (spf, dmarc, dkim, bimi, mta_sts).

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

Usage Guidelines5/5

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

Gives an explicit when-to-use ("Use to draft records"), an explicit when-not-to-use ("not audit live DNS"), and names the correct alternatives for the other case: "call sibling audit tools (spf, dmarc, dkim, bimi, mta_sts) instead." It further scopes the one non-offline case to type="mta-sts" when mxHosts/text is omitted, so the agent can predict a live network call before invoking.

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.

Resources