Skip to main content
Glama

validate_dmarc_record

Read-onlyIdempotent

Check if a pasted DMARC record is valid, correct, or safe. Get parsed tags, level'd findings, and validity without DNS lookup.

Instructions

Use this when the user pastes a DMARC record and asks whether it is valid, correct or safe. Validate a pasted DMARC record: parsed tags, level'd findings, and whether it is valid. No DNS lookup — pass the record string itself. upgrade_record previews a stronger policy and is capped at p=quarantine: a pasted record carries no alignment evidence, and p=reject is unlocked only by aggregate-report evidence over a full reporting window (monitoring), never by a scan. Present any returned record verbatim.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recordYesThe DMARC record text to validate, e.g. 'v=DMARC1; p=none; rua=mailto:reports@example.com'. The record value only — not the _dmarc hostname it is published at.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.1
    • addedInput schema / properties / record / description
      Added value: +"The DMARC record text to validate, e.g. 'v=DMARC1; p=none; rua=mailto:reports@example.com'. The record value only — not the _dmarc hostname it is published at."
  2. First observedv0.1.0

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, and non-destructive behavior, and the description adds further non-obvious facts: no DNS lookup is performed, the output grades findings by level, and a pasted record cannot unlock p=reject. This is substantive behavioral context beyond the annotations.

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 key points are front-loaded: use case first, then what validation returns, then the no-DNS-lookup constraint. The upgrade_record caveat is somewhat long and tangential but carries useful routing information, so it earns its place even if it could be tightened.

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?

For a single-parameter read-only validation tool, the description covers the trigger, the accepted input form, the output categories, and a notable policy limitation. No output schema exists, but the description tells the agent what to expect and to present any returned record verbatim.

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?

The schema already describes the single parameter thoroughly, including an example and the distinction between the record value and the _dmarc hostname; schema coverage is 100%. The description only restates 'pass the record string itself', so it adds little additional parameter meaning.

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?

The description opens with a specific use case (pasted DMARC record asked about validity/correctness/safety) and names the concrete outputs: parsed tags, level'd findings, and validity. It also states what the tool does not do ('No DNS lookup'), which distinguishes it from check_record and scan_domain.

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?

It explicitly says to use this when the user pastes a DMARC record string, and it contrasts with upgrade_record by explaining when stronger-policy previews are off-limits (p=reject requires reporting-window evidence). This gives the agent clear routing criteria versus related tools.

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