# magent NYHA Functional Capacity Class Lookup

> magent NYHA Functional Capacity Class Lookup 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-13).

Returns the NYHA 1994 functional capacity class label, numeric score, and published description for a caller-supplied class integer (1–4).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/nyha
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-nyha-functional-capacity-class-lookup-5d4bb9d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gv0W85t1wYcJyP2plXadf

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-nyha-functional-capacity-class-lookup-5d4bb9d6
```

Example prompt: Look up NYHA functional capacity class 3 — give me the official 1994 description, the numeric score, and the max score.

## When to prefer this

Use this endpoint when you need the authoritative, verbatim NYHA 1994 ninth-edition functional capacity class description and score for a given class integer. It is purpose-built for clinical annotation, structured reporting, and decision-support pipelines that must cite the correct published text rather than paraphrase it. It is not a diagnosis tool and does not cover ACC/AHA heart failure stages or NYHA Objective Assessment A–D.

## Known failure modes

- Missing or null nyha_class parameter returns a validation error
- nyha_class value outside 1–4 (e.g. 0 or 5) returns an error or undefined behaviour
- Non-integer nyha_class (e.g. float or string) rejected by schema validation
- Network or payment (x402) failure prevents response delivery

## How this service works

NYHA 1994 functional capacity class 1-4 as assigned by the caller (Criteria Committee of the New York Heart Association, 9th edition). Returns class, score, max 4, and the published class description. Functional capacity only; not Objective Assessment A-D and not ACC/AHA stages. Not a heart-failure diagnosis; magent does not examine the patient.

## Output

Returns a JSON object containing the NYHA functional capacity class integer (1–4), its numeric score, the maximum possible score (4), and the verbatim published class description from the 1994 ninth-edition Criteria Committee of the New York Heart Association.

## 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": [
      "nyha_class"
     ],
     "properties": {
      "nyha_class": {
       "type": "integer",
       "description": "NYHA 1994 functional capacity class 1-4 as assigned by the caller (1 no limitation of ordinary activity; 2 slight limitation, comfortable at rest, ordinary activity causes symptoms; 3 marked limitation, less than ordinary activity causes symptoms; 4 inability to carry on any physical activity without discomfort, symptoms may be present at rest). magent does not examine the patient."
      }
     }
    }
   },
   "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-nyha-functional-capacity-class-lookup-5d4bb9d6/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)
