MA
Agent Service · x402 · early usage

Fox 2017 GARFIELD-AF 1-year all-cause mortality, ischaemic stroke/systemic embolism, an…

Fox 2017 GARFIELD-AF 1-year all-cause mortality, ischaemic stroke/systemic embolism, and major bleed from age, sex, weight, pulse, diastolic BP, comorbidities, smoking, caller-assigned ethnicity (White/Caucasian reference; Hispanic/Latino, Asian, Black/Mixed/…

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

30d calls5
30d payers2
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

Fox 2017 GARFIELD-AF 1-year all-cause mortality, ischaemic stroke/systemic embolism, and major bleed from age, sex, weight, pulse, diastolic BP, comorbidities, smoking, caller-assigned ethnicity (White/Caucasian reference; Hispanic/Latino, Asian, Black/Mixed/Other), oral anticoagulant class (none, NOAC, VKA), carotid occlusive disease, and antiplatelet therapy. Published 1-year equations. magent does not assign race or ethnicity. Not a diagnosis or anticoagulation order.

Tags: garfield-af · atrial-fibrillation · mortality · stroke · calculator · bazaar

Call contract

Method
POST
Input
HTTP request
Output
json
Last paid call
2026-10-13
Input example from Bazaar metadata
{
  "items": [
    {
      "age": 65,
      "antiplatelet": false,
      "carotid_occlusive_disease": false,
      "current_smoking": false,
      "dementia": false,
      "diabetes": false,
      "diastolic_bp_mm_hg": 80,
      "ethnicity": "white",
      "heart_failure": false,
      "history_of_bleeding": false,
      "moderate_to_severe_ckd": false,
      "oac": "none",
      "prior_stroke": false,
      "pulse": 70,
      "sex": "male",
      "vascular_disease": false,
      "weight_kg": 75
    },
    {
      "age": 65,
      "antiplatelet": false,
      "carotid_occlusive_disease": false,
      "current_smoking": false,
      "dementia": false,
      "diabetes": false,
      "diastolic_bp_mm_hg": 80,
      "ethnicity": "white",
      "heart_failure": false,
      "history_of_bleeding": false,
      "moderate_to_severe_ckd": false,
      "oac": "none",
      "prior_stroke": false,
      "pulse": 70,
      "sex": "male",
      "vascular_disease": false,
      "weight_kg": 75
    }
  ]
}
Output example
{
  "count": 2,
  "items": [
    {
      "age": 65,
      "antiplatelet": false,
      "bleed_1y_percent": 0.7,
      "bleed_lp": -0.20835515,
      "carotid_occlusive_disease": false,
      "citation": {
        "authors": "Fox KAA, Lucas JE, Pieper KS, et al.",
        "doi": "10.1136/bmjopen-2017-017157",
        "id": "fox-2017-garfield-af",
        "pmid": "29273652",
        "source": "BMJ Open. 2017;7(12):e017157",
        "title": "Improved risk stratification of patients with atrial fibrillation: an integrated GARFIELD-AF tool for the prediction of mortality, stroke and bleed in patients with and without anticoagulation"
      },
      "current_smoking": false,
      "dementia": false,
      "diabetes": false,
      "diastolic_bp_mm_hg": 80,
      "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.",
      "ethnicity": "white",
      "formula": "garfield_af",
      "formula_expression": "mortality_1y_percent = 100*(1-0.962450119**exp(lp_mort)); lp_mort = 0.306202287*female + 0.693789082*heart_failure + 0.306120964*vascular_disease + 0.26585298*prior_stroke + 0.385407386*history_of_bleeding + 0.280133213*diabetes + 0.377903886*moderate_to_severe_ckd + 0.489453313*dementia + 0.345481149*current_smoking - 0.414591263*oac_noac - 0.18593561*oac_vka + 0.157023564*ethnicity_hispanic_latino - 0.609609055*ethnicity_asian + 0.375675102*ethnicity_black_mixed_other + 0.031050027*(age-65) if age<=65 + 0.064594824*(age-65) if age>65 - 0.021535182*(weight_kg-75) if weight_kg<=75 + 0.007678035*(pulse-120) if pulse<=120 - 0.019304333*(dbp-80) if dbp<=80; stroke_1y_percent = 100*(1-0.987574311**exp(lp_stroke)); lp_stroke = 0.233182644*heart_failure + 0.197919709*vascular_disease + 0.800863063*prior_stroke + 0.29883967*history_of_bleeding + 0.211995445*diabetes + 0.349516938*moderate_to_severe_ckd + 0.513221391*dementia + 0.478831506*current_smoking - 0.572199357*oac_noac - 0.352373263*oac_vka + 0.039138147*(age-65) + 0.01590016*(dbp-80) if dbp>80; bleed_1y_percent = 100*(1-0.991720115**exp(lp_bleed)); lp_bleed = 0.168950627*vascular_disease + 0.782237771*history_of_bleeding + 0.316245771*carotid_occlusive_disease + 0.498686574*moderate_to_severe_ckd + 0.24232543*oac_noac + 0.609713354*oac_vka + 0.236620846*antiplatelet + 0.176898047*diabetes + 0.043476276*(age-65) + 0.004167103*(pulse-120); Fox 2017 / GARFIELD-AF 1-year equations; White/Caucasian ethnicity reference 0; magent does not assign race or ethnicity",
      "heart_failure": false,
      "history_of_bleeding": false,
      "moderate_to_severe_ckd": false,
      "mortality_1y_percent": 2.6,
      "mortality_lp": -0.38390175,
      "oac": "none",
      "prior_stroke": false,
      "pulse": 70,
      "sex": "male",
      "stroke_1y_percent": 1.2,
      "stroke_lp": 0,
      "vascular_disease": false,
      "weight_kg": 75
    },
    {
      "age": 65,
      "antiplatelet": false,
      "bleed_1y_percent": 0.7,
      "bleed_lp": -0.20835515,
      "carotid_occlusive_disease": false,
      "citation": {
        "authors": "Fox KAA, Lucas JE, Pieper KS, et al.",
        "doi": "10.1136/bmjopen-2017-017157",
        "id": "fox-2017-garfield-af",
        "pmid": "29273652",
        "source": "BMJ Open. 2017;7(12):e017157",
        "title": "Improved risk stratification of patients with atrial fibrillation: an integrated GARFIELD-AF tool for the prediction of mortality, stroke and bleed in patients with and without anticoagulation"
      },
      "current_smoking": false,
      "dementia": false,
      "diabetes": false,
      "diastolic_bp_mm_hg": 80,
      "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.",
      "ethnicity": "white",
      "formula": "garfield_af",
      "formula_expression": "mortality_1y_percent = 100*(1-0.962450119**exp(lp_mort)); lp_mort = 0.306202287*female + 0.693789082*heart_failure + 0.306120964*vascular_disease + 0.26585298*prior_stroke + 0.385407386*history_of_bleeding + 0.280133213*diabetes + 0.377903886*moderate_to_severe_ckd + 0.489453313*dementia + 0.345481149*current_smoking - 0.414591263*oac_noac - 0.18593561*oac_vka + 0.157023564*ethnicity_hispanic_latino - 0.609609055*ethnicity_asian + 0.375675102*ethnicity_black_mixed_other + 0.031050027*(age-65) if age<=65 + 0.064594824*(age-65) if age>65 - 0.021535182*(weight_kg-75) if weight_kg<=75 + 0.007678035*(pulse-120) if pulse<=120 - 0.019304333*(dbp-80) if dbp<=80; stroke_1y_percent = 100*(1-0.987574311**exp(lp_stroke)); lp_stroke = 0.233182644*heart_failure + 0.197919709*vascular_disease + 0.800863063*prior_stroke + 0.29883967*history_of_bleeding + 0.211995445*diabetes + 0.349516938*moderate_to_severe_ckd + 0.513221391*dementia + 0.478831506*current_smoking - 0.572199357*oac_noac - 0.352373263*oac_vka + 0.039138147*(age-65) + 0.01590016*(dbp-80) if dbp>80; bleed_1y_percent = 100*(1-0.991720115**exp(lp_bleed)); lp_bleed = 0.168950627*vascular_disease + 0.782237771*history_of_bleeding + 0.316245771*carotid_occlusive_disease + 0.498686574*moderate_to_severe_ckd + 0.24232543*oac_noac + 0.609713354*oac_vka + 0.236620846*antiplatelet + 0.176898047*diabetes + 0.043476276*(age-65) + 0.004167103*(pulse-120); Fox 2017 / GARFIELD-AF 1-year equations; White/Caucasian ethnicity reference 0; magent does not assign race or ethnicity",
      "heart_failure": false,
      "history_of_bleeding": false,
      "moderate_to_severe_ckd": false,
      "mortality_1y_percent": 2.6,
      "mortality_lp": -0.38390175,
      "oac": "none",
      "prior_stroke": false,
      "pulse": 70,
      "sex": "male",
      "stroke_1y_percent": 1.2,
      "stroke_lp": 0,
      "vascular_disease": false,
      "weight_kg": 75
    }
  ],
  "path": "/api/calc/garfield_af"
}

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/39162.json for the price and payment options.
  3. Pay. Call GET https://api.magentlab.com/api/calc/garfield_af. 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
5 calls · 2 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/garfield_af"
# -> 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/garfield_af");
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/garfield_af")
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/garfield_af
Machine-readable
/resources/39162.json