Skip to main content
Glama

tempmo

Analyze email headers

analyze_email_headers
Read-only

Analyze raw email headers: relay hops with delays, SPF/DKIM/DMARC results, sender details and red flags (e.g. Reply-To differs from From, DMARC fail).

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
headersYesRaw headers (or the full raw message; parsing stops at the first blank line).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the read-only, no-side-effects profile is covered. The description adds useful behavioral context by naming the diagnostics it reports (delays, SPF/DKIM/DMARC verdicts, red-flag heuristics). However, it never clarifies whether SPF/DKIM/DMARC evaluation is done purely from header content or involves live DNS resolution — an important distinction given a dns_lookup sibling and the closed-world annotation.

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?

One sentence, front-loaded with the verb and resource, followed by the concrete output catalogue. Every clause carries information; there is no filler or repetition of the title.

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?

With no output schema, the description compensates well by listing what the analysis returns (hops, auth verdicts, sender details, red flags). For a single-parameter, read-only tool this is close to sufficient; the only real gap is whether authentication checks involve network lookups.

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?

There is a single parameter with 100% schema description coverage, and the schema already explains that full raw messages are accepted with parsing stopping at the first blank line. The description adds no additional parameter semantics, which is acceptable at this coverage level but earns only the baseline.

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 definition gives a specific verb and resource ('Analyze raw email headers') and enumerates the concrete findings produced: relay hops with delays, SPF/DKIM/DMARC results, sender details, and red flags. That enumeration distinguishes it from generic siblings like read_email or check_email. It stops short of naming an alternative explicitly, so it is clear but not sibling-differentiating.

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?

Usage is only implied: an agent can infer it should call this when it holds raw header text and wants authentication/relay diagnostics. There is no explicit when-to-use statement and no mention of when a sibling (e.g. check_email) would be the better choice.

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