{
  "serverInfo": {
    "name": "pmtech-water-solutions",
    "title": "PM TECH Water Solutions MCP Server",
    "version": "1.0.0"
  },
  "protocolVersion": "2025-03-26",
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://pmtech-eg.com/api/mcp"
  },
  "endpoint": "https://pmtech-eg.com/api/mcp",
  "documentationUrl": "https://pmtech-eg.com/docs/api",
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "subscribe": false,
      "listChanged": false
    },
    "prompts": {
      "listChanged": false
    }
  },
  "tools": [
    {
      "name": "product_search",
      "description": "Search the PM TECH catalog (Ferat, Shakti, Jinko Solar) by query, brand, well diameter in inches, and horsepower range.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Arabic or English search query (model, series, horsepower, or diameter)."
          },
          "brand": {
            "type": "string",
            "enum": ["Ferat", "Shakti", "Jinko Solar"]
          },
          "diameter_inch": {
            "type": "integer",
            "enum": [4, 6, 8]
          },
          "min_power_hp": {
            "type": "number",
            "minimum": 0.5
          },
          "max_power_hp": {
            "type": "number",
            "maximum": 200
          },
          "limit": {
            "type": "integer",
            "default": 10,
            "minimum": 1,
            "maximum": 50
          }
        },
        "required": ["query"]
      }
    },
    {
      "name": "pump_sizing_calculator",
      "description": "Calculate Total Dynamic Head (TDH), required motor kW/HP with safety factor, submergence depth, and matching submersible pumps from catalog.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "flow_rate_m3h": {
            "type": "number",
            "minimum": 1,
            "maximum": 1000
          },
          "static_head_m": {
            "type": "number",
            "minimum": 5,
            "maximum": 500
          },
          "irrigation_type": {
            "type": "string",
            "enum": ["flood", "drip", "sprinkler", "center_pivot"],
            "default": "flood"
          },
          "power_source": {
            "type": "string",
            "enum": ["grid", "diesel", "solar"],
            "default": "grid"
          },
          "safety_factor": {
            "type": "number",
            "default": 1.15
          }
        },
        "required": ["flow_rate_m3h", "static_head_m"]
      }
    },
    {
      "name": "request_quote",
      "description": "Build a pre-filled official WhatsApp sales quote request URL (https://wa.me/201021133409) from product IDs and project parameters.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "product_ids": {
            "type": "array",
            "items": { "type": "string" }
          },
          "quantity": {
            "type": "integer",
            "default": 1,
            "minimum": 1
          },
          "customer_name": { "type": "string" },
          "customer_phone": { "type": "string" },
          "project_location": { "type": "string" },
          "well_details": { "type": "string" },
          "notes": { "type": "string" }
        },
        "required": ["product_ids"]
      }
    }
  ]
}
