Skip to main content
Glama

DMARC/SPF checker + is this email spoofed

Is this email spoofed? Check its headers

check_email_headers
Read-onlyIdempotent

Email spoofing and phishing check from raw headers: paste the headers of a message (Show original / View source, up to the first blank line). Reads SPF, DKIM and DMARC results from Authentication-Results, and flags From vs Return-Path / Reply-To / DKIM-domain mismatches. Returns a verdict (authenticated, suspicious, likely spoofed) and the red flags. Runs locally on the text, no lookups, nothing stored. Free, no login. Example: {"headers":"From: Bank alerts@bank.example\nReturn-Path: x@mailer.example\nAuthentication-Results: mx.google.com; spf=fail; dkim=none; dmarc=fail"}.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "headers": "From: Bank <alerts@bank.example>\nReturn-Path: <x@mailer.example>\nAuthentication-Results: mx.google.com; spf=fail; dkim=none; dmarc=fail"
    },
    "name": "check_email_headers"
  }
}

Input Schema

NameRequiredDescriptionDefault
headersYesThe raw email headers as received (everything before the first blank line).

Output Schema

NameRequiredDescriptionDefault
spfNo
dkimNo
fromNo
dmarcNo
errorNo
flagsNo
verdictNo
from_domainNo
dkim_domainsNo
received_hopsNo
reply_to_domainNo
return_path_domainNo
check_sender_domainNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly, openWorld=false, idempotent) by disclosing that processing is local with no lookups and nothing stored, that no login or payment is needed, the three possible verdicts, and the red-flag output. That is exactly the operational context an agent needs before sending message content.

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?

One dense, front-loaded paragraph that leads with what it is, then inputs, then outputs, then privacy. The inline example duplicates the schema's examples field, which is mild redundancy, but nothing else is wasted.

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 analysis tool with an output schema, nothing an agent needs is missing: input provenance, format limits, analysis method, verdict vocabulary, and privacy posture are all covered.

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% and the single parameter is already documented, but the description adds real meaning: where to obtain the header text, that it must be everything before the first blank line, and a worked example. Baseline would be 3; the sourcing guidance lifts it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: a spoofing/phishing check computed from raw email headers, with the exact signals examined (SPF, DKIM, DMARC, From vs Return-Path/Reply-To/DKIM-domain). It does not explicitly differentiate itself from the sibling check_dmarc, so it stops short of a 5.

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 clear usage context: paste headers obtained via 'Show original / View source', up to the first blank line, when investigating a suspected spoofed or phishing message. It offers no explicit exclusions or named alternative (e.g., when to use check_dmarc instead).

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