# magent ECOG Performance Status Calculator

> magent ECOG Performance Status 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-14).

Validates and returns a structured ECOG performance status score (0–4) with label and citation, given a caller-assigned integer per the Oken 1982 scale

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ecog
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-ecog-performance-status-calculator-0b66f55a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_omD6M9ba49N2OFrR76Upn

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-ecog-performance-status-calculator-0b66f55a
```

Example prompt: Look up the ECOG performance status label and structured score for a patient assigned a grade 2 — ambulatory but unable to work — using the Oken 1982 scale.

## When to prefer this

Use this endpoint when an AI agent needs a deterministic, citable, structured encoding of a caller-assigned ECOG performance status integer — especially in autonomous clinical, trial eligibility, or documentation workflows where a published reference (Oken 1982) and a stable label are required. Do not use if you need to assess or observe a patient's functional status, or if you need Karnofsky rather than ECOG scoring.

## Known failure modes

- Missing or invalid 'ecog' query parameter — returns error if not provided
- Integer out of range (e.g. 5 or negative) — grade 5 (dead) is explicitly not scored
- Non-integer value for ecog parameter — type mismatch error
- Payment not processed — x402 payment required error before response is returned

## How this service works

Oken 1982 ECOG performance status: caller-assigned integer 0-4 (fully active; restricted strenuous activity, ambulatory, light work; ambulatory, all self-care, unable to work, up >50% waking hours; limited self-care, bed/chair >50% waking hours; completely disabled, no self-care, totally bed/chair). Grade 5 (dead) is not scored. Returns score, max 4, and a stable label. Not a performance-status assignment and not Karnofsky; magent does not observe the patient.

## Output

Returns a JSON object containing the ECOG score (integer 0–4), the ecog_grade, the ecog_label (e.g. 'fully_active'), max_score (4), a components breakdown, the formula expression, a full Oken 1982 citation (DOI, PMID, title, authors, source), and a disclaimer that this is not a medical device and a licensed clinician is responsible for patient care.

## 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": [
      "ecog"
     ],
     "properties": {
      "ecog": {
       "type": "integer",
       "description": "Oken 1982 ECOG performance status 0-4 as assigned by the caller (0 fully active; 1 restricted strenuous activity, ambulatory, light work; 2 ambulatory, all self-care, unable to work, up >50% waking hours; 3 limited self-care, bed/chair >50% waking hours; 4 completely disabled, no self-care, totally bed/chair). Grade 5 (dead) is not scored. magent does not observe the patient."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/ecog",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "ecog",
    "citation": {
     "id": "oken-1982",
     "doi": "10.1097/00000421-198212000-00014",
     "pmid": "7165009",
     "title": "Toxicity and response criteria of the Eastern Cooperative Oncology Group",
     "source": "Am J Clin Oncol. 1982;5(6):649-655",
     "authors": "Oken MM, Creech RH, Tormey DC, Horton J, Davis TE, McFadden ET, Carbone PP"
    },
    "max_score": 4,
    "components": [
     {
      "factor": "ecog",
      "points": 0,
      "present": true
     }
    ],
    "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.",
    "ecog_grade": 0,
    "ecog_label": "fully_active",
    "formula_expression": "ECOG performance status = caller-assigned integer 0-4 (Oken 1982); max 4; grade 5 (dead) is not scored"
   },
   {
    "score": 0,
    "formula": "ecog",
    "citation": {
     "id": "oken-1982",
     "doi": "10.1097/00000421-198212000-00014",
     "pmid": "7165009",
     "title": "Toxicity and response criteria of the Eastern Cooperative Oncology Group",
     "source": "Am J Clin Oncol. 1982;5(6):649-655",
     "authors": "Oken MM, Creech RH, Tormey DC, Horton J, Davis TE, McFadden ET, Carbone PP"
    },
    "max_score": 4,
    "components": [
     {
      "factor": "ecog",
      "points": 0,
      "present": true
     }
    ],
    "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.",
    "ecog_grade": 0,
    "ecog_label": "fully_active",
    "formula_expression": "ECOG performance status = caller-assigned integer 0-4 (Oken 1982); max 4; grade 5 (dead) is not scored"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-ecog-performance-status-calculator-0b66f55a/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)
