Skip to main content
Glama
@intelliacore/mcp-afip

@intelliacore/mcp-afip

by HamzaQai

afip_inspect_email_eml

Inspect raw .eml files offline to detect SPF/DKIM/DMARC failures, BEC spoofing, malicious link domains, and fake invoice signals without network access or API keys.

Instructions

Zero-network passive forensic analysis of a raw .eml email (RFC 5322 headers + MIME body). Detects SPF/DKIM/DMARC authentication failures, Reply-To / Return-Path / From display-name BEC spoofing, malicious link domains, and embedded fake RIB/invoice signals. Works without AFIP_API_KEY.

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": {
      "raw_eml": "<raw_eml>"
    },
    "name": "afip_inspect_email_eml"
  }
}

Input Schema

NameRequiredDescriptionDefault
raw_emlYesFull raw .eml source including RFC 5322 headers (Authentication-Results, From, Reply-To, Received) and body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: 'zero-network' and 'passive' tell the agent nothing is fetched, clicked, or sent, and 'works without AFIP_API_KEY' removes an auth precondition the agent might otherwise block on. It stops short of describing the response shape or any limits (the 500KB cap appears only in the schema).

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 sentence with no filler; each clause maps to a real capability. It is jargon-heavy and slightly over-packed, but nothing is redundant and the capability overview comes before the detection-list detail.

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 read-only analyzer with no annotations and no output schema, the definition covers the critical unknowns: offline behavior, no API key required, and the categories of findings. The remaining gap is that it never sketches what the result contains, which the agent needs since no output schema exists to explain return values.

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?

Single parameter with 100% schema coverage, so baseline is 4. The description still adds meaning by specifying that the input must include RFC 5322 headers and a MIME body and by naming the headers that drive detection (Authentication-Results, From, Reply-To, Received), which tells the agent the analysis degrades if those headers are stripped.

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 ('passive forensic analysis of a raw .eml email') and enumerates the exact signal classes it surfaces (SPF/DKIM/DMARC failures, Reply-To/Return-Path/From spoofing, malicious link domains, fake RIB/invoice signals). The '.eml' artifact scope implicitly separates it from siblings such as afip_inspect_sms_whatsapp and afip_inspect_rib_or_invoice, which take different artifact types.

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 this is the tool for analyzing a suspicious email file. There is no explicit when-to-use statement, no exclusion ('do not use for SMS/WhatsApp exports'), and no pointer to which sibling to call for other artifact types. The 'works without AFIP_API_KEY' note is a useful prerequisite clarification but is not routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.