Skip to main content
Glama

ScorpTech x402 Tools

Email Parse

email_parse
Read-onlyIdempotent

Parse a raw email (.eml / RFC 5322 + MIME) for triage: decoded headers (RFC 2047), addresses, Received hop chain with relays, IPs, timestamps and delays, originating IP, Authentication-Results (SPF / DKIM / DMARC / ARC), DKIM-Signature domains and selectors, MIME part tree, attachments (name, type, size, SHA-256, risky extensions), text body and links (with anchor-text vs href domain mismatch). Adds phishing / spoofing indicators (From vs Return-Path / Reply-To misalignment, display-name spoofing, brand impersonation, auth failures, urgency language) and a 0-100 risk score. Returns JSON with: subject, from, to, cc, replyTo, returnPath, date, messageId. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/email-parse

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": "<raw>"
    },
    "name": "email_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawYesFull raw message source including headers
maxBodyCharsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds genuinely non-obvious operational context on top: the call costs $0.003 USDC per successful call via x402 on Base or Solana, and the same capability is reachable over HTTPS. That is exactly the payment/auth context an agent needs before invoking. It also discloses the output shape and the risk-scoring behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded correctly, opening with the verb and resource, and most of the dense enumeration earns its place. But it is a single unbroken wall of text, and the trailing 'Returns JSON with: subject, from, to, cc...' list is both redundant after the earlier enumeration and potentially misleading, since it names only eight top-level fields while the description promises attachments, MIME tree and a risk score.

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 carries the return-value burden and largely does so, covering headers, auth results, parts, indicators and risk score. Input requirements (full raw source, 5 MB cap in schema) are communicated. Gaps are minor: malformed-message behavior and the maxBodyChars truncation effect are unstated, and the final return-field list understates the actual response.

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 50%: `raw` is documented in the schema, while `maxBodyChars` has only bounds and a default with no explanation of truncation semantics. The description mentions extracted text body but never explains that body length is capped or how maxBodyChars affects the output. At the 50% threshold, the baseline of 3 is appropriate since the description neither adds nor badly neglects parameter meaning.

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 with unusual precision: parse a raw .eml / RFC 5322 + MIME message for triage, enumerating the artifacts it produces (decoded headers, Received hops, auth results, attachments, phishing indicators, risk score). An agent immediately knows what the tool does. However, it never distinguishes itself from the closely overlapping siblings email_auth and email_validate, so an agent cannot tell from this text which one to reach for when it only needs SPF/DKIM/DMARC results.

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 phrase 'for triage' implies the intended use case, and the input requirement (full raw source) is implied by 'Parse a raw email'. But there is no explicit when-to-use vs when-not guidance and no named alternative, even though email_auth and email_validate cover adjacent ground. 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.

Resources