Skip to main content
Glama

DMARC record generator

generate_dmarc_record
Read-onlyIdempotent

Build a valid DMARC TXT record (to publish at _dmarc.yourdomain) from a policy and report addresses.

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>",
      "policy": "<policy>"
    },
    "name": "generate_dmarc_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruaNoEmail addresses that receive the daily aggregate reports, e.g. dmarc@example.com.
domainYesThe domain the record is for, e.g. example.com.
policyYesWhat receivers do with fakes: none (report only), quarantine (spam folder) or reject (block). Start with none plus a report address, then tighten.
subdomainPolicyNoA different policy for subdomains. Leave out to use the main policy.

Output Schema

NameRequiredDescriptionDefault
hostYesWhere to publish it: the DNS name (host) of the TXT record.
typeYes
valueYesThe record value to paste into DNS.
toolUrlYesThe same check as a free web tool on pipefire.ai.
warningsYesThings to check before publishing, such as nearing the SPF 10-lookup limit. Empty when there are none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / warnings / description
      Added value: +"Things to check before publishing, such as nearing the SPF 10-lookup limit. Empty when there are none."
  2. Changed5 schema fields changed
    • addedInput schema / properties / domain / description
      Added value: +"The domain the record is for, e.g. example.com."
    • changedInput schema / properties / policy / description
      Previous value: -"Start with none plus a report address, then tighten."New value: +"What receivers do with fakes: none (report only), quarantine (spam folder) or reject (block). Start with none plus a report address, then tighten."
    • changedInput schema / properties / rua / description
      Previous value: -"Aggregate report addresses."New value: +"Email addresses that receive the daily aggregate reports, e.g. dmarc@example.com."
    • addedInput schema / properties / subdomainPolicy / description
      Added value: +"A different policy for subdomains. Leave out to use the main policy."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "host": {
      +      "description": "Where to publish it: the DNS name (host) of the TXT record.",
      +      "type": "string"
      +    },
      +    "toolUrl": {
      +      "description": "The same check as a free web tool on pipefire.ai.",
      +      "type": "string"
      +    },
      +    "type": {
      +      "const": "TXT",
      +      "type": "string"
      +    },
      +    "value": {
      +      "description": "The record value to paste into DNS.",
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "host",
      +    "type",
      +    "value",
      +    "warnings",
      +    "toolUrl"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint false and a closed world, so the safety profile is covered. The description adds genuinely new context beyond them: the output is a TXT record destined for the _dmarc.yourdomain host, which tells the agent this is a string-generation step, not a DNS write. It stops short of noting that publishing is the caller's responsibility.

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

Conciseness5/5

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

A single front-loaded sentence with no filler; the artifact and its destination come first. Nothing in it is redundant with the name or title.

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?

With an output schema present and full parameter documentation, the description does not need to explain return values or fields. It covers what the tool produces and where it goes; only the relationship to sibling generators and the publishing handoff are left implicit.

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 coverage is 100%, and the enum descriptions for policy and subdomainPolicy are already detailed (including a rollout recommendation). The description only loosely alludes to "a policy and report addresses," adding little beyond what the schema documents, so baseline 3 applies.

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?

States a specific verb and resource ("Build a valid DMARC TXT record") and adds the publishing location (_dmarc.yourdomain), which makes the artifact concrete. It does not explicitly name the sibling check_dmarc or the other generate_* record tools, so differentiation is inferred from the verb alone.

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

Usage Guidelines3/5

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

Usage is only implied: the description makes clear this is for creating a record to publish, but it never says when to use this versus check_dmarc (validation) or generate_spf_record/generate_dkim_record. There are no exclusions or prerequisites such as needing an existing SPF/DKIM setup first.

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.