81trust / 100

Calc Gcs Pupils

by magent in Onchain & crypto

x402 APIPassing, checked 44 min ago

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.

GET https://api.magentlab.com/api/calc/gcs_pupils

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
134 ms typical, 134 ms slowest 5%
Last check
44 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.magentlab.com/api/calc/gcs_pupils?gcs=15&unreactive_pupils=0"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fgcs_pupils
const res = await pay("https://api.magentlab.com/api/calc/gcs_pupils?gcs=15&unreactive_pupils=0");
console.log(await res.json());

Example input

{
  "gcs": 15,
  "unreactive_pupils": 0
}

Example output

{
  "citation": {
    "authors": "Brennan PM, Murray GD, Teasdale GM",
    "doi": "10.3171/2017.12.JNS172780",
    "id": "brennan-2018",
    "pmid": "29631516",
    "source": "J Neurosurg. 2018;128(6):1612-1620",
    "title": "Simplifying the use of prognostic information in traumatic brain injury. Part 1: The GCS-Pupils score: an extended index of clinical severity"
  },
  "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": "gcs_pupils",
  "formula_expression": "GCS-P = GCS - PRS; PRS is the number of unreactive pupils (0, 1, or 2); GCS 3-15; GCS-P range 1-15 (Brennan 2018)",
  "gcs": 15,
  "gcs_p": 15,
  "pupil_reactivity_score": 0
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
44 min agoPassed402136 ms$0.005
6 h agoPassed402134 ms$0.005