magent
Robinson 2011 Table 3 pCANRISK (not eCANRISK). Age 0/7/13/15; male 6; BMI 0/4/9/14; waist 0/4/6 by sex; inactivity 1; no daily fruit/veg 2; high BP 4; high glucose 14; macrosomia 1 (women); family first-degree categories ×2; caller-assigned ethnicity White 0 Aboriginal 3 Black 5 East Asian 10 South Asian 11; education 5/1/0. Max 81 F/86 M. Cutoffs 21, 29, 32, 33, 43. Not a diagnosis.
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/canrisk",
"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/canrisk",
"tags": [
"canrisk",
"pcanrisk",
"diabetes-risk",
"glucose",
"calculator"
],
"mimeType": "application/json",
"description": "Robinson 2011 Table 3 pCANRISK (not eCANRISK). Age 0/7/13/15; male 6; BMI 0/4/9/14; waist 0/4/6 by sex; inactivity 1; no daily fruit/veg 2; high BP 4; high glucose 14; macrosomia 1 (women); family first-degree categories ×2; caller-assigned ethnicity White 0 Aboriginal 3 Black 5 East Asian 10 South Asian 11; education 5/1/0. Max 81 F/86 M. Cutoffs 21, 29, 32, 33, 43. Not a diagnosis.",
"serviceName": "magent"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"age": 40,
"sex": "female",
"high_bp": false,
"waist_cm": 80,
"bmi_kg_m2": 22,
"education": "university",
"ethnicity": "white",
"macrosomia": false,
"high_glucose": false,
"activity_30min": true,
"daily_fruit_veg": true,
"family_history_count": 0
}
},
"output": {
"type": "json",
"example": {
"sex": "female",
"score": 4,
"formula": "canrisk",
"citation": {
"id": "robinson-2011-canrisk",
"doi": "10.24095/hpcdp.32.1.04",
"pmid": "22153173",
"title": "Validating the CANRISK prognostic model for assessing diabetes risk in Canada's multi-ethnic population",
"source": "Chronic Dis Inj Can. 2011;32(1):19-31",
"authors": "Robinson CA, Agarwal G, Nerenberg K"
},
"waist_cm": 80,
"age_years": 40,
"bmi_kg_m2": 22,
"education": "university",
"ethnicity": "white",
"max_score": 81,
"components": [
{
"value": 40,
"factor": "age",
"points": 0,
"present": false
},
{
"value": "female",
"factor": "sex",
"points": 0,
"present": false
},
{
"value": 22,
"factor": "bmi",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "waist",
"points": 4,
"present": true
},
{
"factor": "inactivity",
"points": 0,
"present": false
},
{
"factor": "no_daily_fruit_veg",
"points": 0,
"present": false
},
{
"factor": "high_bp",
"points": 0,
"present": false
},
{
"factor": "high_glucose",
"points": 0,
"present": false
},
{
"factor": "macrosomia",
"points": 0,
"present": false
},
{
"value": 0,
"factor": "family_history",
"points": 0,
"present": false
},
{
"value": "white",
"factor": "ethnicity",
"points": 0,
"present": false
},
{
"value": "university",
"factor": "education",
"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.",
"score_ge_21": false,
"score_ge_29": false,
"score_ge_32": false,
"score_ge_33": false,
"score_ge_43": false,
"formula_expression": "pCANRISK = age + sex + bmi + waist + inactivity + no_daily_fruit_veg + high_bp + high_glucose + macrosomia + family_history + ethnicity + education; age <45 -> 0, 45-54 -> 7, 55-64 -> 13, >=65 -> 15; male 6; BMI <25 -> 0, 25-29.9 -> 4, 30-34.9 -> 9, >=35 -> 14; waist men <94 -> 0, 94-102 -> 4, >102 -> 6; women <80 -> 0, 80-88 -> 4, >88 -> 6; inactivity 1; no daily fruit/veg 2; high_bp 4; high_glucose 14; macrosomia women 1 else N/A 0; family_history_count 0-4 first-degree categories * 2; ethnicity white 0 aboriginal 3 black 5 east_asian 10 south_asian 11 latin_american 0 other 0 (caller-assigned; Table 3 assigned no pCANRISK points to Latin American or Other); education less_than_high_school 5 high_school 1 some_college or university 0; max 81 female / 86 male; Robinson 2011 Table 3 pCANRISK not eCANRISK; published cutoffs score>=21 29 32 33 43",
"family_history_count": 0
}
},
"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",
"bmi_kg_m2",
"waist_cm",
"activity_30min",
"daily_fruit_veg",
"high_bp",
"high_glucose",
"macrosomia",
"family_history_count",
"ethnicity",
"education"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years (18-120). Robinson 2011 Table 3 pCANRISK: 19-44 scores 0; magent scores 18-44 as 0. 45-54 scores 7; 55-64 scores 13; 65-78 scores 15; magent scores ≥65 as 15. Age 44 scores 0; 45 and 54 score 7; 55 and 64 score 13; 65 scores 15."
},
"sex": {
"enum": [
"female",
"male"
],
"type": "string",
"description": "female or male. Robinson 2011 Table 3: female scores 0; male scores 6. Selects the sex-specific waist bands. Macrosomia is N/A for male (0)."
},
"high_bp": {
"type": "boolean",
"description": "History of high blood pressure (Robinson 2011 Table 3). true scores 4; false scores 0. magent does not measure blood pressure."
},
"waist_cm": {
"type": "number",
"description": "Waist circumference in cm (40-200). Robinson 2011 Table 3 men: <94 scores 0; 94-102 scores 4; >102 scores 6. Women: <80 scores 0; 80-88 scores 4; >88 scores 6. 94 and 102 (men) and 80 and 88 (women) score 4."
},
"bmi_kg_m2": {
"type": "number",
"description": "Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI from height and weight. Robinson 2011 Table 3: <25 scores 0; 25-29.9 scores 4; 30-34.9 scores 9; ≥35 scores 14. 25.0 and 29.9 score 4; 30.0 and 34.9 score 9; 35.0 scores 14."
},
"education": {
"enum": [
"less_than_high_school",
"high_school",
"some_college",
"university"
],
"type": "string",
"description": "Highest education completed (Robinson 2011 Table 3). less_than_high_school scores 5; high_school scores 1; some_college or university scores 0."
},
"ethnicity": {
"enum": [
"white",
"aboriginal",
"black",
"east_asian",
"south_asian",
"latin_american",
"other"
],
"type": "string",
"description": "Caller-assigned ethnicity using Robinson 2011 Table 3 terms. white scores 0; aboriginal 3; black 5; east_asian 10; south_asian 11. latin_american and other score 0 (Table 3 assigned no pCANRISK points; both were statistically insignificant). magent does not assign ethnicity."
},
"macrosomia": {
"type": "boolean",
"description": "Gave birth to a baby weighing 4.1 kg or more (Robinson 2011 Table 3 macrosomia, women). true scores 1 for female; false or male (N/A) scores 0."
},
"high_glucose": {
"type": "boolean",
"description": "History of high blood glucose (Robinson 2011 Table 3). Caller-assigned; magent does not assay glucose. true scores 14; false scores 0."
},
"activity_30min": {
"type": "boolean",
"description": "Usually at least 30 minutes of physical activity daily (Robinson 2011 Table 3). true scores 0; false scores 1. Caller-assigned; magent does not measure activity."
},
"daily_fruit_veg": {
"type": "boolean",
"description": "Eats fruit or vegetables every day (Robinson 2011 Table 3). true scores 0; false scores 2."
},
"family_history_count": {
"type": "integer",
"description": "Count of first-degree relative categories with diabetes: mother, father, sibling, child (Robinson 2011 Table 3 footnote g). Integer 0-4. Each category scores 2 (0, 2, 4, 6, or 8). Not second-degree relatives. magent does not take named relatives."
}
}
}
},
"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/canrisk",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"items": [
{
"age": 40,
"sex": "female",
"high_bp": false,
"waist_cm": 80,
"bmi_kg_m2": 22,
"education": "university",
"ethnicity": "white",
"macrosomia": false,
"high_glucose": false,
"activity_30min": true,
"daily_fruit_veg": true,
"family_history_count": 0
},
{
"age": 40,
"sex": "female",
"high_bp": false,
"waist_cm": 80,
"bmi_kg_m2": 22,
"education": "university",
"ethnicity": "white",
"macrosomia": false,
"high_glucose": false,
"activity_30min": true,
"daily_fruit_veg": true,
"family_history_count": 0
}
]
},
"type": "http",
"method": "POST"
},
"output": {
"type": "json",
"example": {
"path": "/api/calc/canrisk",
"count": 2,
"items": [
{
"sex": "female",
"score": 4,
"formula": "canrisk",
"citation": {
"id": "robinson-2011-canrisk",
"doi": "10.24095/hpcdp.32.1.04",
"pmid": "22153173",
"title": "Validating the CANRISK prognostic model for assessing diabetes risk in Canada's multi-ethnic population",
"source": "Chronic Dis Inj Can. 2011;32(1):19-31",
"authors": "Robinson CA, Agarwal G, Nerenberg K"
},
"waist_cm": 80,
"age_years": 40,
"bmi_kg_m2": 22,
"education": "university",
"ethnicity": "white",
"max_score": 81,
"components": [
{
"value": 40,
"factor": "age",
"points": 0,
"present": false
},
{
"value": "female",
"factor": "sex",
"points": 0,
"present": false
},
{
"value": 22,
"factor": "bmi",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "waist",
"points": 4,
"present": true
},
{
"factor": "inactivity",
"points": 0,
"present": false
},
{
"factor": "no_daily_fruit_veg",
"points": 0,
"present": false
},
{
"factor": "high_bp",
"points": 0,
"present": false
},
{
"factor": "high_glucose",
"points": 0,
"present": false
},
{
"factor": "macrosomia",
"points": 0,
"present": false
},
{
"value": 0,
"factor": "family_history",
"points": 0,
"present": false
},
{
"value": "white",
"factor": "ethnicity",
"points": 0,
"present": false
},
{
"value": "university",
"factor": "education",
"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.",
"score_ge_21": false,
"score_ge_29": false,
"score_ge_32": false,
"score_ge_33": false,
"score_ge_43": false,
"formula_expression": "pCANRISK = age + sex + bmi + waist + inactivity + no_daily_fruit_veg + high_bp + high_glucose + macrosomia + family_history + ethnicity + education; age <45 -> 0, 45-54 -> 7, 55-64 -> 13, >=65 -> 15; male 6; BMI <25 -> 0, 25-29.9 -> 4, 30-34.9 -> 9, >=35 -> 14; waist men <94 -> 0, 94-102 -> 4, >102 -> 6; women <80 -> 0, 80-88 -> 4, >88 -> 6; inactivity 1; no daily fruit/veg 2; high_bp 4; high_glucose 14; macrosomia women 1 else N/A 0; family_history_count 0-4 first-degree categories * 2; ethnicity white 0 aboriginal 3 black 5 east_asian 10 south_asian 11 latin_american 0 other 0 (caller-assigned; Table 3 assigned no pCANRISK points to Latin American or Other); education less_than_high_school 5 high_school 1 some_college or university 0; max 81 female / 86 male; Robinson 2011 Table 3 pCANRISK not eCANRISK; published cutoffs score>=21 29 32 33 43",
"family_history_count": 0
},
{
"sex": "female",
"score": 4,
"formula": "canrisk",
"citation": {
"id": "robinson-2011-canrisk",
"doi": "10.24095/hpcdp.32.1.04",
"pmid": "22153173",
"title": "Validating the CANRISK prognostic model for assessing diabetes risk in Canada's multi-ethnic population",
"source": "Chronic Dis Inj Can. 2011;32(1):19-31",
"authors": "Robinson CA, Agarwal G, Nerenberg K"
},
"waist_cm": 80,
"age_years": 40,
"bmi_kg_m2": 22,
"education": "university",
"ethnicity": "white",
"max_score": 81,
"components": [
{
"value": 40,
"factor": "age",
"points": 0,
"present": false
},
{
"value": "female",
"factor": "sex",
"points": 0,
"present": false
},
{
"value": 22,
"factor": "bmi",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "waist",
"points": 4,
"present": true
},
{
"factor": "inactivity",
"points": 0,
"present": false
},
{
"factor": "no_daily_fruit_veg",
"points": 0,
"present": false
},
{
"factor": "high_bp",
"points": 0,
"present": false
},
{
"factor": "high_glucose",
"points": 0,
"present": false
},
{
"factor": "macrosomia",
"points": 0,
"present": false
},
{
"value": 0,
"factor": "family_history",
"points": 0,
"present": false
},
{
"value": "white",
"factor": "ethnicity",
"points": 0,
"present": false
},
{
"value": "university",
"factor": "education",
"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.",
"score_ge_21": false,
"score_ge_29": false,
"score_ge_32": false,
"score_ge_33": false,
"score_ge_43": false,
"formula_expression": "pCANRISK = age + sex + bmi + waist + inactivity + no_daily_fruit_veg + high_bp + high_glucose + macrosomia + family_history + ethnicity + education; age <45 -> 0, 45-54 -> 7, 55-64 -> 13, >=65 -> 15; male 6; BMI <25 -> 0, 25-29.9 -> 4, 30-34.9 -> 9, >=35 -> 14; waist men <94 -> 0, 94-102 -> 4, >102 -> 6; women <80 -> 0, 80-88 -> 4, >88 -> 6; inactivity 1; no daily fruit/veg 2; high_bp 4; high_glucose 14; macrosomia women 1 else N/A 0; family_history_count 0-4 first-degree categories * 2; ethnicity white 0 aboriginal 3 black 5 east_asian 10 south_asian 11 latin_american 0 other 0 (caller-assigned; Table 3 assigned no pCANRISK points to Latin American or Other); education less_than_high_school 5 high_school 1 some_college or university 0; max 81 female / 86 male; Robinson 2011 Table 3 pCANRISK not eCANRISK; published cutoffs score>=21 29 32 33 43",
"family_history_count": 0
}
]
}
},
"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",
"bmi_kg_m2",
"waist_cm",
"activity_30min",
"daily_fruit_veg",
"high_bp",
"high_glucose",
"macrosomia",
"family_history_count",
"ethnicity",
"education"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years (18-120). Robinson 2011 Table 3 pCANRISK: 19-44 scores 0; magent scores 18-44 as 0. 45-54 scores 7; 55-64 scores 13; 65-78 scores 15; magent scores ≥65 as 15. Age 44 scores 0; 45 and 54 score 7; 55 and 64 score 13; 65 scores 15."
},
"sex": {
"enum": [
"female",
"male"
],
"type": "string",
"description": "female or male. Robinson 2011 Table 3: female scores 0; male scores 6. Selects the sex-specific waist bands. Macrosomia is N/A for male (0)."
},
"high_bp": {
"type": "boolean",
"description": "History of high blood pressure (Robinson 2011 Table 3). true scores 4; false scores 0. magent does not measure blood pressure."
},
"waist_cm": {
"type": "number",
"description": "Waist circumference in cm (40-200). Robinson 2011 Table 3 men: <94 scores 0; 94-102 scores 4; >102 scores 6. Women: <80 scores 0; 80-88 scores 4; >88 scores 6. 94 and 102 (men) and 80 and 88 (women) score 4."
},
"bmi_kg_m2": {
"type": "number",
"description": "Body-mass index in kg/m^2 (10-80). Caller-supplied; magent does not compute BMI from height and weight. Robinson 2011 Table 3: <25 scores 0; 25-29.9 scores 4; 30-34.9 scores 9; ≥35 scores 14. 25.0 and 29.9 score 4; 30.0 and 34.9 score 9; 35.0 scores 14."
},
"education": {
"enum": [
"less_than_high_school",
"high_school",
"some_college",
"university"
],
"type": "string",
"description": "Highest education completed (Robinson 2011 Table 3). less_than_high_school scores 5; high_school scores 1; some_college or university scores 0."
},
"ethnicity": {
"enum": [
"white",
"aboriginal",
"black",
"east_asian",
"south_asian",
"latin_american",
"other"
],
"type": "string",
"description": "Caller-assigned ethnicity using Robinson 2011 Table 3 terms. white scores 0; aboriginal 3; black 5; east_asian 10; south_asian 11. latin_american and other score 0 (Table 3 assigned no pCANRISK points; both were statistically insignificant). magent does not assign ethnicity."
},
"macrosomia": {
"type": "boolean",
"description": "Gave birth to a baby weighing 4.1 kg or more (Robinson 2011 Table 3 macrosomia, women). true scores 1 for female; false or male (N/A) scores 0."
},
"high_glucose": {
"type": "boolean",
"description": "History of high blood glucose (Robinson 2011 Table 3). Caller-assigned; magent does not assay glucose. true scores 14; false scores 0."
},
"activity_30min": {
"type": "boolean",
"description": "Usually at least 30 minutes of physical activity daily (Robinson 2011 Table 3). true scores 0; false scores 1. Caller-assigned; magent does not measure activity."
},
"daily_fruit_veg": {
"type": "boolean",
"description": "Eats fruit or vegetables every day (Robinson 2011 Table 3). true scores 0; false scores 2."
},
"family_history_count": {
"type": "integer",
"description": "Count of first-degree relative categories with diabetes: mother, father, sibling, child (Robinson 2011 Table 3 footnote g). Integer 0-4. Each category scores 2 (0, 2, 4, 6, or 8). Not second-degree relatives. magent does not take named relatives."
}
}
},
"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-09-04 03:50Z
- Last indexed by Roundhouse
- 2026-09-07 06:20Z
- Last enriched (probe, favicon, geo)
- 2026-09-12 15:15Z
- x402 version
- 2
- Max timeout
- 600s
- Liveness probe
- HTTP 0
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. 5 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/canrisk, 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.