{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "version": "1.1.0",
  "name": "dokitab-mcp-actions",
  "description": "Machine-readable WebMCP actions and Streamable HTTP MCP tool declarations for AI agents operating on Dokitab public services.",
  "endpoint": "https://api.dokitab.com",
  "mcpEndpoint": "https://dokitab.com/mcp",
  "mcpServerCard": "https://dokitab.com/.well-known/mcp.json",
  "tools": [
    {
      "name": "calculate_pediatric_dosage",
      "description": "Calculate weight-based (kg) paediatric drug dosage in mg and mL across 7 Nigerian Essential Medicines List (EML) & WHO formulations via Streamable HTTP MCP JSON-RPC 2.0.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "drug": {
            "type": "string",
            "enum": [
              "amox_clav_228",
              "amox_clav_457",
              "paracetamol_120",
              "artemether_lumefantrine",
              "metronidazole_200",
              "ibuprofen_100",
              "zinc_20"
            ]
          },
          "weight_kg": {
            "type": "number",
            "minimum": 2,
            "maximum": 60
          }
        },
        "required": ["drug", "weight_kg"]
      },
      "method": "POST",
      "path": "/mcp"
    },
    {
      "name": "calculate_nhia_copay",
      "description": "Calculate Nigerian NHIA and HMO 10% EML drug co-payment and Fee-For-Service (FFS) split-billing in Naira (₦) via Streamable HTTP MCP JSON-RPC 2.0.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "eml_drugs_naira": { "type": "number", "minimum": 0 },
          "secondary_ffs_naira": { "type": "number", "minimum": 0 },
          "non_covered_naira": { "type": "number", "minimum": 0 }
        },
        "required": ["eml_drugs_naira"]
      },
      "method": "POST",
      "path": "/mcp"
    },
    {
      "name": "lookup_nigeria_state_shis",
      "description": "Look up any of Nigeria's 36 states + FCT to retrieve the mandatory State Health Insurance Scheme (SHIS) agency and EMR compliance rules via Streamable HTTP MCP JSON-RPC 2.0.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "state": { "type": "string" }
        },
        "required": ["state"]
      },
      "method": "POST",
      "path": "/mcp"
    },
    {
      "name": "evaluate_diagnostic_panic_threshold",
      "description": "Evaluate Nigerian laboratory and diagnostic center analyte results (Potassium, Sodium, Glucose, Hemoglobin, Platelets, Neonatal Bilirubin, Creatinine, Troponin I) against MLSCN ISO 15189 critical panic-value thresholds and return the mandatory <60-second clinician escalation protocol via Streamable HTTP MCP JSON-RPC 2.0.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "analyte": {
            "type": "string",
            "enum": [
              "potassium",
              "sodium",
              "glucose",
              "hemoglobin",
              "platelets",
              "bilirubin_neonatal",
              "creatinine",
              "troponin_i"
            ]
          },
          "value": { "type": "number" }
        },
        "required": ["analyte", "value"]
      },
      "method": "POST",
      "path": "/mcp"
    },
    {
      "name": "get_page_markdown",
      "description": "Fetch the clean Markdown representation of any public DokiTab page via HTTP Content Negotiation (Accept: text/markdown) or .md suffix.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": { "type": "string" }
        },
        "required": ["path"]
      },
      "method": "GET",
      "path": "{path}.md"
    },
    {
      "name": "validate_referral_code",
      "description": "Validate a peer hospital referral code to obtain subscription onboarding discounts.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "The unique 6-12 character referral code provided by a partner facility."
          }
        },
        "required": ["code"]
      },
      "method": "GET",
      "path": "/api/growth/validate-code/{code}"
    },
    {
      "name": "get_public_facility",
      "description": "Retrieve public clinic metadata, verified specialties, and operational contact details.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "slug_or_domain": {
            "type": "string",
            "description": "The clinic identifier slug or custom subdomain."
          }
        },
        "required": ["slug_or_domain"]
      },
      "method": "GET",
      "path": "/api/public/hospital/{slug_or_domain}"
    },
    {
      "name": "get_pricing_tiers",
      "description": "Retrieve current canonical capacity-based subscription tiers in Nigerian Naira (₦).",
      "inputSchema": {
        "type": "object",
        "properties": {}
      },
      "method": "GET",
      "path": "/pricing.md"
    },
    {
      "name": "submit_support_ticket",
      "description": "Submit a technical support or onboarding inquiry for a medical facility.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "hospital_name": {
            "type": "string",
            "description": "Name of the hospital, diagnostic center, pharmacy, or clinic"
          },
          "contact_email": {
            "type": "string",
            "format": "email",
            "description": "Administrative email address"
          },
          "facility_type": {
            "type": "string",
            "enum": [
              "outpatient_clinic",
              "inpatient_hospital",
              "pharmacy",
              "diagnostic_lab",
              "dental",
              "physiotherapy",
              "maternity",
              "eye_clinic",
              "home_care"
            ],
            "description": "Type of healthcare provider facility"
          },
          "inquiry_text": {
            "type": "string",
            "description": "Details of the inquiry or pilot deployment request"
          }
        },
        "required": ["hospital_name", "contact_email", "facility_type", "inquiry_text"]
      },
      "method": "POST",
      "path": "/api/support/ticket"
    }
  ]
}
