{"uid":"cap_YeBAHWwcLt_9WnzjsfdoR","slug":"magent-canrisk-diabetes-risk-calculator-bd0bc23b","name":"magent CANRISK Diabetes Risk Calculator","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.","url":"https://api.magentlab.com/api/calc/canrisk","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z5RmzGGykSIC0c0c4Egzu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the pCANRISK score (Robinson 2011 Table 3) to estimate an individual's risk of developing type 2 diabetes based on demographic, anthropometric, lifestyle, and clinical factors","exampleAgentPrompt":"Can you calculate the pCANRISK diabetes risk score for a 58-year-old female patient — she's South Asian, BMI 31.2, waist 90 cm, has high blood pressure, no high glucose history, no macrosomia, one first-degree relative with diabetes, university education, does less than 30 minutes of activity per day, and rarely eats fruit or vegetables?","exampleUseCases":[{"title":"Primary care diabetes risk screening","prompt":"I have a 47-year-old male patient, BMI 27.5, waist 98 cm, White ethnicity, high school education, no high BP, no high glucose, does less than 30 minutes of activity a day, eats fruit and veg daily, no family history of diabetes — can you give me his pCANRISK score?"},{"title":"High-risk Aboriginal female patient triage","prompt":"Calculate the CANRISK score for a 62-year-old Aboriginal woman with a BMI of 34, waist of 92 cm, history of high blood pressure, no high glucose, gave birth to a baby over 9 lbs, two first-degree relatives with diabetes, less than high school education, and she doesn't exercise or eat much fruit and veg."},{"title":"Wellness app diabetes risk self-assessment","prompt":"My user is a 39-year-old East Asian male, BMI 23.1, waist 85 cm, no high BP, no high glucose, he's physically active for 30+ minutes a day, eats fruit and veg daily, no family history of diabetes, and has some college education — what does the pCANRISK model say his risk score is?"}],"resultDescription":"Returns a numeric pCANRISK score (integer out of a maximum of 81 for females or 86 for males) computed from the Robinson 2011 Table 3 point system, along with applicable risk tier cutoffs (21, 29, 32, 33, 43). Not a medical diagnosis.","failureModes":["Missing required query parameters (age, sex, bmi_kg_m2, waist_cm, etc.) returns a 400 error","Age outside 18-120 range causes validation failure","Waist circumference outside 40-200 cm range rejected","BMI outside 10-80 range rejected","Invalid enum values for sex, education, ethnicity, or family history return validation errors","Payment header missing or insufficient USDC balance causes 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a validated, citation-grounded Canadian diabetes risk score (pCANRISK, Robinson 2011 Table 3) for an individual with known demographic and clinical inputs. Prefer it over generic risk calculators when ethnicity-adjusted scoring and explicit Robinson 2011 cutoffs are required, or when you need a deterministic, reproducible score for clinical documentation or population health screening pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:46:56.618Z","isFirstParty":false}