Skip to main content
Glama

SPF, DKIM and DMARC record lookup

lookup_email_auth
Read-only

Look up a domain's email authentication records and report what they say, with no grade: the SPF record (its terms, how it ends, and how many of the 10 allowed DNS lookups it uses), DKIM keys (key type and size per selector), and the DMARC record (policy, subdomain policy, report addresses, and whether it is inherited from the organisational domain). DKIM selectors cannot be listed from DNS: pass the selectors to check, or leave them out to try 15 common ones, and the result names every selector tried. A lookup that failed is reported as "could not be checked", never as "no record". For a spoofing-risk grade use check_spoofability instead.

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

Input Schema

NameRequiredDescriptionDefault
domainYesDomain to look up, e.g. example.com
selectorsNoDKIM selectors to check, up to 10, e.g. ["google", "selector1"]. Leave out to try 15 common selectors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, yet the description adds substantive behavior: DKIM selectors cannot be enumerated from DNS, failed lookups are reported as "could not be checked" rather than as an absent record, and the response names every selector attempted. That last point is the critical disambiguation rule for interpreting results, and it is stated plainly.

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?

The scoping statement and the multi-part return summary are front-loaded, and the alternative tool is named at the end where it reads as a hand-off. The first sentence is long and carries three nested clause lists, which makes it dense on a first pass, but no sentence is filler.

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, so the description must describe results, and it does: it names the fields reported for each of SPF, DKIM and DMARC. Combined with the failure-reporting convention and selector behavior, an agent has everything needed to call it and interpret the answer.

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 both parameters are already documented, making 3 the baseline. The description goes beyond it by explaining WHY selectors must be supplied (they can't be listed from DNS) and by stating the default set size and that the result echoes every selector tried — semantics the schema does not carry.

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 resource ("look up a domain's email authentication records") and enumerates exactly what is returned: SPF terms and lookup count, DKIM key type/size per selector, DMARC policy and inheritance. It explicitly distinguishes itself from check_spoofability by saying it reports "with no grade," so an agent can separate the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit alternative and the condition that selects it: "For a spoofing-risk grade use check_spoofability instead." It also explains the decision point for the optional parameter — pass selectors when known, omit them to try 15 common ones — which is the main invocation ambiguity for this 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