# MACOCHA Score Calculator

> MACOCHA Score 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).

Computes the De Jong 2013 MACOCHA score (0–12) for predicting difficult intubation risk from seven caller-assigned clinical flags

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/macocha
- 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/macocha-score-calculator-675ae876
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tawu5_tuM0dhCSFxjHHbK

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 macocha-score-calculator-675ae876
```

Example prompt: Calculate the MACOCHA score for a patient who has Mallampati III, known obstructive sleep apnea, no reduced cervical mobility, no limited mouth opening, is in a coma, no severe hypoxemia, and the operator is not an anesthesiologist.

## When to prefer this

Use this endpoint when you have all seven MACOCHA clinical flags pre-assessed by a clinician and need a validated, evidence-based numeric score for difficult intubation prediction per De Jong 2013; prefer it over manual calculation to avoid arithmetic errors and to get a structured high_risk classification automatically. Not suitable if raw clinical measurements (GCS, SpO2 values, Mallampati class integer) need to be interpreted first — the caller must pre-classify those flags.

## Known failure modes

- Missing any of the seven required boolean query parameters returns a 400 validation error
- Passing non-boolean values (e.g. strings or integers) for flag fields causes schema rejection
- Payment failure or missing x402 payment header results in 402 Payment Required
- Network timeout if the API host is unreachable

## How this service works

De Jong 2013 MACOCHA from seven caller-assigned flags: Mallampati III or IV (5), OSA (2), reduced cervical mobility (1), mouth opening <3 cm (1), coma (1), SpO2 <80% (1), non-anesthesiologist (1). Total 0-12 (0 easy, 12 very difficult); high_risk at >=3. Not an intubation order. magent does not examine the airway, compute GCS, or measure SpO2.

## Output

Returns a MACOCHA total score from 0 to 12, a boolean high_risk flag (true when score >= 3), and a textual difficulty interpretation; higher scores indicate greater predicted difficulty of intubation.

## 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": [
      "mallampati_iii_iv",
      "obstructive_sleep_apnea",
      "reduced_cervical_mobility",
      "limited_mouth_opening",
      "coma",
      "severe_hypoxemia",
      "non_anesthesiologist"
     ],
     "properties": {
      "coma": {
       "type": "boolean",
       "description": "Coma as assigned by the caller (De Jong 2013 Table 1 pathology item; typically GCS <8 in that derivation). true or false. magent does not take raw GCS or compute GCS."
      },
      "severe_hypoxemia": {
       "type": "boolean",
       "description": "Severe hypoxemia (SpO2 <80%) as assigned by the caller (De Jong 2013 Table 1). true or false. magent does not measure SpO2."
      },
      "mallampati_iii_iv": {
       "type": "boolean",
       "description": "Mallampati class III or IV as assigned by the caller (De Jong 2013 Table 1). true or false. Not a 1-4 Mallampati integer. magent does not examine the airway."
      },
      "non_anesthesiologist": {
       "type": "boolean",
       "description": "Non-anesthesiologist operator as assigned by the caller (De Jong 2013 Table 1). true or false. magent does not identify the operator."
      },
      "limited_mouth_opening": {
       "type": "boolean",
       "description": "Limited mouth opening <3 cm as assigned by the caller (De Jong 2013 Table 1). true or false. magent does not measure mouth opening."
      },
      "obstructive_sleep_apnea": {
       "type": "boolean",
       "description": "Obstructive sleep apnea syndrome as assigned by the caller (De Jong 2013 Table 1). true or false. magent does not diagnose sleep apnea."
      },
      "reduced_cervical_mobility": {
       "type": "boolean",
       "description": "Reduced mobility of the cervical spine as assigned by the caller (De Jong 2013 Table 1). true or false. magent does not examine the neck."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/macocha-score-calculator-675ae876/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)
