Skip to main content
Glama

Check SPF, DKIM, DMARC, MTA-STS, TLS-RPT and BIMI

lw_email_auth_check
Read-onlyIdempotent

Checks a domain's SPF, DKIM, DMARC, MTA-STS, TLS-RPT and BIMI records, returning parsed results with findings and a fix for each issue.

Instructions

Check a domain's email authentication records: SPF (resolved includes, approximate DNS lookup count against the limit of 10, +all, multiple records), DKIM for a list of selectors (default selector1 and selector2 for Microsoft 365 and google for Google Workspace; shows the CNAME target, key type and revoked keys), DMARC (policy, subdomain policy, pct, report addresses), MTA-STS TXT (and optionally the policy file), TLS-RPT and BIMI. Returns parsed records plus findings with a fix line. DKIM selectors cannot be discovered from DNS, so pass the ones your senders use. Domain names are sent to the public RDAP service and DNS-over-HTTPS resolvers (Cloudflare by default, Google for comparisons). No Liquid Web credentials are used.

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

Input Schema

NameRequiredDescriptionDefault
domainYesDomain to check, e.g. example.com.
dkim_selectorsNoDKIM selectors to check (default ["selector1", "selector2", "google"]).
fetch_mta_sts_policyNoAlso fetch https://mta-sts.<domain>/.well-known/mta-sts.txt (default false). This contacts the domain's own web server.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing external data flows: domain names are sent to a public RDAP service and to DNS-over-HTTPS resolvers (Cloudflare by default, Google for comparisons), and that fetch_mta_sts_policy contacts the domain's own web server. It also states no Liquid Web credentials are used, which materially lowers the perceived risk of calling 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 the core purpose, then per-record detail, then data-flow caveats — a sensible ordering with no filler sentences. It is dense as one unbroken block, and the DKIM parenthetical is long, but every clause carries actionable information.

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?

Output schema exists, so return values need not be spelled out, and the description still notes it returns parsed records plus findings with a fix line. Combined with the privacy/resolver disclosure and selector guidance, an agent has everything needed to call this correctly and interpret the result.

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 already 100%, so the baseline is 3, but the description adds real meaning: it names the default selector set and why it targets selector1/selector2 (Microsoft 365) and google (Google Workspace), and warns about the network side effect of fetch_mta_sts_policy. Minor gap: domain/maxLength and selector pattern limits are left entirely to the schema.

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 (check) and resource (a domain's email authentication records), then enumerates exactly which record types it covers: SPF, DKIM, DMARC, MTA-STS TXT, TLS-RPT and BIMI. The scope is narrow enough that an agent can distinguish it from generic DNS tools such as lw_dns_lookup or lw_m365_dns_check without opening a 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?

Explains the one non-obvious precondition clearly — DKIM selectors cannot be discovered from DNS, so the caller must pass the selectors its senders actually use — and flags when to opt into the extra MTA-STS policy fetch. It gives clear context for use but does not name sibling alternatives or state when a different tool would be preferred.

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

Deploy Server

Other Tools