{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "Flexicomm Electrical Services WebMCP Protocol Manifest",
  "version": "2026.3.0",
  "standard": "W3C Web Model Context Protocol (WebMCP) & WebML",
  "canonical_domain": "flexicomm-electrical.net",
  "description": "Statutory Residential, Landlord, Letting Agency, and Home Buyer Electrical Safety Inspection (EICR) WebMCP Capabilities Manifest with In-Browser WebML Diagnostic Intelligence across Mainland Scotland.",
  "entity": {
    "name": "Flexicomm Electrical Services",
    "telephone": "+44 7502 002918",
    "email": "info@flexicomm-electrical.net",
    "jurisdiction": "Scotland (Housing (Scotland) Act 2006 / Scottish Repairing Standard / BS 7671:2018+A2:2022)",
    "operating_hours": "08:00 - 18:00 (Standard) / 24/7 (Emergency Division)",
    "hard_boundaries": {
      "focus": "Domestic residential properties, private landlords, letting agents, and prospective pre-purchase home buyers across mainland Scotland.",
      "strictly_excluded": "Commercial contracting, industrial three-phase plants, factory automated lines.",
      "brand_clarification": "Exclusively dedicated to domestic residential electrical safety and statutory compliance; distinct from telecommunications platform flexicomm.net."
    }
  },
  "endpoints": {
    "booking_api": "https://flexicomm-electrical.net/api/submit-lead.php",
    "database": "https://flexicomm-electrical.net/data/scottish_towns_database.json",
    "agent_rules": "https://flexicomm-electrical.net/llms.txt",
    "capabilities": "https://flexicomm-electrical.net/.well-known/capabilities.json",
    "emergency_capabilities": "https://flexicomm-electrical.net/emergency/capabilities.json",
    "rewiring_capabilities": "https://flexicomm-electrical.net/rewiring/capabilities.json"
  },
  "pricing_catalog_2026": {
    "currency": "GBP",
    "base_tiers": {
      "1_bed": { "price": 149, "description": "1-Bedroom Flat or Domestic Property" },
      "2_bed": { "price": 189, "description": "2-Bedroom House or Flat" },
      "3_bed": { "price": 229, "description": "3-Bedroom Domestic Dwelling" },
      "4_bed": { "price": 269, "description": "4-Bedroom Domestic Dwelling" },
      "5_plus_bed": { "price": null, "description": "5+ Bedroom / HMO / Portfolio - Custom Quotation" }
    },
    "circuits": {
      "included_base": 10,
      "additional_circuit_rate": 10,
      "max_slider_circuits": 20
    },
    "addons": {
      "pat_testing": { "price": 50, "description": "Portable Appliance Testing (up to 10 landlord appliances)" },
      "interlinked_alarms": { "price": 75, "description": "Tolerable Standard interlinked smoke and heat alarm certification" }
    }
  },
  "tools": [
    {
      "name": "calculate_eicr_cost",
      "description": "Calculates the official fixed statutory EICR inspection fee across Scottish properties based on bedroom tier, consumer unit circuit count, and compliance add-ons.",
      "consequential": false,
      "parameters": {
        "type": "object",
        "properties": {
          "property_tier": {
            "type": "string",
            "enum": ["1-bed", "2-bed", "3-bed", "4-bed", "5-bed"],
            "description": "Property bedroom count tier"
          },
          "circuits_count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20,
            "default": 10,
            "description": "Total active consumer unit circuits (first 10 included; £10 per additional circuit up to 20)"
          },
          "include_pat": {
            "type": "boolean",
            "default": false,
            "description": "Whether to include PAT testing for up to 10 landlord appliances (+£50)"
          },
          "include_alarms": {
            "type": "boolean",
            "default": false,
            "description": "Whether to include Tolerable Standard interlinked smoke/heat alarm certification (+£75)"
          },
          "postcode": {
            "type": "string",
            "description": "Scottish property postcode (e.g. PA23, G12, EH3)"
          }
        },
        "required": ["property_tier"]
      }
    },
    {
      "name": "get_town_compliance_data",
      "description": "Retrieves granular statutory compliance profiles, DNO network operator (SPEN/SSEN), dominant architectural housing eras, characteristic diagnostic defects, HMO licensing thresholds, and local postal code sectors for 400+ Scottish mainland towns and city districts.",
      "consequential": false,
      "parameters": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Scottish town name, slug, or postal area code (e.g. 'paisley', 'dunoon', 'inverness', 'EH3', 'G12')"
          }
        },
        "required": ["query"]
      }
    },
    {
      "name": "diagnose_electrical_fault",
      "description": "Executes in-browser WebML (WebGPU/WASM) diagnostic triage to classify electrical faults, tripping breakers, thermal hazards, and earthing defects under BS 7671:2018+A2:2022 and Housing (Scotland) Act 2006. Allows humans and AI to specify property EICR tier, synchronizes statutory booking pricing, and automatically escalates critical C1 hazards to the 24/7 Emergency Division.",
      "consequential": false,
      "parameters": {
        "type": "object",
        "properties": {
          "symptom_description": {
            "type": "string",
            "description": "Natural language symptom description (e.g., 'shower trips RCD immediately', 'burning plastic smell near fusebox', 'wooden fusebox without RCD', 'no bonding wire on gas pipe')"
          },
          "property_tier": {
            "type": "string",
            "enum": ["1-bed", "2-bed", "3-bed", "4-bed", "5-bed"],
            "description": "Selects the statutory EICR property bedroom tier (1-bed £149, 2-bed £189, 3-bed £229, 4-bed £269, 5-bed Custom) and automatically synchronizes booking pricing.",
            "default": "2-bed"
          },
          "property_era": {
            "type": "string",
            "enum": ["victorian-tenement", "1950s-1980s-cavity", "modern-post-2000", "rural-stone-villa", "any"],
            "default": "any"
          },
          "has_rcd": {
            "type": "boolean",
            "default": true
          }
        },
        "required": ["symptom_description"]
      }
    },
    {
      "name": "check_landlord_compliance",
      "description": "Evaluates landlord legal standing under the Housing (Scotland) Act 2006 and Scottish Repairing Standard s.13(1), assessing mandatory 5-year EICR validity, Tolerable Standard interlinked alarm compliance, and First-tier Tribunal penalty exposure.",
      "consequential": false,
      "parameters": {
        "type": "object",
        "properties": {
          "tenancy_status": {
            "type": "string",
            "enum": ["new-incoming-tenancy", "existing-active-tenancy", "pre-purchase"]
          },
          "years_since_last_eicr": {
            "type": "number",
            "description": "Number of elapsed years since the last physical EICR inspection was certified Satisfactory"
          },
          "has_interlinked_alarms": {
            "type": "boolean",
            "description": "Whether property has compliant interlinked smoke and heat detection under the 2022 Tolerable Standard"
          },
          "has_metal_amendment_2_board": {
            "type": "boolean",
            "description": "Whether consumer unit is modern metal 18th Edition Amendment 2 non-combustible"
          }
        },
        "required": ["tenancy_status", "years_since_last_eicr"]
      }
    },
    {
      "name": "book_eicr_inspection",
      "description": "Submits an official Scottish domestic or landlord EICR inspection reservation directly to Flexicomm dispatch.",
      "consequential": true,
      "parameters": {
        "type": "object",
        "properties": {
          "full_name": { "type": "string", "description": "Full legal name of the landlord, tenant, or booking agent" },
          "telephone": { "type": "string", "description": "UK contact telephone number" },
          "email": { "type": "string", "description": "Email address for digital certificate dispatch" },
          "postcode": { "type": "string", "description": "Property postcode within mainland Scotland" },
          "client_type": { "type": "string", "enum": ["Private Landlord", "Letting Agent / Factor", "Home Buyer / Purchaser", "Homeowner"] },
          "property_tier": { "type": "string", "enum": ["1-bed", "2-bed", "3-bed", "4-bed", "5-bed"] },
          "circuits_count": { "type": "integer", "minimum": 1, "maximum": 20 },
          "addons_list": { "type": "string", "description": "Comma-separated list of selected compliance add-ons" },
          "estimated_total": { "type": "string", "description": "Calculated fixed total in GBP" },
          "location_slug": { "type": "string", "description": "Town or region slug identifier" },
          "access_notes": { "type": "string", "description": "Key holder contact details, tenant access, or tenancy commencement notes" },
          "preferred_date": { "type": "string", "description": "Preferred inspection date (YYYY-MM-DD)" },
          "preferred_time": { "type": "string", "enum": ["Morning (08:00 - 12:00)", "Afternoon (12:00 - 16:00)", "Evening (16:00 - 19:00)"], "description": "Preferred arrival time window" }
        },
        "required": ["full_name", "telephone", "email", "postcode", "property_tier"]
      }
    }
  ]
}
