Skip to main content
Glama

Sendfinery

Analyze email headers

analyze_email_headers
Read-only

Read an email's header and report how the message was delivered.

Headers are parsed in memory and not stored. Nothing is looked up in DNS: the verdicts are the ones the receiving server wrote.

Returns subject, date and message_id; from_domain, return_path_domain and dkim_domains; hops (the Received headers oldest first: from_host, by_host, with_protocol, timestamp and delay_seconds since the previous hop); authserv_id and auth_results (the SPF, DKIM and DMARC verdicts of the topmost Authentication-Results header); alignment (spf_aligned, dkim_aligned: whether the From domain matches the Return-Path and a DKIM signature's d= domain; DMARC needs one); findings (level, code, text) and grade, the worst level among the findings.

Credits: 1 per call.

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 message header as text, from the first Received: line down to the blank line before the body (a mail program's 'Show original' or 'View message source'). A whole message is fine; the body is ignored. At most 200 KB.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, it discloses that parsing happens in memory with nothing stored, that no DNS lookups occur so verdicts are the receiver's own, and that each call costs 1 credit. That is meaningful extra context (privacy, network behavior, billing) not derivable from 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?

Front-loaded with purpose and constraints, then an organized enumeration of outputs. The long return-field inventory is partially redundant given an output schema exists, which keeps it from a 5, but ordering and phrasing are tight and waste-free.

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?

Privacy, network behavior, cost, and result semantics are all covered; with an output schema present, the return-value detail is bonus rather than necessity. The only real gap is explicit routing guidance against the sibling check_* tools, which is minor against the rest.

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 single parameter is fully documented in the schema (100% coverage, including format hints and the 200 KB cap), so the schema carries the meaning. The description adds nothing about the `headers` input, making 3 the correct baseline.

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?

States a specific verb and resource ('Read an email's header and report how the message was delivered') and immediately scopes it away from the DNS-lookup siblings with 'Nothing is looked up in DNS: the verdicts are the ones the receiving server wrote.' An agent can distinguish this from check_spf/check_dkim/check_dmarc without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The no-DNS statement implies the split (use this when you hold raw headers; use the check_* tools when you only have a domain), but the description never says so explicitly and names no alternative tool or exclusion. Usage is inferable rather than stated.

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.