MA
Agent Service · x402 · early usage

Pocock 2013 MAGGIC integer score from 13 heart-failure predictors (age, EF, NYHA, creat…

Pocock 2013 MAGGIC integer score from 13 heart-failure predictors (age, EF, NYHA, creatinine, diabetes, not prescribed beta-blocker, SBP, BMI, HF duration >18 months, current smoker, COPD, male sex, not prescribed ACEI/ARB), including the published age×EF and…

by api.magentlab.com · discovered, not yet claimed by its owner · updated 2026-10-12

30d calls3
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Pocock 2013 MAGGIC integer score from 13 heart-failure predictors (age, EF, NYHA, creatinine, diabetes, not prescribed beta-blocker, SBP, BMI, HF duration >18 months, current smoker, COPD, male sex, not prescribed ACEI/ARB), including the published age×EF and SBP×EF extras. Returns integer score and Table 4 1-year and 3-year death probabilities for scores 0-50. Not a diagnosis, not a treatment order, not a reason to withhold therapy. magent does not examine the patient.

Tags: maggic · heart-failure · pocock · hemodynamics · calculator · bazaar

Call contract

Method
POST
Input
HTTP request
Output
json
Last paid call
2026-10-12
Input example from Bazaar metadata
{
  "items": [
    {
      "acei_arb": true,
      "age": 50,
      "beta_blocker": true,
      "bmi_kg_m2": 30,
      "copd": false,
      "creatinine_mg_dl": 0.9,
      "creatinine_umol_l": 80,
      "current_smoker": false,
      "diabetes": false,
      "ef_percent": 55,
      "hf_duration_gt_18_months": false,
      "nyha_class": 1,
      "sex": "female",
      "systolic_mm_hg": 150
    },
    {
      "acei_arb": true,
      "age": 50,
      "beta_blocker": true,
      "bmi_kg_m2": 30,
      "copd": false,
      "creatinine_mg_dl": 0.9,
      "creatinine_umol_l": 80,
      "current_smoker": false,
      "diabetes": false,
      "ef_percent": 55,
      "hf_duration_gt_18_months": false,
      "nyha_class": 1,
      "sex": "female",
      "systolic_mm_hg": 150
    }
  ]
}
Output example
{
  "count": 2,
  "items": [
    {
      "acei_arb": true,
      "age_years": 50,
      "beta_blocker": true,
      "bmi_kg_m2": 30,
      "citation": {
        "authors": "Pocock SJ, Ariti CA, McMurray JJV, Maggioni A, Køber L, Squire IB, Swedberg K, Dobson J, Poppe KK, Whalley GA, Doughty RN",
        "doi": "10.1093/eurheartj/ehs337",
        "id": "pocock-2013",
        "pmid": "23186806",
        "source": "Eur Heart J. 2013;34(19):1404-1413",
        "title": "Predicting survival in heart failure: a risk score based on 39 372 patients from 30 studies"
      },
      "components": [
        {
          "factor": "ef",
          "points": 0,
          "present": false,
          "value": 55
        },
        {
          "factor": "age",
          "points": 0,
          "present": false,
          "value": 50
        },
        {
          "factor": "systolic_mm_hg",
          "points": 0,
          "present": false,
          "value": 150
        },
        {
          "factor": "bmi",
          "points": 0,
          "present": false,
          "value": 30
        },
        {
          "factor": "creatinine",
          "points": 0,
          "present": false,
          "value": 80
        },
        {
          "factor": "nyha_class",
          "points": 0,
          "present": false,
          "value": 1
        },
        {
          "factor": "diabetes",
          "points": 0,
          "present": false
        },
        {
          "factor": "not_prescribed_beta_blocker",
          "points": 0,
          "present": false
        },
        {
          "factor": "hf_duration_gt_18_months",
          "points": 0,
          "present": false
        },
        {
          "factor": "current_smoker",
          "points": 0,
          "present": false
        },
        {
          "factor": "copd",
          "points": 0,
          "present": false
        },
        {
          "factor": "male_sex",
          "points": 0,
          "present": false
        },
        {
          "factor": "not_prescribed_acei_arb",
          "points": 0,
          "present": false
        }
      ],
      "copd": false,
      "creatinine_umol_l": 80,
      "current_smoker": false,
      "death_probability_1y": 0.015,
      "death_probability_3y": 0.039,
      "diabetes": false,
      "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
      "ef_percent": 55,
      "formula": "maggic",
      "formula_expression": "MAGGIC integer score (Pocock 2013 Figure 2): EF <20 7, 20-24 6, 25-29 5, 30-34 3, 35-39 2, >=40 0; age extra by EF (<30 / 30-39 / >=40): <55 0/0/0, 55-59 1/2/3, 60-64 2/4/5, 65-69 4/6/7, 70-74 6/8/9, 75-79 8/10/12, >=80 10/13/15; SBP extra by EF: <110 5/3/2, 110-119 4/2/1, 120-129 3/1/1, 130-139 2/1/0, 140-149 1/0/0, >=150 0/0/0; BMI <15 6, 15-19 5, 20-24 3, 25-29 2, >=30 0; creatinine umol/L <90 0, 90-109 1, 110-129 2, 130-149 3, 150-169 4, 170-209 5, 210-249 6, >=250 8; NYHA I 0, II 2, III 6, IV 8; male 1; current smoker 1; diabetes 3; COPD 2; HF duration >18 months 2; not prescribed beta-blocker 3; not prescribed ACEI/ARB 1; Table 4 1-year and 3-year death probabilities for scores 0-50",
      "hf_duration_gt_18_months": false,
      "nyha_class": 1,
      "score": 0,
      "sex": "female",
      "systolic_mm_hg": 150
    },
    {
      "acei_arb": true,
      "age_years": 50,
      "beta_blocker": true,
      "bmi_kg_m2": 30,
      "citation": {
        "authors": "Pocock SJ, Ariti CA, McMurray JJV, Maggioni A, Køber L, Squire IB, Swedberg K, Dobson J, Poppe KK, Whalley GA, Doughty RN",
        "doi": "10.1093/eurheartj/ehs337",
        "id": "pocock-2013",
        "pmid": "23186806",
        "source": "Eur Heart J. 2013;34(19):1404-1413",
        "title": "Predicting survival in heart failure: a risk score based on 39 372 patients from 30 studies"
      },
      "components": [
        {
          "factor": "ef",
          "points": 0,
          "present": false,
          "value": 55
        },
        {
          "factor": "age",
          "points": 0,
          "present": false,
          "value": 50
        },
        {
          "factor": "systolic_mm_hg",
          "points": 0,
          "present": false,
          "value": 150
        },
        {
          "factor": "bmi",
          "points": 0,
          "present": false,
          "value": 30
        },
        {
          "factor": "creatinine",
          "points": 0,
          "present": false,
          "value": 80
        },
        {
          "factor": "nyha_class",
          "points": 0,
          "present": false,
          "value": 1
        },
        {
          "factor": "diabetes",
          "points": 0,
          "present": false
        },
        {
          "factor": "not_prescribed_beta_blocker",
          "points": 0,
          "present": false
        },
        {
          "factor": "hf_duration_gt_18_months",
          "points": 0,
          "present": false
        },
        {
          "factor": "current_smoker",
          "points": 0,
          "present": false
        },
        {
          "factor": "copd",
          "points": 0,
          "present": false
        },
        {
          "factor": "male_sex",
          "points": 0,
          "present": false
        },
        {
          "factor": "not_prescribed_acei_arb",
          "points": 0,
          "present": false
        }
      ],
      "copd": false,
      "creatinine_umol_l": 80,
      "current_smoker": false,
      "death_probability_1y": 0.015,
      "death_probability_3y": 0.039,
      "diabetes": false,
      "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
      "ef_percent": 55,
      "formula": "maggic",
      "formula_expression": "MAGGIC integer score (Pocock 2013 Figure 2): EF <20 7, 20-24 6, 25-29 5, 30-34 3, 35-39 2, >=40 0; age extra by EF (<30 / 30-39 / >=40): <55 0/0/0, 55-59 1/2/3, 60-64 2/4/5, 65-69 4/6/7, 70-74 6/8/9, 75-79 8/10/12, >=80 10/13/15; SBP extra by EF: <110 5/3/2, 110-119 4/2/1, 120-129 3/1/1, 130-139 2/1/0, 140-149 1/0/0, >=150 0/0/0; BMI <15 6, 15-19 5, 20-24 3, 25-29 2, >=30 0; creatinine umol/L <90 0, 90-109 1, 110-129 2, 130-149 3, 150-169 4, 170-209 5, 210-249 6, >=250 8; NYHA I 0, II 2, III 6, IV 8; male 1; current smoker 1; diabetes 3; COPD 2; HF duration >18 months 2; not prescribed beta-blocker 3; not prescribed ACEI/ARB 1; Table 4 1-year and 3-year death probabilities for scores 0-50",
      "hf_duration_gt_18_months": false,
      "nyha_class": 1,
      "score": 0,
      "sex": "female",
      "systolic_mm_hg": 150
    }
  ],
  "path": "/api/calc/maggic"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/39593.json for the price and payment options.
  3. Pay. Call GET https://api.magentlab.com/api/calc/maggic. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.005 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
3 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0050x836Be278f1739fB4308091cD1852F7971Bc19Ee2600s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "amountUsd": 0.005,
    "maxTimeoutSeconds": 600
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {},
  "type": "string"
}

Examples

curl
curl "https://api.magentlab.com/api/calc/maggic"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.magentlab.com/api/calc/maggic");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://api.magentlab.com/api/calc/maggic")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
api.magentlab.com
Endpoint
https://api.magentlab.com/api/calc/maggic
Machine-readable
/resources/39593.json