{"uid":"cap_oubKHts94D701In6L7uC7","slug":"biomarker-longevity-index-calculator-72d9ac7a","name":"Biomarker Longevity Index Calculator","description":"Standardizes each supplied value against its supplied mean and standard deviation, flips markers whose favorable direction is lower, and computes a weighted composite mapped to a bounded 0–100 index. The references and weights come entirely from the caller; this is not a validated longevity score, diagnosis, prognosis or medical advice.","url":"https://bio.halowerk.com/v1/biomarker-longevity","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"biomarkers":{"type":"array","items":{"type":"object","required":["name","value","reference_mean","reference_sd","favorable_direction","weight"],"properties":{"name":{"type":"string","maxLength":128,"minLength":1},"value":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"weight":{"type":"number","maximum":1000000,"minimum":0},"reference_sd":{"type":"number","maximum":1000000000000,"minimum":1e-12},"reference_mean":{"type":"number","maximum":1000000000000,"minimum":-1000000000000},"favorable_direction":{"enum":["higher","lower"],"type":"string"}},"additionalProperties":false},"maxItems":200,"minItems":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EBsSLG3VIoNZXPlBaN-Iz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Standardizes caller-supplied biomarker values against provided reference means and standard deviations, flips markers where lower is better, and computes a weighted composite score mapped to a 0–100 index.","exampleAgentPrompt":"Compute a composite longevity index for these lab results — LDL cholesterol at 110 with a reference mean of 100 and SD of 20 (lower is better, weight 2.0), and fasting glucose at 90 with mean 85, SD 15 (lower is better, weight 1.5) — and give me the final 0–100 score.","exampleUseCases":[{"title":"Annual blood panel composite score","prompt":"I just got my annual blood work back. Can you calculate a single 0–100 longevity score using these markers: HbA1c of 5.4 (mean 5.0, SD 0.5, lower is better, weight 3), triglycerides at 120 (mean 100, SD 30, lower is better, weight 2), and HDL at 58 (mean 55, SD 10, higher is better, weight 2)?"},{"title":"Athlete performance biomarker tracking","prompt":"Score my athlete's latest biomarkers into a composite index — VO2 max at 52 (mean 45, SD 8, higher is better, weight 3), resting heart rate at 48 (mean 60, SD 10, lower is better, weight 2), and cortisol at 14 (mean 15, SD 4, lower is better, weight 1). Map the result to a 0–100 scale."},{"title":"Longevity program patient dashboard","prompt":"For my longevity clinic dashboard, compute a weighted composite score for a patient with CRP at 0.8 (mean 1.0, SD 0.5, lower is better, weight 4), testosterone at 650 (mean 600, SD 100, higher is better, weight 3), and homocysteine at 9 (mean 10, SD 2, lower is better, weight 2). Return the 0–100 index."}],"resultDescription":"Returns a bounded 0–100 composite index computed from the caller-supplied biomarkers, along with per-marker standardized scores and their weighted contributions. Not a medical diagnosis, prognosis, or validated longevity score — the result reflects only the references and weights provided by the caller.","failureModes":["Missing required fields (name, value, reference_mean, reference_sd, favorable_direction, weight) returns a validation error","reference_sd below minimum threshold (1e-12) triggers a validation error","Array of biomarkers is empty or exceeds 200 items returns a bounds error","Non-numeric values for numeric fields return a type error","Weight of zero effectively excludes that marker from the composite","Extreme outlier values may produce edge scores near 0 or 100"],"whenToPreferThis":"Choose this endpoint when you need to aggregate multiple biomarkers with caller-defined reference ranges and weights into a single normalized index, especially when the favorable direction varies per marker (some higher is better, some lower). Prefer this over generic statistics APIs when you need the specific z-score normalization, direction-flip, and 0–100 bounded mapping in one step. Not suitable if you need clinically validated scoring systems or diagnosis — use only with caller-supplied reference norms.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:48:01.259Z","isFirstParty":false}