{"uid":"cap_wjcqoCTixFKOn1GRPNuDt","slug":"magent-safe-score-steatosis-associated-fibrosis-estimator-353b70b4","name":"magent SAFE Score (Steatosis-Associated Fibrosis Estimator)","description":"Sripongpun 2023 steatosis-associated fibrosis estimator (SAFE) from age, BMI (capped at 40 in the equation), diabetes, AST, ALT, globulin in g/dL, and platelets. Deterministic published equation with citation. Rule-out below 0; rule-in above 100. Not a biopsy, fibrosis stage, FIB-4, NAFLD fibrosis score, or BARD. magent does not compute BMI from height and weight.","url":"https://api.magentlab.com/api/calc/safe","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","bmi_kg_m2","diabetes","ast_u_l","alt_u_l","globulin_g_dl","platelets_10e9_l"],"properties":{"age":{"type":"integer","description":"Age in years (18-120)."},"alt_u_l":{"type":"number","description":"Alanine aminotransferase in U/L (1-10000)."},"ast_u_l":{"type":"number","description":"Aspartate aminotransferase in U/L (1-10000)."},"diabetes":{"type":"boolean","description":"Diabetes as assigned by the caller (Sripongpun 2023; 0 or 1 in the equation). true or false. magent does not diagnose diabetes."},"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. Values above 40 are set to 40 in the formula only (Sripongpun 2023); the caller BMI is still echoed."},"globulin_g_dl":{"type":"number","description":"Globulin in g/dL (0.5-8.0). Total protein minus albumin. magent does not convert g/L or split protein and albumin."},"platelets_10e9_l":{"type":"number","description":"Platelet count in 10^9/L (1-2000)."}}}},"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_-WbcOA9V-JHKJKMWn6FNd","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":"Calculates the Sripongpun 2023 SAFE score to estimate hepatic fibrosis risk from age, BMI, diabetes status, AST, ALT, globulin, and platelet count.","exampleAgentPrompt":"Calculate the SAFE score for a 54-year-old patient with BMI 32, diabetes, AST 62 U/L, ALT 48 U/L, globulin 3.1 g/dL, and platelets 180 × 10⁹/L — I want to know if they rule in or rule out for steatosis-associated fibrosis.","exampleUseCases":[{"title":"Pre-referral liver fibrosis triage","prompt":"I have a 47-year-old non-diabetic patient with BMI 29, AST 55 U/L, ALT 72 U/L, globulin 2.8 g/dL, and platelets 210 × 10⁹/L — run the SAFE score so I can decide whether to refer them for further workup."},{"title":"Diabetic patient metabolic liver screen","prompt":"My patient is 61 years old, has type 2 diabetes, BMI 38, AST 80 U/L, ALT 65 U/L, globulin 3.5 g/dL, and a platelet count of 145 × 10⁹/L — compute their Sripongpun SAFE score to assess fibrosis risk."},{"title":"Population health fibrosis risk flagging","prompt":"For a 39-year-old patient without diabetes, BMI 26, AST 30 U/L, ALT 25 U/L, globulin 2.4 g/dL, platelets 290 × 10⁹/L — what is their SAFE score and does it rule out significant liver fibrosis?"}],"resultDescription":"Returns the numeric SAFE score computed from the Sripongpun 2023 published equation. Scores below 0 indicate rule-out for significant fibrosis; scores above 100 indicate rule-in. The caller-supplied BMI is echoed back; values above 40 are capped at 40 in the formula per the published equation.","failureModes":["Missing required parameter returns validation error","BMI outside 10–80 range rejected","Age outside 18–120 range rejected","AST or ALT outside 1–10000 range rejected","Globulin outside 0.5–8.0 range rejected","Platelets outside 1–2000 range rejected","Payment failure (x402) if USDC balance insufficient"],"whenToPreferThis":"Use this endpoint when you need the specific Sripongpun 2023 SAFE (steatosis-associated fibrosis estimator) score. Choose it over FIB-4 or NAFLD fibrosis score endpoints when the clinical protocol or study context specifically calls for the SAFE equation. It is appropriate for adult patients (18+) where all seven input lab values and clinical parameters are available. Do not use this endpoint to obtain FIB-4, APRI, BARD, or biopsy-equivalent fibrosis staging — use the dedicated magent endpoints for those scores instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:11:21.489Z","isFirstParty":false}