Skip to main content
Glama

Email header analyzer

analyze_email_headers
Read-onlyIdempotent

Read the raw headers of a received email: SPF, DKIM and DMARC results, alignment, the delivery path and delays. Use when someone pastes headers and asks why a message went to spam or failed authentication.

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 (the part above the message body), copied from "Show original" in Gmail or "View source" in Outlook.

Output Schema

NameRequiredDescriptionDefault
hopsYesHow many servers the message passed through.
outOfYesThe maximum score: the number of checks run.
scoreYesChecks passed (half points for warnings).
checksYesOne row per authentication or delivery check.
toolUrlYesThe same check as a free web tool on pipefire.ai.
fromDomainYesThe sender domain from the From header.
totalSecondsYesDelivery time end to end, when the timestamps allow.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / checks / description
      Added value: +"One row per authentication or delivery check."
    • addedOutput schema / properties / checks / items / properties / check / description
      Added value: +"What was checked, e.g. SPF, DKIM, DMARC or alignment."
    • addedOutput schema / properties / checks / items / properties / finding / description
      Added value: +"What the headers show, in one sentence."
    • addedOutput schema / properties / checks / items / properties / fix / description
      Added value: +"What to change. Empty when nothing needs doing."
    • addedOutput schema / properties / outOf / description
      Added value: +"The maximum score: the number of checks run."
  2. Changed2 schema fields changed
    • changedInput schema / properties / headers / description
      Previous value: -"The raw email headers (the part above the message body)."New value: +"The raw email headers (the part above the message body), copied from \"Show original\" in Gmail or \"View source\" in Outlook."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "checks": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "check": {
      +            "type": "string"
      +          },
      +          "finding": {
      +            "type": "string"
      +          },
      +          "fix": {
      +            "type": "string"
      +          },
      +          "state": {
      +            "enum": [
      +              "pass",
      +              "warn",
      +              "fail"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "check",
      +          "state",
      +          "finding",
      +          "fix"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "fromDomain": {
      +      "description": "The sender domain from the From header.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "hops": {
      +      "description": "How many servers the message passed through.",
      +      "type": "integer"
      +    },
      +    "outOf": {
      +      "type": "number"
      +    },
      +    "score": {
      +      "description": "Checks passed (half points for warnings).",
      +      "type": "number"
      +    },
      +    "toolUrl": {
      +      "description": "The same check as a free web tool on pipefire.ai.",
      +      "type": "string"
      +    },
      +    "totalSeconds": {
      +      "description": "Delivery time end to end, when the timestamps allow.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "fromDomain",
      +    "score",
      +    "outOf",
      +    "checks",
      +    "hops",
      +    "totalSeconds",
      +    "toolUrl"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, non-destructive, closed-world read. The description adds useful behavior beyond them: it discloses the analysis dimensions (authentication results, alignment, delivery path, delays) an agent will get back. Return format details are left to the output schema, which exists.

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 with zero filler: the capability and the enumerated outputs come first, the usage trigger second. Nothing is redundant or buried.

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 one-parameter read tool with full schema coverage, rich annotations and an output schema, the description supplies everything missing: what it analyzes, what data it reports, and the situation that prompts a call.

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% and the single parameter's description already explains exactly what to paste and where to get it (Gmail 'Show original', Outlook 'View source'). The description adds no further format or parsing guidance, so the schema carries this dimension.

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 — 'Read the raw headers of a received email' — and enumerates what is extracted (SPF, DKIM, DMARC results, alignment, delivery path, delays). Its scope (a received message's headers) implicitly separates it from the domain-level check_spf/check_dkim/check_dmarc siblings, though it does not name an alternative.

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 someone pastes headers and asks why a message went to spam or failed authentication.' That covers the primary scenario clearly, but there are no stated exclusions or pointers to the sibling checkers for domain-configuration questions.

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.