{"uid":"cap_EXw6eGPufJeTfalbM3RA_","slug":"magent-nlr-calculator-zahorec-2001-927017aa","name":"Magent NLR Calculator (Zahorec 2001)","description":"Neutrophil-to-lymphocyte ratio from relative neutrophil and lymphocyte percents (Zahorec 2001). Deterministic published arithmetic with citation. Not a sepsis diagnosis; magent does not apply later oncology cutoffs that are not in that paper.","url":"https://api.magentlab.com/api/calc/nlr","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":["neutrophil_percent","lymphocyte_percent"],"properties":{"lymphocyte_percent":{"type":"number","description":"Relative lymphocyte count as a percent of leukocytes (0.1-99). Must be greater than 0."},"neutrophil_percent":{"type":"number","description":"Relative neutrophil count as a percent of leukocytes (0.1-99)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/nlr","count":2,"items":[{"nlr":3.5,"formula":"nlr","citation":{"id":"zahorec-2001","pmid":"11723675","title":"Ratio of neutrophil to lymphocyte counts--rapid and simple parameter of systemic inflammation and stress in critically ill","source":"Bratisl Lek Listy. 2001;102(1):5-14","authors":"Zahorec R"},"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.","formula_expression":"nlr = neutrophil_percent / lymphocyte_percent","lymphocyte_percent":20,"neutrophil_percent":70},{"nlr":3.5,"formula":"nlr","citation":{"id":"zahorec-2001","pmid":"11723675","title":"Ratio of neutrophil to lymphocyte counts--rapid and simple parameter of systemic inflammation and stress in critically ill","source":"Bratisl Lek Listy. 2001;102(1):5-14","authors":"Zahorec R"},"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.","formula_expression":"nlr = neutrophil_percent / lymphocyte_percent","lymphocyte_percent":20,"neutrophil_percent":70}]}},"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__x8z5sJAtJLCcaa7zT5Et","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 neutrophil-to-lymphocyte ratio (NLR) from relative neutrophil and lymphocyte percent values using the Zahorec 2001 formula.","exampleAgentPrompt":"Calculate the neutrophil-to-lymphocyte ratio for a patient whose CBC differential shows 72% neutrophils and 18% lymphocytes.","exampleUseCases":[{"title":"ICU inflammation triage","prompt":"My ICU patient has a CBC showing 80% neutrophils and 10% lymphocytes — what's their NLR using the Zahorec formula?"},{"title":"Pre-operative risk screening","prompt":"Can you calculate the NLR for a surgical candidate with 65% neutrophils and 25% lymphocytes on their pre-op bloodwork?"},{"title":"Infectious disease monitoring","prompt":"My infectious disease patient's differential came back at 75% neutrophils and 15% lymphocytes — compute their neutrophil-to-lymphocyte ratio for the chart."}],"resultDescription":"Returns the computed NLR value (a dimensionless ratio) derived from dividing relative neutrophil percent by relative lymphocyte percent, following the arithmetic defined in Zahorec 2001. Does not include a sepsis diagnosis, oncology cutoffs, or any clinical interpretation beyond the ratio itself.","failureModes":["lymphocyte_percent of 0 or missing causes division-by-zero or validation error","values outside the 0.1–99 range are rejected","missing required query parameters return a 400-level error","neutrophil_percent or lymphocyte_percent provided as non-numeric strings fail schema validation"],"whenToPreferThis":"Choose this endpoint when you need a reproducible, citation-anchored NLR calculation per Zahorec 2001 — particularly when auditability or compliance with a specific published formula matters. Prefer this over ad-hoc arithmetic when the calculation needs to be logged, verified, or paired with a citation. Not appropriate when oncology-specific NLR cutoffs from post-2001 literature are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:10:58.984Z","isFirstParty":false}