# magent RibScore (Chapman 2016)

> magent RibScore (Chapman 2016) 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 Chapman 2016 RibScore (0–6) from six caller-assigned radiographic boolean flags, each worth 1 point, linearly associated with pneumonia, respiratory failure, and tracheostomy risk.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ribscore
- 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-ribscore-chapman-2016-e280de3f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O_nsJzMKX1CXTGI36XSWW

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-ribscore-chapman-2016-e280de3f
```

Example prompt: Calculate the Chapman 2016 RibScore for my trauma patient: they have six or more rib fractures — yes, bilateral — yes, no flail chest, three or more severely displaced fractures — yes, first rib fracture — yes, and fractures in all three anatomic areas — yes.

## When to prefer this

Use this endpoint when you have already interpreted a chest CT or clinical exam and need to compute the validated Chapman 2016 RibScore from six discrete radiographic flags. It is deterministic arithmetic with a published citation and is appropriate for clinical documentation, trauma registry scoring, and decision support pipelines. Do not use it as a substitute for CT interpretation or clinical assessment — the caller must supply all six boolean flags.

## Known failure modes

- Missing required boolean query parameters returns a validation error
- Non-boolean values for flag parameters cause schema rejection
- Network timeout if the endpoint is temporarily unavailable
- HTTP 402 Payment Required if the x402 payment header is absent or insufficient

## How this service works

Chapman 2016 RibScore from six caller-assigned radiographic flags (≥6 rib fractures, bilateral, flail chest, ≥3 severely bicortical displaced, first rib, and all three anatomic areas). 1 point each, total 0-6. Associated linearly with pneumonia, respiratory failure, and tracheostomy. magent does not read a CT. Deterministic published arithmetic with citation; not a named risk class.

## Output

Returns the Chapman 2016 RibScore as an integer between 0 and 6, computed by summing the six boolean flags (1 point each). Higher scores correlate linearly with risk of pneumonia, respiratory failure, and need for tracheostomy.

## 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": [
      "six_or_more_ribs",
      "bilateral",
      "flail_chest",
      "three_or_more_displaced",
      "first_rib",
      "all_three_areas"
     ],
     "properties": {
      "bilateral": {
       "type": "boolean",
       "description": "Bilateral rib fractures as assigned by the caller (Chapman 2016). true or false. magent does not read a CT."
      },
      "first_rib": {
       "type": "boolean",
       "description": "First rib fracture as assigned by the caller (Chapman 2016). true or false. magent does not read a CT."
      },
      "flail_chest": {
       "type": "boolean",
       "description": "Flail chest as assigned by the caller (Chapman 2016). true or false. magent does not read a CT or examine the chest wall."
      },
      "all_three_areas": {
       "type": "boolean",
       "description": "At least one fracture in all three anatomic areas (anterior, lateral, and posterior) as assigned by the caller (Chapman 2016). true or false. magent does not read a CT or assign anatomic zones."
      },
      "six_or_more_ribs": {
       "type": "boolean",
       "description": "Six or more rib fractures as assigned by the caller (Chapman 2016). true or false. magent does not read a CT or count fractures."
      },
      "three_or_more_displaced": {
       "type": "boolean",
       "description": "Three or more severely (bicortical) displaced rib fractures as assigned by the caller (Chapman 2016). true or false. magent does not read a CT or grade displacement."
      }
     }
    }
   },
   "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-ribscore-chapman-2016-e280de3f/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)
