{"uid":"cap_cINfmVpLmg38Tdbvjnn6o","slug":"magent-mgps-calculator-d747624e","name":"magent mGPS Calculator","description":"Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.","url":"https://api.magentlab.com/api/calc/mgps?utm_source=zero.xyz","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":["crp_mg_l"],"properties":{"crp_mg_l":{"type":"number","description":"C-reactive protein in mg/L (0-500), not mg/dL. McMillan 2007 elevated CRP is >10 mg/L. CRP = 10 is not elevated and scores mGPS 0 regardless of albumin. magent does not assay CRP."},"albumin_g_l":{"type":"number","description":"Serum albumin in g/L (10-60). Provide this or albumin_g_dl, not both. McMillan 2007 hypoalbuminaemia is <35 g/L (35 is not low). Ignored when CRP ≤ 10 mg/L. magent does not assay albumin."},"albumin_g_dl":{"type":"number","description":"Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/mgps","count":2,"items":[{"mgps":0,"formula":"mgps","citation":{"id":"mcmillan-2007","doi":"10.1007/s00384-006-0259-6","pmid":"17245566","title":"Evaluation of an inflammation-based prognostic score (GPS) in patients undergoing resection for colon and rectal cancer","source":"Int J Colorectal Dis. 2007;22(8):881-886","authors":"McMillan DC, Crozier JEM, Canna K, Angerson WJ, McArdle CS"},"crp_mg_l":5,"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.","albumin_g_l":40,"formula_expression":"mGPS 0: CRP ≤ 10 mg/L (albumin ignored); mGPS 1: CRP > 10 mg/L AND albumin ≥ 35 g/L; mGPS 2: CRP > 10 mg/L AND albumin < 35 g/L (McMillan 2007 modified GPS)"},{"mgps":0,"formula":"mgps","citation":{"id":"mcmillan-2007","doi":"10.1007/s00384-006-0259-6","pmid":"17245566","title":"Evaluation of an inflammation-based prognostic score (GPS) in patients undergoing resection for colon and rectal cancer","source":"Int J Colorectal Dis. 2007;22(8):881-886","authors":"McMillan DC, Crozier JEM, Canna K, Angerson WJ, McArdle CS"},"crp_mg_l":5,"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.","albumin_g_l":40,"formula_expression":"mGPS 0: CRP ≤ 10 mg/L (albumin ignored); mGPS 1: CRP > 10 mg/L AND albumin ≥ 35 g/L; mGPS 2: CRP > 10 mg/L AND albumin < 35 g/L (McMillan 2007 modified GPS)"}]}},"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_I1Y23kmx3FX4ugl0BvBTD","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 McMillan 2007 modified Glasgow Prognostic Score (mGPS 0–2) from serum CRP (mg/L) and albumin (g/L or g/dL)","exampleAgentPrompt":"Calculate the modified Glasgow Prognostic Score (mGPS) for a patient with a CRP of 18 mg/L and serum albumin of 28 g/L using the McMillan 2007 formula.","exampleUseCases":[{"title":"Colorectal cancer pre-op risk stratification","prompt":"My patient is undergoing colorectal cancer resection — their CRP came back at 22 mg/L and albumin is 31 g/L. What is their McMillan 2007 mGPS score?"},{"title":"Oncology EHR automation pipeline","prompt":"For each patient in today's lab batch, compute the mGPS using the McMillan 2007 formula — here's one to start: CRP 9 mg/L, albumin 38 g/L."},{"title":"Inflammation scoring for research dataset","prompt":"I'm building a research dataset and need the mGPS for a subject with CRP 14.5 mg/L and albumin 3.6 g/dL — can you run that through the mGPS calculator?"}],"resultDescription":"Returns a JSON object with the mGPS score (0, 1, or 2), the formula expression used, the input CRP and albumin values, the full McMillan 2007 citation (DOI, PMID, authors, journal), and a disclaimer that this is not a medical device and a licensed clinician remains responsible for patient care.","failureModes":["Missing required crp_mg_l parameter returns an error","CRP value outside 0–500 mg/L range may be rejected","Providing both albumin_g_l and albumin_g_dl simultaneously is not allowed","Non-numeric input for CRP or albumin causes a validation error","albumin_g_dl outside 1–6 range or albumin_g_l outside 10–60 range may fail validation"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, citable computation of the McMillan 2007 mGPS specifically — not the original GPS or hs-mGPS — from raw CRP (mg/L) and albumin lab values. Ideal for autonomous agents embedded in oncology workflows, clinical decision support pipelines, or research data enrichment where auditability (citation included in response) and formula transparency are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:45:13.899Z","isFirstParty":false,"canonicalSlug":"magent-mgps-calculator-d747624e"}