# magent Glasgow Coma Scale (GCS) Calculator

> magent Glasgow Coma Scale (GCS) 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-10-11).

Computes the Glasgow Coma Scale total score from eye, verbal, and motor sub-scores using the specified 1974 or 1976 edition, returning a deterministic published score with citation.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/gcs?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-glasgow-coma-scale-gcs-calculator-d6f19a48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4vRrBygpkyoU4JhBM2bfn

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 magent-glasgow-coma-scale-gcs-calculator-d6f19a48
```

Example prompt: Calculate the Glasgow Coma Scale score for a patient with eye opening of 3, verbal response of 4, and motor response of 5 using the 1976 edition.

## When to prefer this

Use this endpoint when you need a deterministic, citable Glasgow Coma Scale score computed according to a specific published edition (1974 or 1976). Prefer it over manual calculation to ensure correctness, auditability, and inclusion of a bibliographic citation for clinical documentation. It is ideal for EHR automation, clinical decision support agents, and audit trails where a referenced score — not just a sum — is required.

## Known failure modes

- Missing required parameters (eye, verbal, motor, edition) return a 400 error
- Motor score out of range for specified edition (e.g., motor=6 with edition=1974) returns an error
- Eye score outside 1-4 or verbal score outside 1-5 returns a validation error
- Non-integer values for sub-scores return a type error
- Missing edition parameter returns an error since the API never auto-selects

## How this service works

Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.

## Output

Returns the deterministic GCS total score (max 14 for 1974 edition, max 15 for 1976 edition), the three component sub-scores (E, V, M), the applicable edition, the score maximum, and a published clinical citation — but explicitly not a diagnosis.

## 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": [
      "eye",
      "verbal",
      "motor",
      "edition"
     ],
     "properties": {
      "eye": {
       "type": "integer",
       "description": "Eye opening (E). Integer 1-4 as assigned by the caller."
      },
      "motor": {
       "type": "integer",
       "description": "Motor response (M). Integer 1-5 when edition=1974, or 1-6 when edition=1976, as assigned by the caller."
      },
      "verbal": {
       "type": "integer",
       "description": "Verbal response (V). Integer 1-5 as assigned by the caller."
      },
      "edition": {
       "enum": [
        "1974",
        "1976"
       ],
       "type": "string",
       "description": "Published motor scale. Required; magent does not pick 1974 (motor 1-5) or 1976 (motor 1-6)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/gcs",
  "count": 2,
  "items": [
   {
    "score": 15,
    "edition": "1976",
    "formula": "gcs",
    "citation": {
     "id": "teasdale-jennett-1976",
     "doi": "10.1007/BF01405862",
     "title": "Assessment and prognosis of coma after head injury",
     "source": "Acta Neurochir (Wien). 1976;34:45-55",
     "authors": "Teasdale G, Jennett B"
    },
    "max_score": 15,
    "components": [
     {
      "value": 4,
      "factor": "eye",
      "points": 4,
      "present": true
     },
     {
      "value": 5,
      "factor": "verbal",
      "points": 5,
      "present": true
     },
     {
      "value": 6,
      "factor": "motor",
      "points": 6,
      "present": true
     }
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "formula_expression": "GCS = eye + verbal + motor; eye 1-4, verbal 1-5, motor 1-6; max 15"
   },
   {
    "score": 15,
    "edition": "1976",
    "formula": "gcs",
    "citation": {
     "id": "teasdale-jennett-1976",
     "doi": "10.1007/BF01405862",
     "title": "Assessment and prognosis of coma after head injury",
     "source": "Acta Neurochir (Wien). 1976;34:45-55",
     "authors": "Teasdale G, Jennett B"
    },
    "max_score": 15,
    "components": [
     {
      "value": 4,
      "factor": "eye",
      "points": 4,
      "present": true
     },
     {
      "value": 5,
      "factor": "verbal",
      "points": 5,
      "present": true
     },
     {
      "value": 6,
      "factor": "motor",
      "points": 6,
      "present": true
     }
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "formula_expression": "GCS = eye + verbal + motor; eye 1-4, verbal 1-5, motor 1-6; max 15"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-glasgow-coma-scale-gcs-calculator-d6f19a48/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)
