{
  "tool": "matric-nqf4.sci_ph",
  "name": "pH of a strong acid (CDU-GEN-NSC-400)",
  "answers": "pH = −log[H⁺] for a fully dissociated monoprotic acid; a weak acid without Ka is refused with that reason.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "CAPS Grade 12 Physical Sciences, worked reference P14 (offline reconstruction); pH = −log[H⁺]",
  "endpoint": "/faculty/matric-nqf4/sci_ph",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "concentration",
      "acidStrength"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "concentration": {
        "type": "number",
        "description": "[acid] (mol·dm⁻³, > 0) (mol·dm⁻³)",
        "minimum": 1e-10,
        "maximum": 20
      },
      "acidStrength": {
        "type": "string",
        "description": "strong (full dissociation) or weak (needs Ka)",
        "enum": [
          "strong",
          "weak"
        ]
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "pH"
    ],
    "properties": {
      "pH": {
        "type": "number",
        "description": "pH (2 d.p.)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "concentration": 0.01,
    "acidStrength": "strong"
  }
}