{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "schemaVersion": "1.0",
  "name": "MailPreflight Email QA & Deliverability API",
  "humanReadableId": "apikeg/mail-preflight",
  "agentVersion": "1.0.0",
  "description": "Catch broken merge tags, Gmail 102KB clipping, Outlook CSS bugs, and spam triggers before your agent hits send. Replaces brittle regexes and heavyweight headless browsers with a <15ms deterministic HTML/CSS & deliverability parser covering Outlook Word VML/ghost-table quirks, 6 ESP placeholder syntaxes, phishing host-mismatch checks, and RFC 5322 plain-text conversion.",
  "provider": {
    "name": "API Keg",
    "url": "https://apikeg.com"
  },
  "capabilities": {
    "mcpVersion": "2025-06-18",
    "x402Version": 2,
    "streaming": false,
    "supportedMessageParts": [
      "json",
      "text"
    ]
  },
  "supportedInterfaces": [
    {
      "url": "https://mail-preflight.apikeg.com/mcp",
      "protocolBinding": "MCP-STREAMABLE-HTTP",
      "protocolVersion": "2025-06-18"
    },
    {
      "url": "https://mail-preflight.apikeg.com/openapi.json",
      "protocolBinding": "OPENAPI-REST",
      "protocolVersion": "3.1.0"
    },
    {
      "url": "https://mail-preflight.apikeg.com/.well-known/api-catalog",
      "protocolBinding": "RFC9727-LINKSET",
      "protocolVersion": "1.0"
    }
  ],
  "defaultInputModes": [
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/markdown",
    "text/html"
  ],
  "skills": [
    {
      "id": "audit_email_template",
      "name": "Audit Outbound Email Template",
      "description": "Runs a full pre-send deliverability, merge-tag, link-hygiene, Gmail 102KB clipping, and cross-client CSS compatibility audit (Outlook Windows, Gmail, Apple Mail Dark Mode) on an HTML email. Why call instead of DIY: Audits 30+ email-client CSS quirks, 6 ESP merge syntaxes, and phishing/spam heuristics in <10ms for $0.003 without maintaining Can-I-Email rulesets. Pricing: $0.003 USD per email template preflight audit (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "marketing-ops",
        "email-deliverability",
        "developer-tools",
        "revops"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.003",
        "unitDescription": "per email template preflight audit"
      },
      "documentationUrl": "https://mail-preflight.apikeg.com/tools/audit-email-template"
    },
    {
      "id": "extract_plain_text_fallback",
      "name": "Extract Plain-Text MIME Fallback",
      "description": "Converts an HTML email into a clean, RFC 5322-wrapped text/plain MIME companion, preserving CTA links inline as 'Label (https://...)' and stripping invisible &#847; / &zwnj; preheader padding hacks. Why call instead of DIY: Strips email-specific &zwnj;/&#847; preheader spacers and formats multi-column/CTA HTML cleanly in <5ms for $0.001 instead of naive strip-tags regexes. Pricing: $0.001 USD per HTML-to-plain-text MIME fallback conversion (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "marketing-ops",
        "email-deliverability",
        "developer-tools",
        "revops"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.001",
        "unitDescription": "per HTML-to-plain-text MIME fallback conversion"
      },
      "documentationUrl": "https://mail-preflight.apikeg.com/tools/extract-plain-text-fallback"
    }
  ]
}