Skip to main content
Glama

DMARC, SPF & MX Lookup API - Email Authentication & DNS Security Audit

email_dns_dmarc_spf_check
Read-onlyIdempotent

Check the email DNS setup of up to 50 domains per call: MX records (do the hosts resolve), SPF (parsed, DNS lookup count against the limit of 10 with includes resolved), DMARC (policy, pct, reports, alignment), DKIM for your selectors and common ones, MTA-STS, TLS-RPT and BIMI, with a score, a grade and a fix for every issue. Change monitor mode returns only domains whose records changed. A resolver outage is reported as unavailable, never as no record. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/email-dns-dmarc-spf-check.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domains": [
        "google.com",
        "github.com",
        "example.com"
      ],
      "dkimSelectors": [
        "selector1"
      ]
    },
    "name": "email_dns_dmarc_spf_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoOptional: exactly one domain, e.g. example.com. It is never split: a value with spaces, commas, semicolons or new lines returns one invalid_format row. Use domains for a list.
domainsNoDomains to check, up to 50 per call, bare names like example.com (no https://, no mailbox). The API answers 400 above 50 (the Actor checks the first 50). Each row shows your input and the checked (lowercased) domain; duplicates are checked
datasetIdNoOptional. Pick a dataset (or paste its ID) to read the input from, for example the result of Google Maps Scraper. When this actor runs as an integration, the dataset of the triggering run is used automatically (payload.resource.defaultDatas
datasetFieldNoOptional. The item field that holds the value, for example website, url or videoUrl (dot paths like author.url work). Empty = detected automatically.
dkimSelectorsNoOptional. Your own DKIM selector names (the part before ._domainkey), up to 20 (the API answers 400 above 20 or for an invalid name), for example s1 or mimecast20240101. They are checked in addition to the common ones: google, selector1, se
datasetMaxItemsNoUpper limit of unique values taken from the dataset, to keep the cost under control.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

With annotations already covering read-only/idempotent safety, the description still adds substantive behavior: the 50-domain and 20-selector caps with 400 responses above them, per-IP rate limits, required X-API-Key header, and the key caveat that 'a resolver outage is reported as unavailable, never as no record.' That last point materially changes how an agent should interpret results.

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 what is checked, then limits, then error semantics, then access/pricing. Dense but every clause carries information; the trailing pricing sentence with two URLs is the longest and least essential for calling the tool correctly.

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?

There is no output schema, yet the description explains the return shape (score, grade, a fix per issue), the change-monitor output, and failure semantics. For a multi-record audit tool with six optional parameters, nothing an agent needs 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 the baseline is 3; the description earns above that by clarifying that dkimSelectors are checked *in addition to* common selectors (google, selector1, ...) and that the 50-domain cap is enforced server-side. Minor deduction because 'change monitor mode' is described behaviorally but no corresponding parameter is identified, leaving the agent to guess how to trigger it.

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 opens with a specific verb and resource ('Check the email DNS setup of up to 50 domains per call') and enumerates exactly what is covered: MX, SPF with lookup-count parsing, DMARC policy/alignment, DKIM selectors, MTA-STS, TLS-RPT, BIMI. That scope makes it distinguishable from generic siblings like dns_lookup or domain_security_report without opening schemas, though no sibling is named explicitly.

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 context is implied rather than stated: the 'change monitor mode returns only domains whose records changed' line signals a monitoring use case, and the pricing lines clarify access tiers (5 free calls/day vs. API key or x402). There is no explicit when-to-use/when-not-to-use guidance or routing to an alternative tool.

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