{
  "tool": "msc-agentic.luhn_pan",
  "name": "PAN check digit (Luhn) (CDU-ICT-AGT-900)",
  "answers": "Is this card-shaped number self-consistent, and what check digit completes this body?",
  "degree": {
    "id": "competency:msc-agentic",
    "code": "CDU-ICT-AGT-900",
    "name": "Master of Science — Agentic Systems Engineering",
    "version": "1.0.1"
  },
  "reference": "ISO/IEC 7812-1 Annex B (the Luhn formula)",
  "endpoint": "/faculty/msc-agentic/luhn_pan",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "body"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "body": {
        "type": "string",
        "description": "The number without its final check digit — 7 to 18 digits, spaces allowed"
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "checkDigit",
      "pan",
      "length"
    ],
    "properties": {
      "checkDigit": {
        "type": "number",
        "description": "The digit that completes the number"
      },
      "pan": {
        "type": "string",
        "description": "The completed number, spaced in fours"
      },
      "length": {
        "type": "number",
        "description": "Digits in the completed number"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "body": "971034210000001"
  }
}