Skip to main content
Glama

Mail security grade

check_mail_security
Read-onlyIdempotent

Grade one domain's email authentication and list every check: SPF (single record, the 10 DNS-lookup limit across includes, the all qualifier), DMARC (policy, inheritance from the organizational domain, pct, report addresses), MTA-STS, TLS-RPT, BIMI, DANE and null MX. The level is strong, fair, weak, no_mail (domain declares it sends no mail) or none (no MX, SPF or DMARC at all).

Use it for questions about spoofing, deliverability or a DMARC rollout. lookup_target gives only the overall grade; this tool gives the status and a one-line finding for each check.

Behavior: reads public DNS only and never connects to the domain's mail servers, so it cannot test SMTP TLS, certificates or whether a mailbox exists. Usually under 2 s.

Input Schema

NameRequiredDescriptionDefault
domainYesregistered domain or subdomain whose mail setup to grade, e.g. example.com; Unicode or punycode. Not an email address and not a mail server host name

Output Schema

NameRequiredDescriptionDefault
levelYesstrong, fair, weak, no_mail, or none when the domain has no mail setup
checksYes
domainYes
details_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / checks / items / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description goes further with genuinely non-obvious behavioral facts: it reads public DNS only, never connects to mail servers, and therefore cannot test SMTP TLS, certificates, or mailbox existence. It also commits to a latency bound (under 2 s), which helps an agent decide between one bulk call and many.

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 action, then scope, then routing guidance, then limits — a logical order with no filler sentences. The check enumeration is dense but every clause maps to a real output field, so only its length keeps it from a 5.

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?

An output schema exists, so return-shape explanation is not required; the description instead supplies what the schema cannot — the meaning of the grade levels (strong/fair/weak/no_mail/none) and the tool's hard limitations. Nothing an agent needs to invoke or interpret it correctly is missing.

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 the single 'domain' parameter is already well documented in the schema (registered domain or subdomain, not an email address or mail server host). The description adds no additional input semantics, so the 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?

States a specific verb (grade) and resource (one domain's email authentication), then enumerates the exact checks covered (SPF limit/all qualifier, DMARC inheritance/pct, MTA-STS, TLS-RPT, BIMI, DANE, null MX). It explicitly distinguishes itself from the sibling lookup_target, so an agent can route correctly 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 explicit trigger scenarios ('spoofing, deliverability or a DMARC rollout') and a direct comparison to the alternative: lookup_target gives only the overall grade, while this tool returns per-check status and a one-line finding. The when-to-use-this-vs-sibling decision is fully resolved.

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