Skip to main content
Glama

Analyze email headers

analyze_email_headers
Read-onlyIdempotent

Explain raw email headers in plain English: the Authentication-Results verdicts for SPF, DKIM and DMARC (with the domains each check covered), From vs Return-Path alignment, and the Received hop count. Paste the full headers ("Show original" in Gmail).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "headers": "<headers>"
    },
    "name": "analyze_email_headers"
  }
}

Input Schema

NameRequiredDescriptionDefault
headersYesThe raw email headers, pasted in full

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare this as a read-only, idempotent, non-destructive, closed-world operation, so the safety profile is covered. The description adds useful behavior detail by listing the analysis it performs (alignment comparison, hop counting) — effectively a return-value preview compensating for the missing output schema — but says nothing about handling malformed or truncated headers.

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 core action and followed by the concrete outputs and the input instruction. Every clause carries information; nothing is padding.

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 single-parameter read-only tool with no output schema, the description does the heavy lifting by enumerating the report contents, so an agent can predict what comes back. Only edge-case behavior (partial or malformed headers) is unaddressed.

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% for the single 'headers' parameter, so the baseline applies. The description reinforces that the whole header block is required ('pasted in full') and points to where to find it, which is a modest addition beyond the schema wording rather than new semantics.

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?

The description names a specific verb and resource ('Explain raw email headers') and enumerates exactly what it reports: SPF/DKIM/DMARC verdicts with covered domains, From vs Return-Path alignment, and Received hop count. It implicitly separates itself from live-check siblings like check_spf and check_dkim by specifying that it works on pasted raw headers, though it never names an alternative explicitly.

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?

It gives clear operating context ('Paste the full headers', with the 'Show original' pointer for Gmail), so an agent knows the required precondition. It stops short of saying when to prefer this over the per-protocol check tools or what to do when headers are unavailable.

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.