{"uid":"cap_jl7LJcK-5b-RFTKT1ZXOe","slug":"magent-cpr-index-c-peptide-to-glucose-ratio-calculator-72dcae8d","name":"Magent CPR Index (C-Peptide-to-Glucose Ratio) Calculator","description":"Saisho 2011 CPR index: serum C-peptide (ng/mL) / plasma glucose (mg/dL) * 100, two decimals. timing fasting or postprandial (same formula; required label). below_best_cutoff true iff cpri < 2.02 (ROC for later insulin therapy; 80.8% sensitivity, 63.3% specificity). Glucose mg/dL only. Not HOMA-IR, not a diabetes diagnosis, not C-peptide alone, and not an insulin order.","url":"https://api.magentlab.com/api/calc/cpri","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":["timing","c_peptide_ng_ml","glucose_mg_dl"],"properties":{"timing":{"enum":["fasting","postprandial"],"type":"string","description":"Sample timing as assigned by the caller: fasting or postprandial. Same CPR-index arithmetic; magent does not pick a formula from the clock."},"glucose_mg_dl":{"type":"number","description":"Plasma glucose in mg/dL (50-1000). mg/dL only; magent does not convert mmol/L."},"c_peptide_ng_ml":{"type":"number","description":"Serum C-peptide in ng/mL (0-40). Saisho 2011 CPR units."}}}},"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_VGNaTZO6dU2HN9sUTW71P","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 Saisho 2011 C-Peptide Reactivity (CPR) Index from serum C-peptide and plasma glucose, and flags whether the result falls below the 2.02 cutoff predictive of later insulin therapy need.","exampleAgentPrompt":"Calculate the CPR index for a fasting patient with a serum C-peptide of 1.8 ng/mL and a plasma glucose of 210 mg/dL, and tell me if it falls below the 2.02 cutoff for predicting future insulin therapy need.","exampleUseCases":[{"title":"Insulin therapy need screening","prompt":"My patient has a fasting serum C-peptide of 0.9 ng/mL and a plasma glucose of 180 mg/dL — can you compute their CPR index and let me know whether they fall below the threshold that suggests they'll likely need insulin later?"},{"title":"Postprandial beta cell function check","prompt":"After a meal, this patient's C-peptide came back at 3.4 ng/mL and their glucose was 260 mg/dL — calculate the postprandial CPR index and flag whether it's below 2.02."},{"title":"Type 1 vs Type 2 differentiation support","prompt":"I'm trying to assess residual beta cell function for a newly diagnosed diabetic: C-peptide is 1.2 ng/mL fasting, glucose is 145 mg/dL — run the Saisho 2011 CPR index calculation and tell me the result and the cutoff flag."}],"resultDescription":"Returns the CPR index as a decimal value rounded to two places (C-peptide ng/mL / glucose mg/dL * 100), the sample timing label, and a boolean below_best_cutoff indicating whether the index is below 2.02 — the ROC-derived threshold associated with 80.8% sensitivity and 63.3% specificity for predicting later insulin therapy requirement.","failureModes":["Missing required query parameters (timing, c_peptide_ng_ml, glucose_mg_dl) returns a 400 error","Glucose value outside 50–1000 mg/dL range rejected as invalid input","C-peptide value outside 0–40 ng/mL range rejected","Glucose provided in mmol/L instead of mg/dL will produce incorrect results (no unit conversion performed)","Payment not included or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need the specific Saisho 2011 CPR index arithmetic with an automated below-2.02 cutoff flag, particularly in clinical decision support workflows evaluating future insulin therapy need. Prefer it over manual calculation to avoid arithmetic errors and to get the standardized cutoff flag with its documented sensitivity/specificity. Do not use for HOMA-IR, standalone C-peptide interpretation, diabetes diagnosis, or insulin dosing orders.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:01:42.655Z","isFirstParty":false}