{
  "tool": "msc-agentic.rate_window",
  "name": "Sliding-window admission (CDU-ICT-AGT-900)",
  "answers": "May one more request pass this window now — and if not, when?",
  "degree": {
    "id": "competency:msc-agentic",
    "code": "CDU-ICT-AGT-900",
    "name": "Master of Science — Agentic Systems Engineering",
    "version": "1.0.1"
  },
  "reference": "The sliding window (the house's own intake rule)",
  "endpoint": "/faculty/msc-agentic/rate_window",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "max",
      "windowSeconds",
      "ageSeconds"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "max": {
        "type": "number",
        "description": "Requests allowed inside the window",
        "minimum": 1,
        "maximum": 100000
      },
      "windowSeconds": {
        "type": "number",
        "description": "The window (s)",
        "minimum": 1,
        "maximum": 604800
      },
      "ageSeconds": {
        "type": "string",
        "description": "Ages of the prior requests, seconds ago, comma-separated (empty for none)"
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "inWindow",
      "admit",
      "retryAfterSeconds"
    ],
    "properties": {
      "inWindow": {
        "type": "number",
        "description": "Prior requests still inside the window"
      },
      "admit": {
        "type": "boolean",
        "description": "Whether one more passes now"
      },
      "retryAfterSeconds": {
        "type": "number",
        "description": "Wait this long when refused; 0 when admitted"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "max": 5,
    "windowSeconds": 600,
    "ageSeconds": "30,90,180,400,590"
  }
}