# Griffin 2000 Cambridge Diabetes Risk Score (magent)

> Griffin 2000 Cambridge Diabetes Risk Score (magent) 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-15).

Computes the Griffin 2000 Cambridge logistic risk score for undetected type 2 diabetes, returning a probability between 0 and 1.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/cambridge_diabetes
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/griffin-2000-cambridge-diabetes-risk-score-magent-cf59efab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ge5K7y7-lfrZFew5eS5gl

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 griffin-2000-cambridge-diabetes-risk-score-magent-cf59efab
```

Example prompt: What's the Griffin 2000 Cambridge diabetes risk score for a 58-year-old male with a BMI of 31.2, currently on antihypertensive medication, not on steroids, whose mother has diabetes, and who has never smoked?

## When to prefer this

Choose this endpoint when you need to apply the specific Griffin 2000 Cambridge logistic regression formula for estimating undetected type 2 diabetes risk in adults aged 40–64, using non-invasive clinical covariates only. Prefer this over FINDRISC (Finnish tool, different coefficients and population), ADA risk test (different predictors), or any glucose-based assay (this is a pre-screening tool, not a diagnostic). Use when you have BMI, sex, age, medication status, family history, and smoking status and want a validated, published risk probability without ordering lab work.

## Known failure modes

- Age outside 40–64 range is rejected (the model was derived on that cohort only)
- BMI outside the accepted range (10–80) may be clamped or rejected
- Missing required query parameters (age, sex, bmi_kg_m2, antihypertensive, steroids, family_history, smoking) will result in a validation error
- Invalid enum values for sex, smoking, or family_history will cause a 4xx error
- Payment not provided or insufficient (x402 payment required)

## How this service works

Griffin 2000 Cambridge logistic risk of undetected type 2 diabetes. p = 1/(1+e^(-λ)); λ = -6.322 - 0.879 if female + 1.222 antihypertensive + 2.191 steroids + 0.063×age + BMI band (<25 0; 25 to <27.5 0.699; 27.5 to <30 1.97; ≥30 2.518) + family (parent or sibling 0.728; parent and sibling 0.753) + smoking (former -0.218; current 0.855). Age 40-64. Probability 0-1. Not FINDRISC, not ADA, not a glucose assay, not a diagnosis.

## Output

Returns a probability value between 0 and 1 representing the estimated likelihood of undetected type 2 diabetes according to the Griffin 2000 Cambridge logistic model, along with the underlying linear predictor (λ). This is a screening risk estimate, not a clinical 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": [
      "age",
      "sex",
      "bmi_kg_m2",
      "antihypertensive",
      "steroids",
      "family_history",
      "smoking"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years. Griffin 2000 derivation was ages 40-64; magent accepts that published range only. Continuous linear predictor at 0.063 per year."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "female or male. Griffin 2000 female coefficient is -0.879; male is the reference (0)."
      },
      "smoking": {
       "enum": [
        "never",
        "former",
        "current"
       ],
       "type": "string",
       "description": "Smoking history (Griffin 2000). never (nonsmoker) 0; former (ex-smoker) -0.218; current 0.855. magent does not take a smoking history."
      },
      "steroids": {
       "type": "boolean",
       "description": "Prescribed steroids as assigned by the caller (Griffin 2000). true adds 2.191; false adds 0. magent does not read a medication list."
      },
      "bmi_kg_m2": {
       "type": "number",
       "description": "Body-mass index in kg/m^2 (10-80, magent clamp). Caller-supplied; magent does not compute BMI from height and weight. Griffin 2000: <25 -> 0; >=25 and <27.5 -> 0.699; >=27.5 and <30 -> 1.97; >=30 -> 2.518."
      },
      "family_history": {
       "enum": [
        "none",
        "parent_or_sibling",
        "parent_and_sibling"
       ],
       "type": "string",
       "description": "First-degree family history of diabetes (Griffin 2000). none 0; parent_or_sibling 0.728 (parent or sibling, not both); parent_and_sibling 0.753 (parent and sibling). magent does not take a pedigree."
      },
      "antihypertensive": {
       "type": "boolean",
       "description": "Prescribed antihypertensive medication as assigned by the caller (Griffin 2000). t
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/griffin-2000-cambridge-diabetes-risk-score-magent-cf59efab/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)
