{
  "$schema": "https://w3c.github.io/model-context-protocol/schema/webmcp.json",
  "name": "SaaSStackDeals WebMCP Manifest",
  "version": "1.0.0",
  "site": "https://saasstackdeals.com",
  "description": "Browser-native Model Context Protocol (WebMCP) manifest for lifetime SaaS software discovery, break-even calculation, and recurring SaaS alternative evaluation.",
  "policies": {
    "affiliateDisclosure": "https://saasstackdeals.com/affiliate-disclosure/",
    "editorialPolicy": "https://saasstackdeals.com/editorial-policy/",
    "llmsGuidance": "https://saasstackdeals.com/llms.txt"
  },
  "tools": [
    {
      "name": "searchDeals",
      "description": "Search curated lifetime SaaS deals, categories, and blueprints by query or software type.",
      "parameters": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Software product name, category, or workflow keywords (e.g. 'crm', 'email marketing', 'WordHero')."
          },
          "category": {
            "type": "string",
            "description": "Optional category filter (e.g. 'AI Assistant', 'Content AI', 'Sales CRM')."
          },
          "maxPrice": {
            "type": "number",
            "description": "Optional maximum lifetime deal price in USD."
          }
        },
        "required": ["query"]
      },
      "returns": {
        "type": "object",
        "properties": {
          "source": { "type": "string" },
          "totalFound": { "type": "number" },
          "editorialNotice": { "type": "string" },
          "results": { "type": "array" }
        }
      }
    },
    {
      "name": "calculateBreakEven",
      "description": "Calculate software break-even timing and multi-year net savings between a recurring subscription and a lifetime deal.",
      "parameters": {
        "type": "object",
        "properties": {
          "monthlyCost": {
            "type": "number",
            "description": "Current monthly subscription price in USD."
          },
          "lifetimePrice": {
            "type": "number",
            "description": "Proposed one-time lifetime deal price in USD."
          },
          "years": {
            "type": "number",
            "description": "Expected time horizon in years (default: 3)."
          }
        },
        "required": ["monthlyCost", "lifetimePrice"]
      },
      "returns": {
        "type": "object",
        "properties": {
          "breakEvenMonths": { "type": "number" },
          "projectedSavings": { "type": "number" },
          "subscriptionCostOverPeriod": { "type": "number" },
          "verdict": { "type": "string" },
          "confidenceRating": { "type": "string" }
        }
      }
    },
    {
      "name": "getDealBySlug",
      "description": "Fetch complete structured details for a specific SaaS deal by product slug or name.",
      "parameters": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Product slug or name (e.g. 'wordhero', 'pismo', 'xinterview-ai')."
          }
        },
        "required": ["slug"]
      }
    },
    {
      "name": "getAlternativeLifetimeDeals",
      "description": "Find pay-once lifetime deal alternatives for standard monthly SaaS subscriptions (e.g., Notion, Calendly, Mailchimp, Zapier).",
      "parameters": {
        "type": "object",
        "properties": {
          "currentSoftware": {
            "type": "string",
            "description": "Name of recurring software to replace (e.g. 'Notion', 'Calendly', 'Mailchimp', 'Zapier')."
          }
        },
        "required": ["currentSoftware"]
      }
    },
    {
      "name": "listCategories",
      "description": "List all curated software categories and hub routes on SaaSStackDeals.",
      "parameters": {
        "type": "object",
        "properties": {}
      }
    }
  ],
  "declarativeForms": [
    {
      "toolname": "searchDeals",
      "selector": "#deal-search-form",
      "location": "/",
      "fields": {
        "query": "Software or category keyword to search"
      }
    },
    {
      "toolname": "calculateBreakEven",
      "selector": "#roi-calculator-form",
      "location": "/resources/saas-roi-calculator/",
      "fields": {
        "monthlyCost": "Monthly recurring subscription price in USD",
        "lifetimePrice": "One-time lifetime deal price in USD",
        "years": "Time horizon in years"
      }
    }
  ],
  "contextProviders": [
    {
      "route": "/deals/{slug}/",
      "contextType": "deal_review",
      "description": "Provides active deal pricing, replaceability targets, limits, refund window, and editorial review notes."
    },
    {
      "route": "/resources/saas-roi-calculator/",
      "contextType": "calculator_context",
      "description": "Provides break-even calculation parameters, assumptions, and risk thresholds."
    }
  ]
}
