{
  "openapi": "3.1.0",
  "info": {
    "title": "VendorParity Enterprise CCaaS, MDR, Colocation & Fiber TCO API",
    "version": "2.0.0",
    "description": "Public, read-only deterministic TCO modeling API and 6-tool Streamable HTTP MCP server for AI Contact Centers (CCaaS), Managed Detection & Response (MDR), Data Center Colocation, Dedicated Fiber DIA/SASE, and MSA Contract Redline Auditing.",
    "contact": {
      "name": "VendorParity Research Desk",
      "email": "research@vendorparity.com",
      "url": "https://vendorparity.com/official/"
    }
  },
  "servers": [
    {
      "url": "https://vendorparity.com",
      "description": "Production Cloudflare Edge"
    }
  ],
  "paths": {
    "/api/tco": {
      "get": {
        "operationId": "getTcoCalculation",
        "summary": "Compute CCaaS, MDR, Seat Breakeven, Colocation/Fiber DIA, or MSA Redline exposure via query parameters",
        "parameters": [
          { "name": "type", "in": "query", "schema": { "type": "string", "enum": ["ccaas", "mdr", "seat_breakeven", "colocation_fiber", "contract_redline"], "default": "ccaas" } },
          { "name": "agents", "in": "query", "schema": { "type": "integer", "default": 100 } },
          { "name": "peak", "in": "query", "schema": { "type": "number", "default": 70 } },
          { "name": "tier", "in": "query", "schema": { "type": "string", "enum": ["core", "omni_wfm", "full_ai"], "default": "omni_wfm" } },
          { "name": "carrier", "in": "query", "schema": { "type": "string", "enum": ["bundled", "byoc"], "default": "bundled" } },
          { "name": "term", "in": "query", "schema": { "type": "integer", "enum": [12, 24, 36, 60], "default": 36 } },
          { "name": "endpoints", "in": "query", "schema": { "type": "integer", "default": 250 } },
          { "name": "servers", "in": "query", "schema": { "type": "integer", "default": 38 } },
          { "name": "retention", "in": "query", "schema": { "type": "integer", "enum": [90, 180, 365], "default": 90 } },
          { "name": "edr", "in": "query", "schema": { "type": "string", "enum": ["none", "crowdstrike", "defender_e5", "sentinelone", "sophos"], "default": "defender_e5" } },
          { "name": "kw", "in": "query", "schema": { "type": "integer", "default": 20 } },
          { "name": "cabinets", "in": "query", "schema": { "type": "integer", "default": 4 } },
          { "name": "xc", "in": "query", "schema": { "type": "integer", "default": 4 } },
          { "name": "metro_tier", "in": "query", "schema": { "type": "string", "enum": ["tier1_constrained", "tier2_hub"], "default": "tier1_constrained" } },
          { "name": "fiber_bandwidth", "in": "query", "schema": { "type": "string", "enum": ["1gbps", "10gbps"], "default": "1gbps" } },
          { "name": "fiber_access", "in": "query", "schema": { "type": "string", "enum": ["on_net", "off_net"], "default": "on_net" } },
          { "name": "acv", "in": "query", "schema": { "type": "integer", "default": 240000 } }
        ],
        "responses": {
          "200": {
            "description": "Structured TCO or redline audit breakdown JSON"
          }
        }
      },
      "post": {
        "operationId": "postTcoCalculation",
        "summary": "Compute CCaaS, MDR, seat breakeven, colocation/fiber TCO, or contract redline audit via JSON body",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": { "type": "string", "enum": ["ccaas", "mdr", "seat_breakeven", "colocation_fiber", "contract_redline"] },
                  "totalAgents": { "type": "integer" },
                  "peakConcurrentPct": { "type": "number" },
                  "tier": { "type": "string", "enum": ["core", "omni_wfm", "full_ai"] },
                  "monthlyVoiceMinutes": { "type": "integer" },
                  "monthlyAiInteractions": { "type": "integer" },
                  "carrierMode": { "type": "string", "enum": ["bundled", "byoc"] },
                  "termMonths": { "type": "integer", "enum": [12, 24, 36, 60] },
                  "endpoints": { "type": "integer" },
                  "serversAndCloudWorkloads": { "type": "integer" },
                  "logRetentionDays": { "type": "integer", "enum": [90, 180, 365] },
                  "compliance": { "type": "string", "enum": ["standard", "soc2_iso", "hipaa_pci", "cmmc_fedramp"] },
                  "existingEdr": { "type": "string", "enum": ["none", "crowdstrike", "defender_e5", "sentinelone", "sophos"] },
                  "powerKw": { "type": "integer" },
                  "cabinets": { "type": "integer" },
                  "crossConnects": { "type": "integer" },
                  "metroTier": { "type": "string", "enum": ["tier1_constrained", "tier2_hub"] },
                  "fiberBandwidth": { "type": "string", "enum": ["1gbps", "10gbps"] },
                  "fiberAccess": { "type": "string", "enum": ["on_net", "off_net"] },
                  "saseSites": { "type": "integer" },
                  "saseUsers": { "type": "integer" },
                  "annualContractValueUsd": { "type": "integer" },
                  "selectedTraps": { "type": "array", "items": { "type": "string" } },
                  "clauseText": { "type": "string" }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Structured TCO or redline breakdown JSON" }
        }
      }
    },
    "/mcp": {
      "get": {
        "operationId": "getMcpServerInfo",
        "summary": "Inspect VendorParity Streamable HTTP MCP v2.0 server capabilities and 6-tool list",
        "responses": {
          "200": { "description": "MCP server metadata" }
        }
      },
      "post": {
        "operationId": "callMcpJsonRpc",
        "summary": "Execute MCP JSON-RPC 2.0 methods (initialize, tools/list, tools/call across 6 tools)",
        "responses": {
          "200": { "description": "JSON-RPC 2.0 response payload" }
        }
      }
    }
  }
}
