{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "version": "1.0",
  "name": "Syntro Health Agentic Action Directory",
  "description": "W3C Web Model Context Protocol (WebMCP) directory enabling autonomous AI browsing agents to discover, initiate, and complete precision clinical nutrition and metabolic intake tasks.",
  "site": "https://syntro.binaryfroster.com",
  "actions": [
    {
      "id": "generate-express-diet-plan",
      "name": "Generate Express Clinical Diet Plan",
      "description": "Submit a 60-second express biometric intake (age, gender, height, weight, ethnicity, goal, diet protocol, health conditions, allergies) to synthesize a personalized 7-day Medical Nutrition Therapy plan.",
      "method": "declarative",
      "entrypoint": "/quick",
      "endpoint": "/analyze",
      "http_method": "POST",
      "parameters": {
        "type": "object",
        "required": [
          "name",
          "age",
          "gender",
          "height",
          "weight",
          "goal",
          "diet_type",
          "consent_agreed"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Patient full name"
          },
          "age": {
            "type": "integer",
            "minimum": 10,
            "maximum": 100,
            "description": "Age in years"
          },
          "gender": {
            "type": "string",
            "enum": ["male", "female", "other"],
            "description": "Biological sex / gender identity"
          },
          "height": {
            "type": "number",
            "minimum": 100,
            "maximum": 250,
            "description": "Height in centimeters"
          },
          "weight": {
            "type": "number",
            "minimum": 20,
            "maximum": 300,
            "description": "Body weight in kilograms"
          },
          "ethnicity": {
            "type": "string",
            "enum": [
              "south_asian",
              "east_asian",
              "caucasian",
              "african",
              "hispanic",
              "middle_eastern"
            ],
            "description": "Ancestry/ethnicity for calibrated WHO Asia-Pacific / ICMR-NIN BMI thresholds (>=23.0 vs >=25.0)"
          },
          "goal": {
            "type": "string",
            "enum": ["weight_loss", "muscle_gain", "maintain"],
            "description": "Primary metabolic objective"
          },
          "diet_type": {
            "type": "string",
            "enum": ["vegetarian", "ovoveg", "non_vegetarian", "vegan"],
            "description": "Dietary paradigm: strict vegetarian, ovo-vegetarian (with eggs), omnivore, or vegan"
          },
          "activity_level": {
            "type": "string",
            "enum": ["sedentary", "light", "moderate", "very_active"],
            "description": "Daily physical activity factor"
          },
          "medical_conditions": {
            "type": "array",
            "items": { "type": "string" },
            "description": "Diagnosed conditions (e.g. Type 2 Diabetes, Pre-Diabetes, Hypertension, CKD, PCOS)"
          },
          "food_allergies": {
            "type": "string",
            "description": "Allergens and intolerances to strictly exclude with safe clinical alternatives"
          },
          "consent_agreed": {
            "type": "string",
            "enum": ["yes", "1", "true"],
            "description": "Explicit clinical disclaimer and terms agreement"
          }
        }
      }
    },
    {
      "id": "generate-comprehensive-diet-plan",
      "name": "Generate Comprehensive 13-Section Clinical Health Intake",
      "description": "Submit a complete 13-section clinical nutrition assessment including biochemical lab markers (HbA1c, lipid elevations, renal stage), self-NFPE signs, and social determinants of health (SDOH).",
      "method": "declarative",
      "entrypoint": "/questionnaire",
      "endpoint": "/analyze",
      "http_method": "POST",
      "parameters": {
        "type": "object",
        "required": [
          "name",
          "age",
          "gender",
          "height",
          "weight",
          "goal",
          "diet_type"
        ],
        "properties": {
          "name": { "type": "string" },
          "age": { "type": "integer" },
          "gender": { "type": "string" },
          "height": { "type": "number" },
          "weight": { "type": "number" },
          "ethnicity": { "type": "string" },
          "goal": { "type": "string" },
          "diet_type": { "type": "string" },
          "hba1c": {
            "type": "number",
            "description": "Fasting HbA1c percentage (e.g. 5.9% for pre-diabetes)"
          },
          "medical_conditions": {
            "type": "array",
            "items": { "type": "string" }
          },
          "medications": {
            "type": "string",
            "description": "Current prescriptions for pharmacology cross-checking"
          },
          "food_allergies": { "type": "string" }
        }
      }
    },
    {
      "id": "swap-meal-item",
      "name": "Swap Meal Item for Macro-Equivalent Alternative",
      "description": "Dynamically swap a suggested meal within a generated 7-day diet plan for an isocaloric, clinical protocol-compliant alternative.",
      "method": "imperative",
      "endpoint": "/swap-meal",
      "http_method": "POST",
      "parameters": {
        "type": "object",
        "required": ["user_id", "day", "meal_type"],
        "properties": {
          "user_id": {
            "type": "integer",
            "description": "Patient user record ID"
          },
          "day": {
            "type": "integer",
            "minimum": 1,
            "maximum": 7,
            "description": "Day number (1-7)"
          },
          "meal_type": {
            "type": "string",
            "enum": ["breakfast", "lunch", "snack", "dinner"],
            "description": "Meal segment to replace"
          }
        }
      }
    },
    {
      "id": "query-glycemic-index",
      "name": "Query Clinical Glycemic Index Database",
      "description": "Search the University of Sydney and GI-Diet verified clinical database for foods categorized by Glycemic Index (Low <= 55, Medium 56-69, High >= 70).",
      "method": "declarative",
      "entrypoint": "/results",
      "parameters": {
        "type": "object",
        "properties": {
          "food_name": { "type": "string" },
          "category": { "type": "string", "enum": ["fruit", "grain", "legume", "dairy", "snack"] }
        }
      }
    }
  ]
}
