magent
Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.
Live 402 challenge
Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.
{
"error": "PAYMENT-SIGNATURE header is required",
"accepts": [
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront",
"resourceUrl": "https://api.magentlab.com/api/calc/framingham_chd",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"withdrawDelay": 86400,
"receiverAuthorizer": "0x3721824a31197dcDD2984cF43b92B6cc8A87c0Fb",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "batch-settlement",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
],
"resource": {
"url": "https://api.magentlab.com/api/calc/framingham_chd",
"tags": [
"framingham-chd",
"chd-risk",
"lipids",
"calculator"
],
"mimeType": "application/json",
"description": "Wilson 1998 Framingham 10-year CHD from sex-specific total-cholesterol point sheets: age 30-74, TC, HDL, JNC-V blood pressure, diabetes, and smoking. Deterministic published arithmetic with citation. Not a statin order, not ATP-III 2001, not pooled-cohort ASCVD. magent does not measure lipids or BP.",
"serviceName": "magent"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"age": 30,
"sex": "male",
"smoker": false,
"diabetes": false,
"dbp_mm_hg": 70,
"hdl_mg_dl": 45,
"sbp_mm_hg": 110,
"total_cholesterol_mg_dl": 180
}
},
"output": {
"type": "json",
"example": {
"sex": "male",
"score": -1,
"smoker": false,
"formula": "framingham_chd",
"age_band": "30-34",
"citation": {
"id": "wilson-1998",
"doi": "10.1161/01.CIR.97.18.1837",
"pmid": "9603539",
"title": "Prediction of coronary heart disease using risk factor categories",
"source": "Circulation. 1998;97(18):1837-1847",
"authors": "Wilson PW, D'Agostino RB, Levy D, Belanger AM, Silbershatz H, Kannel WB"
},
"diabetes": false,
"hdl_band": "45-59",
"age_years": 30,
"dbp_mm_hg": 70,
"hdl_mg_dl": 45,
"max_score": 19,
"sbp_mm_hg": 110,
"components": [
{
"band": "30-34",
"value": 30,
"factor": "age",
"points": -1,
"present": true
},
{
"band": "160-199",
"value": 180,
"factor": "total_cholesterol",
"points": 0,
"present": true
},
{
"band": "45-59",
"value": 45,
"factor": "hdl",
"points": 0,
"present": true
},
{
"value": "optimal",
"factor": "blood_pressure",
"points": 0,
"present": true
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "smoker",
"points": 0,
"present": 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.",
"cholesterol_band": "160-199",
"formula_expression": "Wilson 1998 TC point sheets (Figs 3-4): sex-specific age + total cholesterol + HDL + JNC-V BP (higher of SBP/DBP stage) + diabetes + smoker; men age 30-34 -1, 35-39 0, 40-44 1, 45-49 2, 50-54 3, 55-59 4, 60-64 5, 65-69 6, 70-74 7; men TC <160 -3, 160-199 0, 200-239 1, 240-279 2, >=280 3; men HDL <35 2, 35-44 1, 45-59 0, >=60 -2; men BP optimal/normal 0, high-normal 1, stage I 2, stage II-IV 3; men diabetes 2, smoker 2; women age 30-34 -9, 35-39 -4, 40-44 0, 45-49 3, 50-54 6, 55-59 7, 60-74 8; women TC <160 -2, 160-199 0, 200-239 1, 240-279 1, >=280 3; women HDL <35 5, 35-44 2, 45-49 1, 50-59 0, >=60 -3; women BP optimal -3, normal/high-normal 0, stage I 2, stage II-IV 3; women diabetes 4, smoker 2; 10-year CHD % from the published point-total lookup; age 30-74; no race; not ATP-III",
"blood_pressure_category": "optimal",
"total_cholesterol_mg_dl": 180,
"ten_year_chd_risk_percent": 2,
"ten_year_chd_risk_at_or_above": false
}
},
"iconUrl": "https://api.magentlab.com/favicon.ico"
},
"schema": {
"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",
"sex",
"total_cholesterol_mg_dl",
"hdl_mg_dl",
"sbp_mm_hg",
"dbp_mm_hg",
"diabetes",
"smoker"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years. Wilson 1998 derivation was ages 30-74; magent accepts that published range only. Sex-specific 5-year point bands from Figs 3-4."
},
"sex": {
"enum": [
"female",
"male"
],
"type": "string",
"description": "female or male. Wilson 1998 published separate point sheets. No race coefficient."
},
"smoker": {
"type": "boolean",
"description": "Current cigarette smoking as assigned by the caller (Wilson 1998 dichotomous). true is 2 points in both sexes. Former smoking is false. magent does not take a smoking history."
},
"diabetes": {
"type": "boolean",
"description": "Diabetes as assigned by the caller (Wilson 1998 dichotomous). true is 2 points in men and 4 points in women. magent does not assay glucose."
},
"dbp_mm_hg": {
"type": "number",
"description": "Diastolic blood pressure in mm Hg (40-150, magent clamp). JNC-V: <80 optimal, 80-84 normal, 85-89 high-normal, 90-99 stage I, >=100 stage II-IV. magent does not measure blood pressure."
},
"hdl_mg_dl": {
"type": "number",
"description": "HDL cholesterol in mg/dL (5-150, magent clamp). Wilson 1998 HDL bands: <35, 35-44, 45-49, 50-59, >=60. magent does not assay lipids."
},
"sbp_mm_hg": {
"type": "number",
"description": "Systolic blood pressure in mm Hg (70-260, magent clamp). JNC-V categories with diastolic: when SBP and DBP stages differ, use the higher point value (Wilson 1998 Fig 3-4). magent does not measure blood pressure. Not ATP-III treated vs untreated SBP."
},
"total_cholesterol_mg_dl": {
"type": "number",
"description": "Total cholesterol in mg/dL (50-500, magent clamp). Wilson 1998 TC bands: <160, 160-199, 200-239, 240-279, >=280. Not the LDL-C sheet. magent does not assay lipids."
}
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
}
}
}
}
},
"x402Version": 2
}Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 0.005 USDC on Base to 0x836B…19Ee2. The signed payment is good for 10 minutes.
- Paid to
- 0x836B…19Ee2
- USD Coin contract
- 0x8335…02913
- Payment window
- 10 minutes
- As published
- 5000 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront",
"resourceUrl": "https://api.magentlab.com/api/calc/framingham_chd",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"items": [
{
"age": 30,
"sex": "male",
"smoker": false,
"diabetes": false,
"dbp_mm_hg": 70,
"hdl_mg_dl": 45,
"sbp_mm_hg": 110,
"total_cholesterol_mg_dl": 180
},
{
"age": 30,
"sex": "male",
"smoker": false,
"diabetes": false,
"dbp_mm_hg": 70,
"hdl_mg_dl": 45,
"sbp_mm_hg": 110,
"total_cholesterol_mg_dl": 180
}
]
},
"type": "http",
"method": "POST"
},
"output": {
"type": "json",
"example": {
"path": "/api/calc/framingham_chd",
"count": 2,
"items": [
{
"sex": "male",
"score": -1,
"smoker": false,
"formula": "framingham_chd",
"age_band": "30-34",
"citation": {
"id": "wilson-1998",
"doi": "10.1161/01.CIR.97.18.1837",
"pmid": "9603539",
"title": "Prediction of coronary heart disease using risk factor categories",
"source": "Circulation. 1998;97(18):1837-1847",
"authors": "Wilson PW, D'Agostino RB, Levy D, Belanger AM, Silbershatz H, Kannel WB"
},
"diabetes": false,
"hdl_band": "45-59",
"age_years": 30,
"dbp_mm_hg": 70,
"hdl_mg_dl": 45,
"max_score": 19,
"sbp_mm_hg": 110,
"components": [
{
"band": "30-34",
"value": 30,
"factor": "age",
"points": -1,
"present": true
},
{
"band": "160-199",
"value": 180,
"factor": "total_cholesterol",
"points": 0,
"present": true
},
{
"band": "45-59",
"value": 45,
"factor": "hdl",
"points": 0,
"present": true
},
{
"value": "optimal",
"factor": "blood_pressure",
"points": 0,
"present": true
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "smoker",
"points": 0,
"present": 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.",
"cholesterol_band": "160-199",
"formula_expression": "Wilson 1998 TC point sheets (Figs 3-4): sex-specific age + total cholesterol + HDL + JNC-V BP (higher of SBP/DBP stage) + diabetes + smoker; men age 30-34 -1, 35-39 0, 40-44 1, 45-49 2, 50-54 3, 55-59 4, 60-64 5, 65-69 6, 70-74 7; men TC <160 -3, 160-199 0, 200-239 1, 240-279 2, >=280 3; men HDL <35 2, 35-44 1, 45-59 0, >=60 -2; men BP optimal/normal 0, high-normal 1, stage I 2, stage II-IV 3; men diabetes 2, smoker 2; women age 30-34 -9, 35-39 -4, 40-44 0, 45-49 3, 50-54 6, 55-59 7, 60-74 8; women TC <160 -2, 160-199 0, 200-239 1, 240-279 1, >=280 3; women HDL <35 5, 35-44 2, 45-49 1, 50-59 0, >=60 -3; women BP optimal -3, normal/high-normal 0, stage I 2, stage II-IV 3; women diabetes 4, smoker 2; 10-year CHD % from the published point-total lookup; age 30-74; no race; not ATP-III",
"blood_pressure_category": "optimal",
"total_cholesterol_mg_dl": 180,
"ten_year_chd_risk_percent": 2,
"ten_year_chd_risk_at_or_above": false
},
{
"sex": "male",
"score": -1,
"smoker": false,
"formula": "framingham_chd",
"age_band": "30-34",
"citation": {
"id": "wilson-1998",
"doi": "10.1161/01.CIR.97.18.1837",
"pmid": "9603539",
"title": "Prediction of coronary heart disease using risk factor categories",
"source": "Circulation. 1998;97(18):1837-1847",
"authors": "Wilson PW, D'Agostino RB, Levy D, Belanger AM, Silbershatz H, Kannel WB"
},
"diabetes": false,
"hdl_band": "45-59",
"age_years": 30,
"dbp_mm_hg": 70,
"hdl_mg_dl": 45,
"max_score": 19,
"sbp_mm_hg": 110,
"components": [
{
"band": "30-34",
"value": 30,
"factor": "age",
"points": -1,
"present": true
},
{
"band": "160-199",
"value": 180,
"factor": "total_cholesterol",
"points": 0,
"present": true
},
{
"band": "45-59",
"value": 45,
"factor": "hdl",
"points": 0,
"present": true
},
{
"value": "optimal",
"factor": "blood_pressure",
"points": 0,
"present": true
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "smoker",
"points": 0,
"present": 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.",
"cholesterol_band": "160-199",
"formula_expression": "Wilson 1998 TC point sheets (Figs 3-4): sex-specific age + total cholesterol + HDL + JNC-V BP (higher of SBP/DBP stage) + diabetes + smoker; men age 30-34 -1, 35-39 0, 40-44 1, 45-49 2, 50-54 3, 55-59 4, 60-64 5, 65-69 6, 70-74 7; men TC <160 -3, 160-199 0, 200-239 1, 240-279 2, >=280 3; men HDL <35 2, 35-44 1, 45-59 0, >=60 -2; men BP optimal/normal 0, high-normal 1, stage I 2, stage II-IV 3; men diabetes 2, smoker 2; women age 30-34 -9, 35-39 -4, 40-44 0, 45-49 3, 50-54 6, 55-59 7, 60-74 8; women TC <160 -2, 160-199 0, 200-239 1, 240-279 1, >=280 3; women HDL <35 5, 35-44 2, 45-49 1, 50-59 0, >=60 -3; women BP optimal -3, normal/high-normal 0, stage I 2, stage II-IV 3; women diabetes 4, smoker 2; 10-year CHD % from the published point-total lookup; age 30-74; no race; not ATP-III",
"blood_pressure_category": "optimal",
"total_cholesterol_mg_dl": 180,
"ten_year_chd_risk_percent": 2,
"ten_year_chd_risk_at_or_above": false
}
]
}
},
"iconUrl": "https://api.magentlab.com/favicon.ico"
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"body": {
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"age",
"sex",
"total_cholesterol_mg_dl",
"hdl_mg_dl",
"sbp_mm_hg",
"dbp_mm_hg",
"diabetes",
"smoker"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years. Wilson 1998 derivation was ages 30-74; magent accepts that published range only. Sex-specific 5-year point bands from Figs 3-4."
},
"sex": {
"enum": [
"female",
"male"
],
"type": "string",
"description": "female or male. Wilson 1998 published separate point sheets. No race coefficient."
},
"smoker": {
"type": "boolean",
"description": "Current cigarette smoking as assigned by the caller (Wilson 1998 dichotomous). true is 2 points in both sexes. Former smoking is false. magent does not take a smoking history."
},
"diabetes": {
"type": "boolean",
"description": "Diabetes as assigned by the caller (Wilson 1998 dichotomous). true is 2 points in men and 4 points in women. magent does not assay glucose."
},
"dbp_mm_hg": {
"type": "number",
"description": "Diastolic blood pressure in mm Hg (40-150, magent clamp). JNC-V: <80 optimal, 80-84 normal, 85-89 high-normal, 90-99 stage I, >=100 stage II-IV. magent does not measure blood pressure."
},
"hdl_mg_dl": {
"type": "number",
"description": "HDL cholesterol in mg/dL (5-150, magent clamp). Wilson 1998 HDL bands: <35, 35-44, 45-49, 50-59, >=60. magent does not assay lipids."
},
"sbp_mm_hg": {
"type": "number",
"description": "Systolic blood pressure in mm Hg (70-260, magent clamp). JNC-V categories with diastolic: when SBP and DBP stages differ, use the higher point value (Wilson 1998 Fig 3-4). magent does not measure blood pressure. Not ATP-III treated vs untreated SBP."
},
"total_cholesterol_mg_dl": {
"type": "number",
"description": "Total cholesterol in mg/dL (50-500, magent clamp). Wilson 1998 TC bands: <160, 160-199, 200-239, 240-279, >=280. Not the LDL-C sheet. magent does not assay lipids."
}
}
},
"maxItems": 25,
"minItems": 1
}
},
"additionalProperties": false
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"type": "string",
"const": "POST"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-08-31 13:13Z
- Last indexed by Roundhouse
- 2026-09-07 06:20Z
- Last enriched (probe, favicon, geo)
- 2026-09-22 18:45Z
- x402 version
- 2
- Max timeout
- 600s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 9 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service magent and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=magent' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://api.magentlab.com/api/calc/framingham_chd, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402, or use an organization key from https://roundhouseai.io/dashboard/team. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.