# magent SDAI Calculator

> magent SDAI 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 Simplified Disease Activity Index (SDAI) score and disease activity state from swollen joint count, tender joint count, patient global, evaluator global, and CRP.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/sdai
- 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-sdai-calculator-8d5078ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n_JWHm7zhZ5SBsR_tg6QW

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-sdai-calculator-8d5078ff
```

Example prompt: Calculate the SDAI score for a patient with 4 swollen joints, 7 tender joints, a patient global of 5.5, an evaluator global of 4.0, and a CRP of 1.2 mg/dL — and tell me what disease activity state that puts them in.

## When to prefer this

Use this endpoint when you need a fast, automated SDAI computation from caller-supplied clinical values (joint counts, VAS globals, CRP in mg/dL) and want a discrete disease activity state alongside the numeric score. Prefer this over manual calculation or CDAI when CRP data is available in mg/dL. Note: this is not a diagnosis tool and not equivalent to CDAI (which omits CRP).

## Known failure modes

- Missing required parameters (sjc28, tjc28, pga, ega, crp_mg_dl) returns 4xx error
- sjc28 or tjc28 out of 0–28 integer range may be rejected or clamped
- CRP value above 30 mg/dL is clamped to 30 by magent
- PGA or EGA outside 0–10 range may cause validation error
- Payment not included or insufficient USDC triggers 402 response

## How this service works

Aletaha 2005 Simplified Disease Activity Index (SDAI): sjc28 + tjc28 + patient global (0–10 cm) + evaluator global (0–10 cm) + CRP mg/dL. Newly proposed states: ≤3.3 remission, ≤11 low, ≤26 moderate, >26 high (not original 5/20/40). magent does not count joints or assay CRP. Not CDAI. Not a rheumatoid arthritis diagnosis.

## Output

Returns the computed SDAI numeric score (sum of SJC28 + TJC28 + PGA + EGA + CRP in mg/dL) and a disease activity state classification: remission (≤3.3), low (≤11), moderate (≤26), or high (>26) using Aletaha 2005 thresholds as modified by magent.

## 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": [
      "sjc28",
      "tjc28",
      "pga",
      "ega",
      "crp_mg_dl"
     ],
     "properties": {
      "ega": {
       "type": "number",
       "description": "Caller-assigned evaluator global assessment on a 0-10 cm VAS (Aletaha 2005). Number 0-10. magent does not examine the patient."
      },
      "pga": {
       "type": "number",
       "description": "Caller-assigned patient global assessment on a 0-10 cm VAS (Aletaha 2005). Number 0-10. magent does not examine the patient."
      },
      "sjc28": {
       "type": "integer",
       "description": "Caller-assigned swollen joint count on the 28-joint set (Aletaha 2005). Integer 0-28. magent does not count joints."
      },
      "tjc28": {
       "type": "integer",
       "description": "Caller-assigned tender joint count on the 28-joint set (Aletaha 2005). Integer 0-28. magent does not count joints."
      },
      "crp_mg_dl": {
       "type": "number",
       "description": "Caller-assigned C-reactive protein in mg/dL (Aletaha 2005; not mg/L). Number 0-30 is a magent clamp. magent does not assay CRP."
      }
     }
    }
   },
   "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/magent-sdai-calculator-8d5078ff/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)
