{
  "$schema": "https://alazab.art/.well-known/ai-catalog.schema.json",
  "name": "Alazab Construction AI Catalog",
  "version": "1.0.0",
  "description": "كتالوج الذكاء الاصطناعي لشركة العزب للمقاولات العامة - يتيح للوكلاء الذكية الوصول المباشر للخدمات، طلبات الصيانة، المشاريع، وأدوات MCP.",
  "provider": {
    "name": "شركة العزب للمقاولات العامة",
    "url": "https://alazab.art",
    "email": "support@alazab.com"
  },
  "capabilities": {
    "mcp_endpoint": "https://alazab.art/mcp",
    "mcp_gateway": "https://alazab.art/mcp/",
    "daftra_mcp": "https://alazab.art/daftra/mcp",
    "knowledge_mcp": "https://alazab.art/knowledge/mcp",
    "documentation": "https://alazab.art/llms.txt",
    "health_check": "https://alazab.art/health"
  },
  "tools": [
    {
      "name": "maintenance_get_status",
      "title": "Maintenance request status",
      "description": "Read the current UberFix maintenance request status using request UUID or number.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "request_number": { "type": "string", "description": "Exact maintenance request number" },
          "request_id": { "type": "string", "description": "Exact maintenance request UUID" }
        },
        "additionalProperties": false
      }
    },
    {
      "name": "maintenance_catalog",
      "title": "Maintenance tool catalog",
      "description": "Read the maintenance gateway catalog and workflow metadata.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      }
    },
    {
      "name": "daftra_list_products",
      "title": "List Daftra products",
      "description": "Read products from Daftra ERP catalog.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": { "type": "integer", "default": 1 },
          "limit": { "type": "integer", "default": 25 },
          "search": { "type": "string" }
        },
        "additionalProperties": false
      }
    },
    {
      "name": "daftra_list_clients",
      "title": "List Daftra clients",
      "description": "Read clients from Daftra ERP catalog.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": { "type": "integer", "default": 1 },
          "limit": { "type": "integer", "default": 25 },
          "search": { "type": "string" }
        },
        "additionalProperties": false
      }
    }
  ],
  "forms": [
    {
      "id": "maintenance-request-form",
      "name": "طلب صيانة UberFix",
      "action": "https://alazab.art/maintenance-request",
      "method": "POST",
      "fields": [
        { "name": "branch_name", "type": "text", "required": true, "label": "اسم الفرع أو المنشأة" },
        { "name": "phone", "type": "tel", "required": true, "label": "رقم الهاتف" },
        { "name": "service_type", "type": "select", "required": true, "label": "نوع الخدمة المطلوبة" },
        { "name": "issue_description", "type": "textarea", "required": true, "label": "وصف العطل أو الطلب" }
      ]
    },
    {
      "id": "cost-calculator-form",
      "name": "حاسبة تكلفة التشطيب والإنشاءات",
      "action": "https://alazab.art/cost-calculator",
      "method": "POST",
      "fields": [
        { "name": "project_type", "type": "select", "required": true, "label": "نوع المشروع (سكني/تجاري)" },
        { "name": "area_sqm", "type": "number", "required": true, "label": "المساحة بالمتر المربع" },
        { "name": "finishing_level", "type": "select", "required": true, "label": "مستوى التشطيب" }
      ]
    }
  ]
}
