Skip to main content
Glama

Email Authentication Check (SPF, DMARC, DKIM)

email_auth_check
Read-only

Check a domain's mail authentication: SPF, DMARC (from a parent domain when the domain has no record of its own), DKIM, MX and MTA-STS, each check with pass, warn or fail and a severity.

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

Input Schema

NameRequiredDescriptionDefault
domainYesDomain name, such as example.com
dkim_selectorNoDKIM selector, such as google; without it the check tries the selectors of the domain's mail providers

Output Schema

NameRequiredDescriptionDefault
mxYesIts forms are as in spf.
spfYesavailable is false when the DNS question failed. Then only reason follows.
dkimYesIts forms are as in spf.
dmarcYesIts forms are as in spf.
checksYesThe checks the answers allow, in a fixed order.
domainYes
creditsYes
mta_stsYesIts forms are as in spf.
check_countsYes
mail_providersYesThe mail providers that the MX hosts and the SPF record name, each once.
no_mail_domainYestrue when the domain says it takes and sends no mail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 and openWorldHint, so the safety profile is covered, and the description adds real behavioral detail beyond them: DMARC is looked up at a parent domain when the domain has no record of its own, and each check returns pass/warn/fail with a severity. It stops short of noting rate limits, lookup timeouts, or which resolver is consulted, which matters for an open-world DNS-based check.

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?

A single front-loaded sentence that names the verb and resource first, then enumerates records and the result shape. It is dense but every clause carries information; the parenthetical DMARC caveat slightly interrupts the enumeration but is worth its length.

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

Completeness3/5

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

With an output schema present, return values need no explanation, and annotations cover the read-only profile, so the description is close to complete. The remaining gap is that for a multi-record DNS check it says nothing about partial failures (e.g. a record type that cannot be resolved) or about how long an exhaustive DKIM selector sweep may take.

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%, so both domain and dkim_selector are already documented in the schema, including the selector auto-detection default. The description's only added semantic is the DMARC parent-domain fallback, which is about lookup behavior rather than the parameters themselves; baseline 3 applies.

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?

A specific verb ("Check") bound to a specific resource (a domain's mail authentication) with the five record types it inspects named explicitly (SPF, DMARC, DKIM, MX, MTA-STS). It also states the result model (pass/warn/fail plus severity), which separates it from sibling checks like email_address_check or headers_check that operate at a different granularity.

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 implied rather than stated: an agent can infer this is the tool for domain-level mail-auth posture, and the parent-domain DMARC fallback tells it what happens with missing records. But there is no explicit when-to-use vs when-to-pick-another-tool guidance (e.g. domain auth vs mailbox/address checks) and no stated prerequisites.

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.