# PRECISE-DAPT Bleeding Risk Score Calculator

> PRECISE-DAPT Bleeding Risk 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-15).

Computes the Costa 2017 PRECISE-DAPT integer score (0–100) for predicting bleeding risk after coronary stenting, flagging high bleeding risk when score ≥25

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/precise_dapt
- 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/precise-dapt-bleeding-risk-score-calculator-43ef1fed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j7rkX5nG1z1FN_YmP-D7Z

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 precise-dapt-bleeding-risk-score-calculator-43ef1fed
```

Example prompt: Calculate the PRECISE-DAPT bleeding risk score for a 72-year-old patient with a creatinine clearance of 45 mL/min, hemoglobin of 10.5 g/dL, WBC of 8.2 ×10³/µL, and no prior spontaneous bleeding history — tell me the score and whether they're high bleeding risk.

## When to prefer this

Use this endpoint when an AI agent or clinical workflow needs a validated, point-of-care bleeding risk integer score specifically for post-coronary-stenting patients following the Costa 2017 PRECISE-DAPT nomogram. Prefer this over generic risk calculators when the clinical question is bleeding risk (not ischemic risk) in a DAPT context. Note: the caller must supply pre-computed CrCl (Cockcroft-Gault) — use a separate renal function endpoint if CrCl is not already available. Not intended for DAPT duration ordering or as a standalone clinical decision.

## Known failure modes

- Missing required query parameters (age, crcl_ml_min, hemoglobin_g_dl, wbc_k_ul, previous_spontaneous_bleeding) returns a 400-level error
- Out-of-range values (e.g. age <18 or >120, WBC outside 0.1–100) may be rejected or clamped
- Caller must pre-compute Cockcroft-Gault CrCl — this endpoint does not derive CrCl from serum creatinine
- Payment failure or missing x402 payment header returns 402 Payment Required
- Non-GET HTTP method returns method-not-allowed error

## How this service works

Costa 2017 PRECISE-DAPT nomogram after coronary stenting. Truncated linear points: age (0 at <=50, 19 at >=90), caller CrCl mL/min (0 at >=100, 25 at 0), hemoglobin g/dL (0 at >=12, 15 at <=10), WBC x10^3/uL (0 at <=5, 15 at >=20), plus 26 for previous spontaneous bleeding. Integer score 0-100; high_bleeding_risk if score >=25. Not a DAPT duration order. magent does not compute Cockcroft-Gault.

## Output

Returns a PRECISE-DAPT integer score from 0 to 100 computed from the truncated linear nomogram (age, CrCl, hemoglobin, WBC, prior spontaneous bleeding), along with a high_bleeding_risk boolean flag that is true when the score is 25 or above. Does not provide DAPT duration recommendations.

## 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": [
      "age",
      "crcl_ml_min",
      "hemoglobin_g_dl",
      "wbc_k_ul",
      "previous_spontaneous_bleeding"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Costa 2017 Table 1 truncates below 50 and above 90. Figure 1: <=50 scores 0; >=90 scores 19; linear between. Age 18 and age 50 both score 0."
      },
      "wbc_k_ul": {
       "type": "number",
       "description": "White-blood-cell count in x10^3 cells per uL, same as x10^9/L (0.1-100). Table 1 truncates below 5 and above 20. Figure 1: <=5 scores 0; >=20 scores 15; linear between. magent does not assay WBC."
      },
      "crcl_ml_min": {
       "type": "number",
       "description": "Creatinine clearance in mL/min (0-300) as assigned by the caller. Costa 2017 Figure 1 uses CrCl, not raw creatinine. magent does not compute Cockcroft-Gault. Truncated above 100: >=100 scores 0; 0 mL/min scores 25; linear between."
      },
      "hemoglobin_g_dl": {
       "type": "number",
       "description": "Hemoglobin in g/dL (4-22). Table 1 truncates above 12 and below 10. Figure 1: >=12.0 scores 0; <=10.0 scores 15; linear between. magent does not assay hemoglobin."
      },
      "previous_spontaneous_bleeding": {
       "type": "boolean",
       "description": "Previous spontaneous bleeding as assigned by the caller (Costa 2017). true scores 26; false scores 0. magent does not take a bleeding history."
      }
     }
    }
   },
   "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/precise-dapt-bleeding-risk-score-calculator-43ef1fed/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)
