{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "com.apikeg/mail-preflight",
  "title": "MailPreflight Email QA & Deliverability API",
  "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.",
  "version": "1.0.0",
  "transports": [
    {
      "type": "streamable-http",
      "url": "https://mail-preflight.apikeg.com/mcp"
    }
  ],
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": true
  },
  "authentication": {
    "required": false,
    "schemes": [
      "x402",
      "bearer",
      "none"
    ],
    "notes": "Zero-signup x402 is primary: initialize, tools/list, resources/*, and prompts/* are free, and paid tools settle inline via HTTP 402 (x402 v2 USDC). Alternatively, pass Authorization: Bearer ak_live_... with an active $5/$20/$50 monthly subscription from https://apikeg.com/account."
  },
  "payment": {
    "protocol": "x402",
    "version": 2,
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "manifestUrl": "https://mail-preflight.apikeg.com/.well-known/x402.json",
    "freeDiscovery": true
  },
  "documentation": {
    "landingPage": "https://mail-preflight.apikeg.com/",
    "llmsTxt": "https://mail-preflight.apikeg.com/llms.txt",
    "llmsFullTxt": "https://mail-preflight.apikeg.com/llms-full.txt",
    "openApi": "https://mail-preflight.apikeg.com/openapi.json",
    "apiCatalog": "https://mail-preflight.apikeg.com/.well-known/api-catalog"
  },
  "tools": [
    {
      "name": "audit_email_template",
      "title": "Audit Outbound Email Template",
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.003",
        "unitDescription": "per email template preflight audit"
      },
      "restEndpoint": "https://mail-preflight.apikeg.com/v1/audit-email-template",
      "docUrl": "https://mail-preflight.apikeg.com/tools/audit-email-template"
    },
    {
      "name": "extract_plain_text_fallback",
      "title": "Extract Plain-Text MIME Fallback",
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.001",
        "unitDescription": "per HTML-to-plain-text MIME fallback conversion"
      },
      "restEndpoint": "https://mail-preflight.apikeg.com/v1/extract-plain-text-fallback",
      "docUrl": "https://mail-preflight.apikeg.com/tools/extract-plain-text-fallback"
    }
  ]
}