# Bangalore 2023 Composite PE Shock Score (CPES)

> Bangalore 2023 Composite PE Shock Score (CPES) 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).

Calculates the Bangalore 2023 six-point composite PE shock score for intermediate-risk pulmonary embolism by summing six caller-assigned boolean flags.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/cpes
- 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/bangalore-2023-composite-pe-shock-score-cpes-b3490393
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SzGdtTFbyOIZFTeGT6CII

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 bangalore-2023-composite-pe-shock-score-cpes-b3490393
```

Example prompt: Compute the Bangalore 2023 composite PE shock score for my patient: troponin is elevated, BNP is elevated, RV dysfunction is moderate-to-severe, it's a saddle PE, there's a concomitant DVT, and heart rate is 112 bpm (tachycardia).

## When to prefer this

Use this endpoint when you need to compute the Bangalore 2023 composite PE shock score specifically for intermediate-risk PE patients and all six clinical flags (troponin, BNP, RV dysfunction, saddle PE, DVT, tachycardia) have already been interpreted and assigned by a clinician. Prefer this over PESI, sPESI, or Bova scores when the Bangalore 2023 scoring system is explicitly required.

## Known failure modes

- Missing any of the six required boolean query parameters returns an error
- Non-boolean values for flags cause a validation error
- Score is only valid for intermediate-risk PE; caller is responsible for correct patient classification
- Endpoint does not validate biomarker thresholds or imaging findings — those must be pre-assigned by the caller

## How this service works

Bangalore 2023 composite PE shock score for intermediate-risk PE. Six equally weighted caller-assigned flags (elevated troponin per local assay, elevated BNP, moderate or severe RV dysfunction, saddle PE, concomitant DVT, tachycardia ≥100 beats/min), 1 point each, max 6. Integer 0–6 score only; no named bands. magent does not invent biomarker cutoffs, read echo, or take raw heart rate. Not a shock diagnosis, not sPESI/Bova/PESI, not hypotensive PE, and not a medical device.

## Output

Returns an integer score from 0 to 6 representing the Bangalore 2023 composite PE shock score, computed as the sum of the six caller-assigned boolean flags (each true flag contributes 1 point). No named risk bands are returned.

## 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": [
      "elevated_troponin",
      "elevated_bnp",
      "moderate_or_severe_rv_dysfunction",
      "saddle_pe",
      "concomitant_dvt",
      "tachycardia"
     ],
     "properties": {
      "saddle_pe": {
       "type": "boolean",
       "description": "Saddle PE or central thrombus burden, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not read imaging."
      },
      "tachycardia": {
       "type": "boolean",
       "description": "Tachycardia ≥100 beats/min as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not take raw heart rate."
      },
      "elevated_bnp": {
       "type": "boolean",
       "description": "Elevated BNP, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. Site cutoffs were not standardized; magent does not invent a numeric threshold or read the assay."
      },
      "concomitant_dvt": {
       "type": "boolean",
       "description": "Concomitant DVT, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. magent does not diagnose DVT."
      },
      "elevated_troponin": {
       "type": "boolean",
       "description": "Elevated troponin per local assay, as assigned by the caller (Bangalore 2023). true scores 1; false scores 0. Site cutoffs were not standardized; magent does not invent a numeric threshold or read the assay."
      },
      "moderate_or_severe_rv_dysfunction": {
       "type": "boolean",
       "description": "Moderately or severely reduced RV function, as assigned by the caller (Bangalore 2023). Normal or mild reduction is false. true scores 1; false scores 0. magent does not read echo."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bangalore-2023-composite-pe-shock-score-cpes-b3490393/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)
