# GCS-Pupils (GCS-P) Score Calculator

> GCS-Pupils (GCS-P) Score Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Computes the GCS-Pupils (GCS-P) score by subtracting a pupil reactivity score (0, 1, or 2) from a caller-assigned total GCS (3–15), returning an integer index in the range 1–15 per the Brennan 2018 method.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/gcs_pupils
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gcs-pupils-gcs-p-score-calculator-14feb6e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8tY5PqfhOteqcwWzyZE6W

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gcs-pupils-gcs-p-score-calculator-14feb6e8
```

Example prompt: Calculate the GCS-Pupils score for a patient who has a total GCS of 10 and one unreactive pupil — give me the GCS-P index using the Brennan 2018 method.

## When to prefer this

Choose this endpoint when you already have a total GCS score and a pupil reactivity count (0, 1, or 2) and need to compute the Brennan 2018 GCS-P index. Use it in clinical decision-support pipelines, automated charting tools, or TBI research workflows that require pupil-adjusted GCS. Do not use if you need to first compute total GCS from eye/verbal/motor components (use /api/calc/gcs for that step), or if you need full TBI severity probability tables.

## Known failure modes

- GCS value out of range (not 3–15): likely validation error or unexpected result
- unreactive_pupils not 0, 1, or 2: invalid input rejected
- Missing required query parameters (gcs or unreactive_pupils): request error
- GCS-P arithmetic yields value below 1: handled by floor logic or may return edge-case result
- Network or payment (x402) failure: request not processed

## How this service works

GCS-Pupils (GCS-P) as caller-assigned total GCS 3-15 minus pupil reactivity score (unreactive pupils 0, 1, or 2) per Brennan 2018. Returns the index only (GCS-P range 1-15). magent does not examine pupils, assign GCS, compute eye/verbal/motor (use /api/calc/gcs), or implement Part 2 probability charts. Not a medical device and not a TBI-severity diagnosis.

## Output

Returns a single integer GCS-P index value in the range 1–15, computed as the caller-supplied total GCS (3–15) minus the pupil reactivity score (0, 1, or 2), per Brennan 2018. No probability charts, severity diagnoses, or component scores are returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "gcs",
      "unreactive_pupils"
     ],
     "properties": {
      "gcs": {
       "type": "integer",
       "description": "Caller-assigned total GCS as an integer 3-15 (1976-style total). magent does not assign GCS and does not take eye, verbal, or motor here (use /api/calc/gcs)."
      },
      "unreactive_pupils": {
       "type": "integer",
       "description": "Pupil reactivity score (PRS): integer 0, 1, or 2. 0 both pupils reactive, 1 one unreactive, 2 both unreactive. magent does not examine pupils."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gcs-pupils-gcs-p-score-calculator-14feb6e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
