{
  "x402Version": 2,
  "service": "dns-email-security",
  "description": "Audit domain SPF/DMARC/MX email security and verify global DNS propagation across Cloudflare, Google, and Quad9 DoH.",
  "resources": [
    {
      "url": "https://dns-email-security.restockalarm.workers.dev/v1/audit",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Audit a domain's SPF, DMARC, and MX records via Cloudflare DoH and return a 0-100 email security score and spoof risk. ($0.01 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "dns",
        "email",
        "security",
        "dmarc",
        "spf"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "domain": "cloudflare.com"
            },
            "output": {
              "example": {
                "domain": "cloudflare.com",
                "score": 95,
                "spoof_risk": "low",
                "mx_count": 5
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/dns_email_security",
      "endpoint": "https://dns-email-security.restockalarm.workers.dev/mcp",
      "tool": "dns_email_security",
      "description": "Audit a domain's SPF, DMARC, and MX records via Cloudflare DoH and return a 0-100 email security score and spoof risk. ($0.01 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "dns",
        "email",
        "security",
        "dmarc",
        "spf",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "dns_email_security",
              "arguments": {
                "domain": "cloudflare.com"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://dns-email-security.restockalarm.workers.dev/v1/dns-propagation",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Query Cloudflare, Google, and Quad9 DoH resolvers in parallel to verify DNS record answers, TTLs, deviations, and propagation consistency. ($0.01 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "dns",
        "propagation",
        "doh",
        "cloudflare",
        "google",
        "quad9"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "domain": "cloudflare.com",
              "type": "A"
            },
            "output": {
              "example": {
                "domain": "cloudflare.com",
                "type": "A",
                "consistent": true,
                "majorityAnswers": [
                  "104.16.132.229"
                ]
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "A",
                    "AAAA",
                    "MX",
                    "TXT",
                    "NS",
                    "CNAME"
                  ]
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/dns_propagation",
      "endpoint": "https://dns-email-security.restockalarm.workers.dev/mcp",
      "tool": "dns_propagation",
      "description": "Query Cloudflare, Google, and Quad9 DoH resolvers in parallel to verify DNS record answers, TTLs, deviations, and propagation consistency. ($0.01 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "dns",
        "propagation",
        "doh",
        "cloudflare",
        "google",
        "quad9",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "dns_propagation",
              "arguments": {
                "domain": "cloudflare.com",
                "type": "A"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "A",
                    "AAAA",
                    "MX",
                    "TXT",
                    "NS",
                    "CNAME"
                  ]
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://dns-email-security.restockalarm.workers.dev/v1/domain-full-audit",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Full security dossier for a domain before trusting it: DNS A/MX/SPF/DMARC/CAA, RDAP registration age and HTTPS security headers, scored 0-100 with prioritized findings. ($0.05 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "50000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "domain",
        "security",
        "dns",
        "dmarc",
        "rdap",
        "headers",
        "dossier"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "domain": "example.com"
            },
            "output": {
              "example": {
                "domain": "example.com",
                "score": 72,
                "findings": []
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/domain_full_audit",
      "endpoint": "https://dns-email-security.restockalarm.workers.dev/mcp",
      "tool": "domain_full_audit",
      "description": "Full security dossier for a domain before trusting it: DNS A/MX/SPF/DMARC/CAA, RDAP registration age and HTTPS security headers, scored 0-100 with prioritized findings. ($0.05 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "50000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "domain",
        "security",
        "dns",
        "dmarc",
        "rdap",
        "headers",
        "dossier",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "domain_full_audit",
              "arguments": {
                "domain": "example.com"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://dns-email-security.restockalarm.workers.dev/v1/dns-lite",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Lite domain check: resolvable, MX, SPF and DMARC via DNS-over-HTTPS (Cloudflare with Google fallback), quick verdict. Pass domain. ($0.005 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "5000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "dns-email-security"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "domain": "example.com"
            },
            "output": {
              "example": {}
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/dns_lite",
      "endpoint": "https://dns-email-security.restockalarm.workers.dev/mcp",
      "tool": "dns_lite",
      "description": "Lite domain check: resolvable, MX, SPF and DMARC via DNS-over-HTTPS (Cloudflare with Google fallback), quick verdict. Pass domain. ($0.005 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "5000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "dns-email-security",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "dns_lite",
              "arguments": {
                "domain": "example.com"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://dns-email-security.restockalarm.workers.dev/v1/dns-batch",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Batch domain check: up to 10 comma-separated domains, each with resolvable/MX/SPF/DMARC. Per-domain errors degrade gracefully. ($0.03 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "30000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "dns-email-security"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "domains": "example.com,cloudflare.com"
            },
            "output": {
              "example": {}
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domains": {
                  "type": "string"
                }
              },
              "required": [
                "domains"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/dns_batch",
      "endpoint": "https://dns-email-security.restockalarm.workers.dev/mcp",
      "tool": "dns_batch",
      "description": "Batch domain check: up to 10 comma-separated domains, each with resolvable/MX/SPF/DMARC. Per-domain errors degrade gracefully. ($0.03 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "30000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "dns-email-security",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "dns_batch",
              "arguments": {
                "domains": "example.com,cloudflare.com"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domains": {
                  "type": "string"
                }
              },
              "required": [
                "domains"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://dns-email-security.restockalarm.workers.dev/v1/domain-verdict",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Combined domain verdict: DNS hardening (MX/SPF/DMARC) + agent visibility (robots.txt AI bots) in one OK/WARN/AVOID answer. Pass domain. ($0.05 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "50000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "dns-email-security"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "domain": "example.com"
            },
            "output": {
              "example": {}
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/domain_verdict",
      "endpoint": "https://dns-email-security.restockalarm.workers.dev/mcp",
      "tool": "domain_verdict",
      "description": "Combined domain verdict: DNS hardening (MX/SPF/DMARC) + agent visibility (robots.txt AI bots) in one OK/WARN/AVOID answer. Pass domain. ($0.05 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "50000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "dns-email-security",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "domain_verdict",
              "arguments": {
                "domain": "example.com"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                }
              },
              "required": [
                "domain"
              ]
            }
          }
        }
      }
    }
  ]
}