Skip to main content
Glama

DNSai Free DNS Tools

SPF/DMARC Record Validator

validate
Read-only

Validate the SYNTAX of an SPF or DMARC record string (no DNS lookup) — returns valid/invalid, a score, a letter grade, and a parsed breakdown. Use when the user pastes an SPF/DMARC record and asks "is this correct?".

Input Schema

NameRequiredDescriptionDefault
typeNoRecord type. Default auto-detect.
recordYesThe raw SPF or DMARC record to validate, e.g. "v=spf1 include:_spf.google.com ~all".

Output Schema

NameRequiredDescriptionDefault
dataNoClean machine values (DNS/WHOIS tools).
usageNo
resultNoRaw engine data.
sourceYesDeep link on dnsai.com.
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly and closed-world, so the safety profile is covered; the description adds the meaningful behavioral fact that no DNS lookup occurs, which is exactly the distinction an agent needs. It also previews the response shape (valid/invalid, score, grade, parsed breakdown), though that partly duplicates the existing output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the scope constraint and followed by the trigger condition. No filler or repetition.

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

Completeness4/5

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

For a two-param read-only validator with an output schema, the description covers what it does, what it doesn't do (DNS), and when to reach for it. The only gap is not explicitly contrasting with DNS-based sibling tools.

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 coverage is 100%, so both the record string and the spf/dmarc/auto enum are fully documented in the schema. The description adds nothing about the type parameter or auto-detection behavior, 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 precise verb (Validate) and resource (SPF/DMARC record string) and immediately bounds scope to SYNTAX with 'no DNS lookup'. This distinguishes it from DNS-performing siblings like spf_analyze and dmarc_check without needing the 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?

Gives a concrete trigger: 'Use when the user pastes an SPF/DMARC record and asks "is this correct?"'. That is clear usage context, but it never names the alternative DNS-based tools (spf_analyze, dmarc_check) that an agent might otherwise pick, so routing is implied rather than explicit.

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