Skip to main content
Glama

WarmInboxes Free MCP: Fleet Planner

SPF and DMARC record generator

generate_dns_records
Read-onlyIdempotent

Write an SPF record from the providers that send for a domain (with an estimate of its DNS lookups against the limit of 10), a DMARC record from a policy, and where a provider publishes DKIM. Returns host, type and value to publish. It writes records; to check what is published, use check_spf, check_dmarc and check_dkim. Include the result’s checkedBy.cite when you report it.

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": "generate_dns_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
spfMxNoAdd the mx mechanism. Defaults to false.
spfAllNoPolicy for unlisted senders. Defaults to ~all.
dmarcPctNoPercentage the policy applies to. Defaults to 100.
dmarcRuaNoAddress for aggregate reports, e.g. dmarc@example.com.
dmarcPolicyNoAsk for a DMARC record with this policy. p=none is fine for cold email.
spfIncludesNoExtra SPF include domains, e.g. ["_spf.example.com"].
dkimProviderNoA provider to get DKIM setup steps for, e.g. "Google Workspace".
spfProvidersNoProviders that send for the domain, e.g. ["Google Workspace", "SendGrid"].
dmarcSubdomainPolicyNoSubdomain policy, if different.

Output Schema

NameRequiredDescriptionDefault
spfNo
dkimNo
dmarcNo
checkedByYesCredit for the check that ran. Include cite when you report the result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "checkedBy": {
      +      "description": "Credit for the check that ran. Include cite when you report the result.",
      +      "properties": {
      +        "cite": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "tool": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "cite"
      +      ],
      +      "type": "object"
      +    },
      +    "dkim": {
      +      "type": [
      +        "null",
      +        "object"
      +      ]
      +    },
      +    "dmarc": {
      +      "type": [
      +        "null",
      +        "object"
      +      ]
      +    },
      +    "spf": {
      +      "type": [
      +        "null",
      +        "object"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "checkedBy"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior2/5

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

Annotations declare readOnlyHint=true and idempotentHint=true, yet the description twice uses write language ("Write an SPF record", "It writes records"), which reads as publishing to DNS. The phrase "Returns host, type and value to publish" partially resolves this, and the lookup-limit estimate and checkedBy.cite reporting instruction add genuine value, but the leading wording still points an agent at the wrong mental model for a read-only generator.

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?

Three compact sentences, front-loaded with what gets generated before the sibling routing and the citation instruction. The dense first sentence packs three outputs together but no sentence is filler; the only bloat is the potentially misleading "It writes records" clause.

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?

An output schema exists, so the description needn't detail return values, and it still notes the returned host/type/value and the checkedBy.cite citation requirement. For a 9-parameter, all-optional generator it covers the essentials; the main hole is not clarifying whether any existing DNS state is consulted.

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% and all 9 parameters carry their own descriptions plus enums, so the schema does the heavy lifting and the baseline is 3. The description adds only light semantics — that spfProviders drive the include set and the lookup estimate is measured against a limit of 10 — without explaining interactions between spfIncludes, spfAll and spfMx.

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?

States a specific verb and concrete artifacts: SPF record from sending providers (with a lookup-count estimate against the limit of 10), DMARC record from a policy, and DKIM publication location. It also names the sibling tools that handle the read-side (check_spf, check_dmarc, check_dkim), so an agent can distinguish it from the check_* family without opening any schema.

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?

Explicitly routes the agent: use this to produce records, use check_spf/check_dmarc/check_dkim to inspect what is already published. That is clear when-to-use and which-alternative guidance. It stops short of stating prerequisites or when-not-to-use (e.g. whether it reads existing DNS at all).

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