# NRS-2002 Nutritional Risk Screening Calculator

> NRS-2002 Nutritional Risk Screening 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-16).

Computes the Kondrup 2003 NRS-2002 total score (0–7) and at-risk flag for hospitalized adults from nutrition status grade, disease severity grade, and age.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/nrs_2002
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nrs-2002-nutritional-risk-screening-calculator-dd848762
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2YqnuJ-8qwD8dKqFoDyp_

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 nrs-2002-nutritional-risk-screening-calculator-dd848762
```

Example prompt: Calculate the NRS-2002 nutritional risk score for a 74-year-old patient who has a nutrition status grade of 2 (moderate) and a disease severity grade of 2 (moderate) — is the patient at risk?

## When to prefer this

Use this endpoint when you need a fast, deterministic NRS-2002 arithmetic calculation for a hospitalized adult and have already assigned the Kondrup 2003 nutrition status and disease severity grades from clinical data. Prefer it over manual computation to avoid arithmetic errors, and when integrating nutrition screening into automated clinical decision-support workflows. Not appropriate for computing BMI, weight loss, or dietary intake — those must be assessed by the caller before invoking this endpoint.

## Known failure modes

- Missing required query parameters (nutrition_status, disease_severity, age) returns a 400 error
- nutrition_status or disease_severity values outside the 0–3 enum return a validation error
- age outside 18–120 integer range returns a validation error
- Payment not provided or insufficient USDC results in a 402 Payment Required response

## How this service works

Kondrup 2003 NRS-2002: nutrition_status (0-3) + disease_severity (0-3) + 1 if age ≥70 (70 scores); max 7. at_risk true iff score ≥3. Caller assigns published grades (highest undernutrition indicator). Hospitalized adults. Not a medical device, not a diet order, not NRI. magent does not weigh the patient.

## Output

Returns the NRS-2002 total score (integer 0–7), computed as nutrition_status + disease_severity + 1 if age ≥ 70, plus an at_risk boolean that is true when the score is 3 or higher, following the Kondrup 2003 protocol.

## 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": [
      "nutrition_status",
      "disease_severity",
      "age"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Kondrup 2003: add 1 point when age ≥70. Age 70 scores. Age 69 does not."
      },
      "disease_severity": {
       "enum": [
        0,
        1,
        2,
        3
       ],
       "type": "integer",
       "description": "Caller-assigned Kondrup 2003 disease severity 0-3. 0 absent (normal requirements). 1 mild (e.g. hip fracture; chronic illness with complications: cirrhosis, COPD, chronic hemodialysis, diabetes, oncology). 2 moderate (e.g. major abdominal surgery, stroke, severe pneumonia, hematologic malignancy). 3 severe (e.g. head injury, bone marrow transplant, ICU APACHE >10). magent does not assign the diagnosis."
      },
      "nutrition_status": {
       "enum": [
        0,
        1,
        2,
        3
       ],
       "type": "integer",
       "description": "Caller-assigned Kondrup 2003 impaired nutritional status 0-3. If BMI, intake, and weight-loss grades differ, use the highest. 0 absent. 1 mild (weight loss >5% in 3 months or food intake 50-75% of requirement last week). 2 moderate (weight loss >5% in 2 months or BMI 18.5-20.5 plus impaired general condition or intake 25-60%). 3 severe (weight loss >5% in 1 month / >15% in 3 months or BMI <18.5 plus impaired general condition or intake 0-25%). magent does not weigh the patient or compute BMI, weight-loss, or intake."
      }
     }
    }
   },
   "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/nrs-2002-nutritional-risk-screening-calculator-dd848762/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)
