# magent EASI Calculator

> magent EASI 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-15).

Computes the Hanifin 2001 EASI (Eczema Area and Severity Index) score from caller-supplied area and sign ratings across four body regions, returning a total score out of 72.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/easi
- 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/magent-easi-calculator-03435262
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OBP3Zi3zh64wavrgrNJB9

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-easi-calculator-03435262
```

Example prompt: Calculate the EASI score for an adult patient: head/neck area 2, erythema 2, edema/papulation 1, excoriation 1, lichenification 0; upper extremities area 3, erythema 2, edema/papulation 2, excoriation 1, lichenification 1; trunk area 4, erythema 3, edema/papulation 2, excoriation 2, lichenification 1; lower extremities area 3, erythema 2, edema/papulation 1, excoriation 2, lichenification 1.

## When to prefer this

Use this endpoint when you need a fast, deterministic EASI arithmetic calculation based on caller-supplied clinical observations following the Hanifin 2001 methodology for adult patients. It is ideal for embedding in clinical documentation, telemedicine platforms, or research pipelines where the clinician has already assessed the four body regions and assigned area and sign scores. Do not use it if you need pediatric EASI weights, IGA-based severity banding, automated skin examination, or a diagnosis — those are out of scope.

## Known failure modes

- Missing any of the 20 required query parameters returns a validation error
- Area parameter out of 0–6 integer range is rejected
- Sign parameter out of 0–3 integer range is rejected
- Non-integer (float) values for area or sign scores cause schema rejection
- Pediatric body-region weights not supported — only adult weights are applied
- Payment failure or x402 rejection blocks the call

## How this service works

Hanifin 2001 EASI from four regions. Each region: area 0-6 and erythema, edema/papulation, excoriation, and lichenification 0-3. Region score = (sum of signs) × area × adult weight (head/neck 0.1, upper extremities 0.2, trunk 0.3, lower extremities 0.4). Total max 72. Adult weights only. magent does not examine the skin. No IGA or later severity bands. Not a diagnosis.

## Output

Returns the computed EASI total score (maximum 72) derived from the Hanifin 2001 formula: for each of the four regions, the sum of the four sign scores (erythema, edema/papulation, excoriation, lichenification, each 0–3) is multiplied by the area score (0–6) and the adult body-region weight (head/neck 0.1, upper extremities 0.2, trunk 0.3, lower extremities 0.4). Region scores are summed to produce the total. The API does not examine skin, make diagnoses, or apply IGA severity bands.

## 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": [
      "head_neck_area",
      "head_neck_erythema",
      "head_neck_edema_papulation",
      "head_neck_excoriation",
      "head_neck_lichenification",
      "upper_extremities_area",
      "upper_extremities_erythema",
      "upper_extremities_edema_papulation",
      "upper_extremities_excoriation",
      "upper_extremities_lichenification",
      "trunk_area",
      "trunk_erythema",
      "trunk_edema_papulation",
      "trunk_excoriation",
      "trunk_lichenification",
      "lower_extremities_area",
      "lower_extremities_erythema",
      "lower_extremities_edema_papulation",
      "lower_extremities_excoriation",
      "lower_extremities_lichenification"
     ],
     "properties": {
      "trunk_area": {
       "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6
       ],
       "type": "integer",
       "description": "Caller-assigned Hanifin 2001 EASI area of involvement for this body region (integer 0-6): 0 none, 1 <10%, 2 10-29%, 3 30-49%, 4 50-69%, 5 70-89%, 6 90-100%. magent does not examine the skin."
      },
      "head_neck_area": {
       "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6
       ],
       "type": "integer",
       "description": "Caller-assigned Hanifin 2001 EASI area of involvement for this body region (integer 0-6): 0 none, 1 <10%, 2 10-29%, 3 30-49%, 4 50-69%, 5 70-89%, 6 90-100%. magent does not examine the skin."
      },
      "trunk_erythema": {
       "enum": [
        0,
        1,
        2,
        3
       ],
       "type": "integer",
       "description": "Caller-assigned Hanifin 2001 EASI erythema for this region (integer 0-3): 0 none, 1 mild, 2 moderate, 3 severe. magent does not examine the skin."
      },
      "trunk_excoriation": {
       "enum": [
        0,
        1,
        2,
        3
       ],
       "type": "integer",
       "description": "Caller-assigned Han
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-easi-calculator-03435262/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)
