Skip to main content
Glama

parse_dmarc_report

Read-onlyIdempotent

Parse DMARC aggregate XML reports into structured JSON with policy, per-source delivery, and SPF/DKIM alignment. Accepts raw XML or base64 gzip input for programmatic processing.

Instructions

Read-only parser for a DMARC aggregate (RUA) XML report (RFC 7489). Turns the raw XML that mailbox providers send into structured JSON: report metadata (org, report id, date range), the published policy (p/sp/adkim/aspf/pct), and one row per sending source with source IP, message count, evaluated disposition (none/quarantine/reject), aligned SPF/DKIM results, and pass/fail totals. Provide the report as xml (raw text) or gzipBase64 (a base64-encoded .gz attachment). Use to programmatically read DMARC reports an agent fetched from the rua@ mailbox; the report is parsed in-memory and not stored. No auth, no side effects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xmlNoRaw DMARC aggregate report XML (root <feedback>), max 5 MB
gzipBase64NoBase64-encoded gzip of the report (.gz attachment); used when xml is omitted
Behavior5/5

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

The description goes beyond annotations by explaining that reports are parsed in-memory and not stored, and that no auth is needed. It details the output structure (metadata, policy, per-source rows) which is valuable for understanding behavior.

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?

The description is concise yet comprehensive, covering purpose, output, input, and use case in a logical flow. Every sentence adds value without redundancy.

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?

Given the absence of an output schema, the description provides sufficient detail about the output structure. It also covers input options, side-effect profile, and use case, making it complete for an agent to decide when and how to use the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters are fully described in the schema, and the description clarifies that they are alternative ways to provide the report (raw XML vs. base64 gzip). It adds practical guidance on usage and limits, making the parameters unambiguous.

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 clearly states that the tool parses DMARC aggregate XML reports into structured JSON. It distinguishes itself from sibling tools that perform scans or tests by explicitly focusing on reading and parsing reports.

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 states when to use the tool: to programmatically read DMARC reports fetched from the rua@ mailbox. It also provides practical notes like parsing in-memory, no authentication required, and no side effects, giving clear guidance on context and constraints.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RoscoNL/intodns-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server