magent
Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.
Live 402 challenge
Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.
{
"error": "PAYMENT-SIGNATURE header is required",
"accepts": [
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront",
"resourceUrl": "https://api.magentlab.com/api/calc/saps_3",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"withdrawDelay": 86400,
"receiverAuthorizer": "0x3721824a31197dcDD2984cF43b92B6cc8A87c0Fb",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "batch-settlement",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
],
"resource": {
"url": "https://api.magentlab.com/api/calc/saps_3",
"tags": [
"saps-3",
"icu",
"severity",
"physiology",
"mortality"
],
"mimeType": "application/json",
"description": "Moreno 2005 SAPS 3 admission score from caller-assigned ICU-hour boxes (age, comorbidities, stay, location, vasoactive drugs, admission circumstances, and ten physiology items) plus the published 16-point offset. Converts the integer to hospital-mortality percent with the Part 2 global logit. Not SAPS II. Not APACHE. magent does not measure vitals.",
"serviceName": "magent"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"age": 35,
"gcs": 15,
"aids": false,
"location": "operating_room",
"los_days": 1,
"seizures": false,
"cirrhosis": false,
"pao2_fio2": 250,
"heart_rate": 80,
"pao2_mm_hg": 90,
"arterial_ph": 7.4,
"septic_shock": false,
"surgery_site": "all_others",
"acute_abdomen": false,
"icu_admission": "planned",
"liver_failure": false,
"platelets_g_l": 250,
"temperature_c": 37,
"cancer_therapy": false,
"leukocytes_g_l": 8,
"bilirubin_mg_dl": 0.8,
"surgical_status": "scheduled_surgery",
"bilirubin_umol_l": 14,
"creatinine_mg_dl": 1,
"vasoactive_drugs": false,
"creatinine_umol_l": 88,
"hypovolemic_shock": false,
"metastatic_cancer": false,
"systolic_bp_mm_hg": 120,
"chronic_hf_nyha_iv": false,
"hematologic_cancer": false,
"rhythm_disturbances": false,
"severe_pancreatitis": false,
"nosocomial_infection": false,
"coma_stupor_agitation": false,
"respiratory_infection": false,
"mechanical_ventilation": false,
"focal_neurologic_deficit": false,
"intracranial_mass_effect": false,
"anaphylactic_or_mixed_shock": false
}
},
"output": {
"type": "json",
"example": {
"logit": -6.3619,
"score": 16,
"formula": "saps_3",
"citation": {
"id": "moreno-2005",
"doi": "10.1007/s00134-005-2763-5",
"pmid": "16132893",
"title": "SAPS 3—From evaluation of the patient to evaluation of the intensive care unit. Part 2: Development of a prognostic model for hospital mortality at ICU admission",
"source": "Intensive Care Med. 2005;31(10):1345-1355",
"authors": "Moreno RP, Metnitz PGH, Almeida E, et al; SAPS 3 Investigators"
},
"max_score": 217,
"components": [
{
"value": 16,
"factor": "admission_offset",
"points": 16,
"present": true
},
{
"value": 35,
"factor": "age",
"points": 0,
"present": false
},
{
"value": 1,
"factor": "los_days",
"points": 0,
"present": false
},
{
"value": "operating_room",
"factor": "location",
"points": 0,
"present": false
},
{
"aids": false,
"factor": "comorbidities",
"points": 0,
"present": false,
"cirrhosis": false,
"cancer_therapy": false,
"metastatic_cancer": false,
"chronic_hf_nyha_iv": false,
"hematologic_cancer": false
},
{
"value": false,
"factor": "vasoactive_drugs",
"points": 0,
"present": false
},
{
"value": "planned",
"factor": "icu_admission",
"points": 0,
"present": false
},
{
"factor": "reasons_for_admission",
"points": 0,
"present": false,
"seizures": false,
"septic_shock": false,
"acute_abdomen": false,
"liver_failure": false,
"hypovolemic_shock": false,
"rhythm_disturbances": false,
"severe_pancreatitis": false,
"coma_stupor_agitation": false,
"focal_neurologic_deficit": false,
"intracranial_mass_effect": false,
"anaphylactic_or_mixed_shock": false
},
{
"value": "scheduled_surgery",
"factor": "surgical_status",
"points": 0,
"present": false
},
{
"value": "all_others",
"factor": "surgery_site",
"points": 0,
"present": false
},
{
"factor": "infection",
"points": 0,
"present": false,
"nosocomial_infection": false,
"respiratory_infection": false
},
{
"value": 15,
"factor": "gcs",
"points": 0,
"present": false
},
{
"value": 0.8,
"branch": "bilirubin_mg_dl",
"factor": "bilirubin",
"points": 0,
"present": false
},
{
"value": 37,
"factor": "temperature_c",
"points": 0,
"present": false
},
{
"value": 1,
"branch": "creatinine_mg_dl",
"factor": "creatinine",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "heart_rate",
"points": 0,
"present": false
},
{
"value": 8,
"factor": "leukocytes_g_l",
"points": 0,
"present": false
},
{
"value": 7.4,
"factor": "arterial_ph",
"points": 0,
"present": false
},
{
"value": 250,
"factor": "platelets_g_l",
"points": 0,
"present": false
},
{
"value": 120,
"factor": "systolic_bp_mm_hg",
"points": 0,
"present": false
},
{
"value": 90,
"branch": "pao2_no_mv",
"factor": "oxygenation",
"points": 0,
"present": false,
"mechanical_ventilation": false
}
],
"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": "SAPS 3 = 16 (admission offset) + Box I + Box II + Box III (Moreno 2005 Part 2 scoresheet). Box I: age (<40 → 0, 40-59 → 5, 60-69 → 9, 70-74 → 13, 75-79 → 15, ≥80 → 18); los_days (<14 → 0, 14-27 → 6, ≥28 → 7); location (operating_room → 0, emergency_room → 5, other_icu → 7, other → 8); comorbidities additive (cancer_therapy → 3, metastatic_cancer → 11, hematologic_cancer → 6, chronic_hf_nyha_iv → 6, cirrhosis → 8, aids → 8); vasoactive_drugs → 3. Box II: unplanned ICU admission → 3; reasons additive (rhythm_disturbances → -5, hypovolemic_shock → 3, septic_shock → 5, anaphylactic_or_mixed_shock → 5, liver_failure → 6, severe_pancreatitis → 9, acute_abdomen → 3, intracranial_mass_effect → 10, focal_neurologic_deficit → 7, seizures → -4, coma_stupor_agitation → 4; if rhythm and seizures both, only -4; hypovolemic_shock plus acute_abdomen scores both); surgical_status (scheduled_surgery → 0, emergency_surgery → 6, no_surgery → 5); surgery_site (transplantation → -11, trauma_isolated or trauma_multiple → -8, cabg_no_valve → -6, neurosurgery_cva → 5, all_others → 0); nosocomial_infection → 4, respiratory_infection → 5. Box III within ±1 h as assigned: GCS (3-4 → 15, 5 → 10, 6 → 7, 7-12 → 2, ≥13 → 0); bilirubin_mg_dl (<2 → 0, 2-<6 → 4, ≥6 → 5) or bilirubin_umol_l (<34.2 → 0, 34.2-<102.6 → 4, ≥102.6 → 5); temperature_c (<35 → 7, ≥35 → 0); creatinine_mg_dl (<1.2 → 0, 1.2-<2 → 2, 2-<3.5 → 7, ≥3.5 → 8) or creatinine_umol_l (<106.1 → 0, 106.1-<176.8 → 2, 176.8-<309.4 → 7, ≥309.4 → 8); heart_rate (<120 → 0, 120-159 → 5, ≥160 → 7); leukocytes_g_l (<15 → 0, ≥15 → 2); arterial_ph (≤7.25 → 3, >7.25 → 0); platelets_g_l (<20 → 13, 20-<50 → 8, 50-<100 → 5, ≥100 → 0); systolic_bp_mm_hg (<40 → 11, 40-<70 → 8, 70-<120 → 3, ≥120 → 0); oxygenation (PaO2/FiO2 <100 and MV → 11, PaO2/FiO2 ≥100 and MV → 7, PaO2 <60 and no MV → 5, else 0). logit = -32.6659 + ln(SAPS_3 + 20.5958) × 7.3068; estimated_probability_percent = 100 × exp(logit)/(1+exp(logit)); max 217",
"estimated_probability_percent": 0.17
}
},
"iconUrl": "https://api.magentlab.com/favicon.ico"
},
"schema": {
"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",
"los_days",
"location",
"vasoactive_drugs",
"icu_admission",
"surgical_status",
"surgery_site",
"gcs",
"temperature_c",
"heart_rate",
"leukocytes_g_l",
"arterial_ph",
"platelets_g_l",
"systolic_bp_mm_hg",
"mechanical_ventilation"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years, integer 18-120, as assigned at ICU admission. <40 → 0; 40-59 → 5; 60-69 → 9; 70-74 → 13; 75-79 → 15; ≥80 → 18."
},
"gcs": {
"type": "integer",
"description": "Lowest estimated Glasgow Coma Scale, integer 3-15, within ±1 h of ICU admission as assigned by the caller. 3-4 → 15; 5 → 10; 6 → 7; 7-12 → 2; ≥13 → 0. magent does not examine the patient."
},
"aids": {
"type": "boolean",
"description": "AIDS as assigned (+8). Additive with cirrhosis. Omit or false → 0."
},
"location": {
"enum": [
"operating_room",
"emergency_room",
"other_icu",
"other"
],
"type": "string",
"description": "Intra-hospital location before ICU admission: operating_room (0), emergency_room (5), other_icu (7; intermediate/high-dependency, other ICU, or recovery), or other (8; ward or other). magent does not classify the bed."
},
"los_days": {
"type": "integer",
"description": "Hospital stay in days before ICU admission as assigned by the caller (integer 0-365). <14 → 0; 14-27 → 6; ≥28 → 7. magent does not subtract timestamps."
},
"seizures": {
"type": "boolean",
"description": "Seizures (-4). If rhythm_disturbances is also true, only -4 is scored. Omit or false → 0."
},
"cirrhosis": {
"type": "boolean",
"description": "Cirrhosis as assigned (+8). Additive with aids. Omit or false → 0."
},
"pao2_fio2": {
"type": "number",
"description": "PaO2/FiO2 ratio in mm Hg (10-800). Required when mechanical_ventilation is true. <100 → 11; ≥100 → 7. Ignored when mechanical_ventilation is false. magent does not compute the ratio."
},
"heart_rate": {
"type": "integer",
"description": "Highest heart rate in beats/min, integer 20-250. <120 → 0; 120-159 → 5; ≥160 → 7. magent does not measure pulse."
},
"pao2_mm_hg": {
"type": "number",
"description": "Lowest PaO2 in mm Hg (20-700). Required when mechanical_ventilation is false. <60 → 5; ≥60 → 0. Ignored when mechanical_ventilation is true."
},
"arterial_ph": {
"type": "number",
"description": "Lowest arterial pH (6.5-8.0). ≤7.25 → 3; >7.25 → 0."
},
"septic_shock": {
"type": "boolean",
"description": "Septic shock as a reason for ICU admission (+5). Additive. Omit or false → 0."
},
"surgery_site": {
"enum": [
"all_others",
"transplantation",
"trauma_isolated",
"trauma_multiple",
"cabg_no_valve",
"neurosurgery_cva"
],
"type": "string",
"description": "Anatomical site of surgery as assigned: all_others (0), transplantation (-11), trauma_isolated or trauma_multiple (-8), cabg_no_valve (-6), or neurosurgery_cva (5). One token. magent does not classify a procedure."
},
"acute_abdomen": {
"type": "boolean",
"description": "Digestive acute abdomen or other digestive (not pancreatitis) as one Box II row (+3). Additive with hypovolemic_shock. Omit or false → 0."
},
"icu_admission": {
"enum": [
"planned",
"unplanned"
],
"type": "string",
"description": "Planned (0) or unplanned (3) ICU admission as assigned by the caller. magent does not classify the admission."
},
"liver_failure": {
"type": "boolean",
"description": "Hepatic liver failure as a reason for ICU admission (+6). Omit or false → 0."
},
"platelets_g_l": {
"type": "number",
"description": "Lowest platelets in G/L (0-2000). <20 → 13; 20-<50 → 8; 50-<100 → 5; ≥100 → 0."
},
"temperature_c": {
"type": "number",
"description": "Highest body temperature in °C (20-46) within ±1 h as assigned. <35 → 7; ≥35 → 0. The scoresheet has no hyperthermia points. magent does not measure temperature or convert Fahrenheit."
},
"cancer_therapy": {
"type": "boolean",
"description": "Chemotherapy, other immunosuppression, radiotherapy, or steroid treatment as assigned (+3). Additive with other comorbidity flags. Omit or false → 0."
},
"leukocytes_g_l": {
"type": "number",
"description": "Lowest leukocytes in G/L (0.1-200), numerically equal to 10^9/L. <15 → 0; ≥15 → 2. magent does not count cells."
},
"bilirubin_mg_dl": {
"type": "number",
"description": "Highest total bilirubin in mg/dL (0-40). One of bilirubin_mg_dl or bilirubin_umol_l is required. If both are sent, bilirubin_mg_dl is scored. <2 → 0; 2-<6 → 4; ≥6 → 5."
},
"surgical_status": {
"enum": [
"scheduled_surgery",
"emergency_surgery",
"no_surgery"
],
"type": "string",
"description": "Surgical status at ICU admission: scheduled_surgery (0), emergency_surgery (6), or no_surgery (5)."
},
"bilirubin_umol_l": {
"type": "number",
"description": "Highest total bilirubin in µmol/L (0-684). Alternate to bilirubin_mg_dl. Ignored when bilirubin_mg_dl is present. <34.2 → 0; 34.2-<102.6 → 4; ≥102.6 → 5. magent does not convert units."
},
"creatinine_mg_dl": {
"type": "number",
"description": "Highest creatinine in mg/dL (0.1-20). One of creatinine_mg_dl or creatinine_umol_l is required. If both are sent, creatinine_mg_dl is scored. <1.2 → 0; 1.2-<2 → 2; 2-<3.5 → 7; ≥3.5 → 8."
},
"vasoactive_drugs": {
"type": "boolean",
"description": "true if the caller assigns vasoactive drugs before ICU admission (+3). false → 0. magent does not inspect the medication list."
},
"creatinine_umol_l": {
"type": "number",
"description": "Highest creatinine in µmol/L (9-1768). Alternate to creatinine_mg_dl. Ignored when creatinine_mg_dl is present. <106.1 → 0; 106.1-<176.8 → 2; 176.8-<309.4 → 7; ≥309.4 → 8. magent does not convert units."
},
"hypovolemic_shock": {
"type": "boolean",
"description": "Hypovolemic hemorrhagic or non-hemorrhagic shock as one Box II row (+3). Additive with acute_abdomen. Omit or false → 0."
},
"metastatic_cancer": {
"type": "boolean",
"description": "Metastatic cancer as assigned (+11). Additive. Omit or false → 0. magent does not diagnose."
},
"systolic_bp_mm_hg": {
"type": "number",
"description": "Lowest systolic blood pressure in mm Hg (20-300). <40 → 11; 40-<70 → 8; 70-<120 → 3; ≥120 → 0. magent does not measure blood pressure."
},
"chronic_hf_nyha_iv": {
"type": "boolean",
"description": "Chronic heart failure NYHA class IV as assigned (+6). Additive. Omit or false → 0."
},
"hematologic_cancer": {
"type": "boolean",
"description": "Haematological cancer as assigned (+6). Additive. Omit or false → 0."
},
"rhythm_disturbances": {
"type": "boolean",
"description": "Cardiovascular reason: rhythm disturbances (-5). If seizures is also true, only -4 is scored. Omit or false → 0."
},
"severe_pancreatitis": {
"type": "boolean",
"description": "Severe pancreatitis (+9). Omit or false → 0."
},
"nosocomial_infection": {
"type": "boolean",
"description": "Hospital-acquired infection at ICU admission (+4). Additive with respiratory_infection. Omit or false → 0."
},
"coma_stupor_agitation": {
"type": "boolean",
"description": "Coma, stupor, obtunded, agitation, vigilance disturbance, confusion, or delirium (+4). Omit or false → 0."
},
"respiratory_infection": {
"type": "boolean",
"description": "Lower respiratory tract infection at ICU admission (+5). Additive with nosocomial_infection. Omit or false → 0."
},
"mechanical_ventilation": {
"type": "boolean",
"description": "true if the caller assigns mechanical ventilation at ICU admission. true scores PaO2/FiO2 (pao2_fio2 required). false scores PaO2 (pao2_mm_hg required) and pao2_fio2 is ignored."
},
"focal_neurologic_deficit": {
"type": "boolean",
"description": "Focal neurologic deficit (+7). Additive. Omit or false → 0."
},
"intracranial_mass_effect": {
"type": "boolean",
"description": "Neurologic intracranial mass effect (+10). Additive. Omit or false → 0."
},
"anaphylactic_or_mixed_shock": {
"type": "boolean",
"description": "Anaphylactic, mixed, or undefined shock (+5). Additive. Omit or false → 0."
}
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
}
}
}
}
},
"x402Version": 2
}Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 0.005 USDC on Base to 0x836B…19Ee2. The signed payment is good for 10 minutes.
- Paid to
- 0x836B…19Ee2
- USD Coin contract
- 0x8335…02913
- Payment window
- 10 minutes
- As published
- 5000 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront",
"resourceUrl": "https://api.magentlab.com/api/calc/saps_3",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"items": [
{
"age": 35,
"gcs": 15,
"aids": false,
"location": "operating_room",
"los_days": 1,
"seizures": false,
"cirrhosis": false,
"pao2_fio2": 250,
"heart_rate": 80,
"pao2_mm_hg": 90,
"arterial_ph": 7.4,
"septic_shock": false,
"surgery_site": "all_others",
"acute_abdomen": false,
"icu_admission": "planned",
"liver_failure": false,
"platelets_g_l": 250,
"temperature_c": 37,
"cancer_therapy": false,
"leukocytes_g_l": 8,
"bilirubin_mg_dl": 0.8,
"surgical_status": "scheduled_surgery",
"bilirubin_umol_l": 14,
"creatinine_mg_dl": 1,
"vasoactive_drugs": false,
"creatinine_umol_l": 88,
"hypovolemic_shock": false,
"metastatic_cancer": false,
"systolic_bp_mm_hg": 120,
"chronic_hf_nyha_iv": false,
"hematologic_cancer": false,
"rhythm_disturbances": false,
"severe_pancreatitis": false,
"nosocomial_infection": false,
"coma_stupor_agitation": false,
"respiratory_infection": false,
"mechanical_ventilation": false,
"focal_neurologic_deficit": false,
"intracranial_mass_effect": false,
"anaphylactic_or_mixed_shock": false
},
{
"age": 35,
"gcs": 15,
"aids": false,
"location": "operating_room",
"los_days": 1,
"seizures": false,
"cirrhosis": false,
"pao2_fio2": 250,
"heart_rate": 80,
"pao2_mm_hg": 90,
"arterial_ph": 7.4,
"septic_shock": false,
"surgery_site": "all_others",
"acute_abdomen": false,
"icu_admission": "planned",
"liver_failure": false,
"platelets_g_l": 250,
"temperature_c": 37,
"cancer_therapy": false,
"leukocytes_g_l": 8,
"bilirubin_mg_dl": 0.8,
"surgical_status": "scheduled_surgery",
"bilirubin_umol_l": 14,
"creatinine_mg_dl": 1,
"vasoactive_drugs": false,
"creatinine_umol_l": 88,
"hypovolemic_shock": false,
"metastatic_cancer": false,
"systolic_bp_mm_hg": 120,
"chronic_hf_nyha_iv": false,
"hematologic_cancer": false,
"rhythm_disturbances": false,
"severe_pancreatitis": false,
"nosocomial_infection": false,
"coma_stupor_agitation": false,
"respiratory_infection": false,
"mechanical_ventilation": false,
"focal_neurologic_deficit": false,
"intracranial_mass_effect": false,
"anaphylactic_or_mixed_shock": false
}
]
},
"type": "http",
"method": "POST"
},
"output": {
"type": "json",
"example": {
"path": "/api/calc/saps_3",
"count": 2,
"items": [
{
"logit": -6.3619,
"score": 16,
"formula": "saps_3",
"citation": {
"id": "moreno-2005",
"doi": "10.1007/s00134-005-2763-5",
"pmid": "16132893",
"title": "SAPS 3—From evaluation of the patient to evaluation of the intensive care unit. Part 2: Development of a prognostic model for hospital mortality at ICU admission",
"source": "Intensive Care Med. 2005;31(10):1345-1355",
"authors": "Moreno RP, Metnitz PGH, Almeida E, et al; SAPS 3 Investigators"
},
"max_score": 217,
"components": [
{
"value": 16,
"factor": "admission_offset",
"points": 16,
"present": true
},
{
"value": 35,
"factor": "age",
"points": 0,
"present": false
},
{
"value": 1,
"factor": "los_days",
"points": 0,
"present": false
},
{
"value": "operating_room",
"factor": "location",
"points": 0,
"present": false
},
{
"aids": false,
"factor": "comorbidities",
"points": 0,
"present": false,
"cirrhosis": false,
"cancer_therapy": false,
"metastatic_cancer": false,
"chronic_hf_nyha_iv": false,
"hematologic_cancer": false
},
{
"value": false,
"factor": "vasoactive_drugs",
"points": 0,
"present": false
},
{
"value": "planned",
"factor": "icu_admission",
"points": 0,
"present": false
},
{
"factor": "reasons_for_admission",
"points": 0,
"present": false,
"seizures": false,
"septic_shock": false,
"acute_abdomen": false,
"liver_failure": false,
"hypovolemic_shock": false,
"rhythm_disturbances": false,
"severe_pancreatitis": false,
"coma_stupor_agitation": false,
"focal_neurologic_deficit": false,
"intracranial_mass_effect": false,
"anaphylactic_or_mixed_shock": false
},
{
"value": "scheduled_surgery",
"factor": "surgical_status",
"points": 0,
"present": false
},
{
"value": "all_others",
"factor": "surgery_site",
"points": 0,
"present": false
},
{
"factor": "infection",
"points": 0,
"present": false,
"nosocomial_infection": false,
"respiratory_infection": false
},
{
"value": 15,
"factor": "gcs",
"points": 0,
"present": false
},
{
"value": 0.8,
"branch": "bilirubin_mg_dl",
"factor": "bilirubin",
"points": 0,
"present": false
},
{
"value": 37,
"factor": "temperature_c",
"points": 0,
"present": false
},
{
"value": 1,
"branch": "creatinine_mg_dl",
"factor": "creatinine",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "heart_rate",
"points": 0,
"present": false
},
{
"value": 8,
"factor": "leukocytes_g_l",
"points": 0,
"present": false
},
{
"value": 7.4,
"factor": "arterial_ph",
"points": 0,
"present": false
},
{
"value": 250,
"factor": "platelets_g_l",
"points": 0,
"present": false
},
{
"value": 120,
"factor": "systolic_bp_mm_hg",
"points": 0,
"present": false
},
{
"value": 90,
"branch": "pao2_no_mv",
"factor": "oxygenation",
"points": 0,
"present": false,
"mechanical_ventilation": false
}
],
"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": "SAPS 3 = 16 (admission offset) + Box I + Box II + Box III (Moreno 2005 Part 2 scoresheet). Box I: age (<40 → 0, 40-59 → 5, 60-69 → 9, 70-74 → 13, 75-79 → 15, ≥80 → 18); los_days (<14 → 0, 14-27 → 6, ≥28 → 7); location (operating_room → 0, emergency_room → 5, other_icu → 7, other → 8); comorbidities additive (cancer_therapy → 3, metastatic_cancer → 11, hematologic_cancer → 6, chronic_hf_nyha_iv → 6, cirrhosis → 8, aids → 8); vasoactive_drugs → 3. Box II: unplanned ICU admission → 3; reasons additive (rhythm_disturbances → -5, hypovolemic_shock → 3, septic_shock → 5, anaphylactic_or_mixed_shock → 5, liver_failure → 6, severe_pancreatitis → 9, acute_abdomen → 3, intracranial_mass_effect → 10, focal_neurologic_deficit → 7, seizures → -4, coma_stupor_agitation → 4; if rhythm and seizures both, only -4; hypovolemic_shock plus acute_abdomen scores both); surgical_status (scheduled_surgery → 0, emergency_surgery → 6, no_surgery → 5); surgery_site (transplantation → -11, trauma_isolated or trauma_multiple → -8, cabg_no_valve → -6, neurosurgery_cva → 5, all_others → 0); nosocomial_infection → 4, respiratory_infection → 5. Box III within ±1 h as assigned: GCS (3-4 → 15, 5 → 10, 6 → 7, 7-12 → 2, ≥13 → 0); bilirubin_mg_dl (<2 → 0, 2-<6 → 4, ≥6 → 5) or bilirubin_umol_l (<34.2 → 0, 34.2-<102.6 → 4, ≥102.6 → 5); temperature_c (<35 → 7, ≥35 → 0); creatinine_mg_dl (<1.2 → 0, 1.2-<2 → 2, 2-<3.5 → 7, ≥3.5 → 8) or creatinine_umol_l (<106.1 → 0, 106.1-<176.8 → 2, 176.8-<309.4 → 7, ≥309.4 → 8); heart_rate (<120 → 0, 120-159 → 5, ≥160 → 7); leukocytes_g_l (<15 → 0, ≥15 → 2); arterial_ph (≤7.25 → 3, >7.25 → 0); platelets_g_l (<20 → 13, 20-<50 → 8, 50-<100 → 5, ≥100 → 0); systolic_bp_mm_hg (<40 → 11, 40-<70 → 8, 70-<120 → 3, ≥120 → 0); oxygenation (PaO2/FiO2 <100 and MV → 11, PaO2/FiO2 ≥100 and MV → 7, PaO2 <60 and no MV → 5, else 0). logit = -32.6659 + ln(SAPS_3 + 20.5958) × 7.3068; estimated_probability_percent = 100 × exp(logit)/(1+exp(logit)); max 217",
"estimated_probability_percent": 0.17
},
{
"logit": -6.3619,
"score": 16,
"formula": "saps_3",
"citation": {
"id": "moreno-2005",
"doi": "10.1007/s00134-005-2763-5",
"pmid": "16132893",
"title": "SAPS 3—From evaluation of the patient to evaluation of the intensive care unit. Part 2: Development of a prognostic model for hospital mortality at ICU admission",
"source": "Intensive Care Med. 2005;31(10):1345-1355",
"authors": "Moreno RP, Metnitz PGH, Almeida E, et al; SAPS 3 Investigators"
},
"max_score": 217,
"components": [
{
"value": 16,
"factor": "admission_offset",
"points": 16,
"present": true
},
{
"value": 35,
"factor": "age",
"points": 0,
"present": false
},
{
"value": 1,
"factor": "los_days",
"points": 0,
"present": false
},
{
"value": "operating_room",
"factor": "location",
"points": 0,
"present": false
},
{
"aids": false,
"factor": "comorbidities",
"points": 0,
"present": false,
"cirrhosis": false,
"cancer_therapy": false,
"metastatic_cancer": false,
"chronic_hf_nyha_iv": false,
"hematologic_cancer": false
},
{
"value": false,
"factor": "vasoactive_drugs",
"points": 0,
"present": false
},
{
"value": "planned",
"factor": "icu_admission",
"points": 0,
"present": false
},
{
"factor": "reasons_for_admission",
"points": 0,
"present": false,
"seizures": false,
"septic_shock": false,
"acute_abdomen": false,
"liver_failure": false,
"hypovolemic_shock": false,
"rhythm_disturbances": false,
"severe_pancreatitis": false,
"coma_stupor_agitation": false,
"focal_neurologic_deficit": false,
"intracranial_mass_effect": false,
"anaphylactic_or_mixed_shock": false
},
{
"value": "scheduled_surgery",
"factor": "surgical_status",
"points": 0,
"present": false
},
{
"value": "all_others",
"factor": "surgery_site",
"points": 0,
"present": false
},
{
"factor": "infection",
"points": 0,
"present": false,
"nosocomial_infection": false,
"respiratory_infection": false
},
{
"value": 15,
"factor": "gcs",
"points": 0,
"present": false
},
{
"value": 0.8,
"branch": "bilirubin_mg_dl",
"factor": "bilirubin",
"points": 0,
"present": false
},
{
"value": 37,
"factor": "temperature_c",
"points": 0,
"present": false
},
{
"value": 1,
"branch": "creatinine_mg_dl",
"factor": "creatinine",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "heart_rate",
"points": 0,
"present": false
},
{
"value": 8,
"factor": "leukocytes_g_l",
"points": 0,
"present": false
},
{
"value": 7.4,
"factor": "arterial_ph",
"points": 0,
"present": false
},
{
"value": 250,
"factor": "platelets_g_l",
"points": 0,
"present": false
},
{
"value": 120,
"factor": "systolic_bp_mm_hg",
"points": 0,
"present": false
},
{
"value": 90,
"branch": "pao2_no_mv",
"factor": "oxygenation",
"points": 0,
"present": false,
"mechanical_ventilation": false
}
],
"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": "SAPS 3 = 16 (admission offset) + Box I + Box II + Box III (Moreno 2005 Part 2 scoresheet). Box I: age (<40 → 0, 40-59 → 5, 60-69 → 9, 70-74 → 13, 75-79 → 15, ≥80 → 18); los_days (<14 → 0, 14-27 → 6, ≥28 → 7); location (operating_room → 0, emergency_room → 5, other_icu → 7, other → 8); comorbidities additive (cancer_therapy → 3, metastatic_cancer → 11, hematologic_cancer → 6, chronic_hf_nyha_iv → 6, cirrhosis → 8, aids → 8); vasoactive_drugs → 3. Box II: unplanned ICU admission → 3; reasons additive (rhythm_disturbances → -5, hypovolemic_shock → 3, septic_shock → 5, anaphylactic_or_mixed_shock → 5, liver_failure → 6, severe_pancreatitis → 9, acute_abdomen → 3, intracranial_mass_effect → 10, focal_neurologic_deficit → 7, seizures → -4, coma_stupor_agitation → 4; if rhythm and seizures both, only -4; hypovolemic_shock plus acute_abdomen scores both); surgical_status (scheduled_surgery → 0, emergency_surgery → 6, no_surgery → 5); surgery_site (transplantation → -11, trauma_isolated or trauma_multiple → -8, cabg_no_valve → -6, neurosurgery_cva → 5, all_others → 0); nosocomial_infection → 4, respiratory_infection → 5. Box III within ±1 h as assigned: GCS (3-4 → 15, 5 → 10, 6 → 7, 7-12 → 2, ≥13 → 0); bilirubin_mg_dl (<2 → 0, 2-<6 → 4, ≥6 → 5) or bilirubin_umol_l (<34.2 → 0, 34.2-<102.6 → 4, ≥102.6 → 5); temperature_c (<35 → 7, ≥35 → 0); creatinine_mg_dl (<1.2 → 0, 1.2-<2 → 2, 2-<3.5 → 7, ≥3.5 → 8) or creatinine_umol_l (<106.1 → 0, 106.1-<176.8 → 2, 176.8-<309.4 → 7, ≥309.4 → 8); heart_rate (<120 → 0, 120-159 → 5, ≥160 → 7); leukocytes_g_l (<15 → 0, ≥15 → 2); arterial_ph (≤7.25 → 3, >7.25 → 0); platelets_g_l (<20 → 13, 20-<50 → 8, 50-<100 → 5, ≥100 → 0); systolic_bp_mm_hg (<40 → 11, 40-<70 → 8, 70-<120 → 3, ≥120 → 0); oxygenation (PaO2/FiO2 <100 and MV → 11, PaO2/FiO2 ≥100 and MV → 7, PaO2 <60 and no MV → 5, else 0). logit = -32.6659 + ln(SAPS_3 + 20.5958) × 7.3068; estimated_probability_percent = 100 × exp(logit)/(1+exp(logit)); max 217",
"estimated_probability_percent": 0.17
}
]
}
},
"iconUrl": "https://api.magentlab.com/favicon.ico"
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"body": {
"type": "object",
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"age",
"los_days",
"location",
"vasoactive_drugs",
"icu_admission",
"surgical_status",
"surgery_site",
"gcs",
"temperature_c",
"heart_rate",
"leukocytes_g_l",
"arterial_ph",
"platelets_g_l",
"systolic_bp_mm_hg",
"mechanical_ventilation"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years, integer 18-120, as assigned at ICU admission. <40 → 0; 40-59 → 5; 60-69 → 9; 70-74 → 13; 75-79 → 15; ≥80 → 18."
},
"gcs": {
"type": "integer",
"description": "Lowest estimated Glasgow Coma Scale, integer 3-15, within ±1 h of ICU admission as assigned by the caller. 3-4 → 15; 5 → 10; 6 → 7; 7-12 → 2; ≥13 → 0. magent does not examine the patient."
},
"aids": {
"type": "boolean",
"description": "AIDS as assigned (+8). Additive with cirrhosis. Omit or false → 0."
},
"location": {
"enum": [
"operating_room",
"emergency_room",
"other_icu",
"other"
],
"type": "string",
"description": "Intra-hospital location before ICU admission: operating_room (0), emergency_room (5), other_icu (7; intermediate/high-dependency, other ICU, or recovery), or other (8; ward or other). magent does not classify the bed."
},
"los_days": {
"type": "integer",
"description": "Hospital stay in days before ICU admission as assigned by the caller (integer 0-365). <14 → 0; 14-27 → 6; ≥28 → 7. magent does not subtract timestamps."
},
"seizures": {
"type": "boolean",
"description": "Seizures (-4). If rhythm_disturbances is also true, only -4 is scored. Omit or false → 0."
},
"cirrhosis": {
"type": "boolean",
"description": "Cirrhosis as assigned (+8). Additive with aids. Omit or false → 0."
},
"pao2_fio2": {
"type": "number",
"description": "PaO2/FiO2 ratio in mm Hg (10-800). Required when mechanical_ventilation is true. <100 → 11; ≥100 → 7. Ignored when mechanical_ventilation is false. magent does not compute the ratio."
},
"heart_rate": {
"type": "integer",
"description": "Highest heart rate in beats/min, integer 20-250. <120 → 0; 120-159 → 5; ≥160 → 7. magent does not measure pulse."
},
"pao2_mm_hg": {
"type": "number",
"description": "Lowest PaO2 in mm Hg (20-700). Required when mechanical_ventilation is false. <60 → 5; ≥60 → 0. Ignored when mechanical_ventilation is true."
},
"arterial_ph": {
"type": "number",
"description": "Lowest arterial pH (6.5-8.0). ≤7.25 → 3; >7.25 → 0."
},
"septic_shock": {
"type": "boolean",
"description": "Septic shock as a reason for ICU admission (+5). Additive. Omit or false → 0."
},
"surgery_site": {
"enum": [
"all_others",
"transplantation",
"trauma_isolated",
"trauma_multiple",
"cabg_no_valve",
"neurosurgery_cva"
],
"type": "string",
"description": "Anatomical site of surgery as assigned: all_others (0), transplantation (-11), trauma_isolated or trauma_multiple (-8), cabg_no_valve (-6), or neurosurgery_cva (5). One token. magent does not classify a procedure."
},
"acute_abdomen": {
"type": "boolean",
"description": "Digestive acute abdomen or other digestive (not pancreatitis) as one Box II row (+3). Additive with hypovolemic_shock. Omit or false → 0."
},
"icu_admission": {
"enum": [
"planned",
"unplanned"
],
"type": "string",
"description": "Planned (0) or unplanned (3) ICU admission as assigned by the caller. magent does not classify the admission."
},
"liver_failure": {
"type": "boolean",
"description": "Hepatic liver failure as a reason for ICU admission (+6). Omit or false → 0."
},
"platelets_g_l": {
"type": "number",
"description": "Lowest platelets in G/L (0-2000). <20 → 13; 20-<50 → 8; 50-<100 → 5; ≥100 → 0."
},
"temperature_c": {
"type": "number",
"description": "Highest body temperature in °C (20-46) within ±1 h as assigned. <35 → 7; ≥35 → 0. The scoresheet has no hyperthermia points. magent does not measure temperature or convert Fahrenheit."
},
"cancer_therapy": {
"type": "boolean",
"description": "Chemotherapy, other immunosuppression, radiotherapy, or steroid treatment as assigned (+3). Additive with other comorbidity flags. Omit or false → 0."
},
"leukocytes_g_l": {
"type": "number",
"description": "Lowest leukocytes in G/L (0.1-200), numerically equal to 10^9/L. <15 → 0; ≥15 → 2. magent does not count cells."
},
"bilirubin_mg_dl": {
"type": "number",
"description": "Highest total bilirubin in mg/dL (0-40). One of bilirubin_mg_dl or bilirubin_umol_l is required. If both are sent, bilirubin_mg_dl is scored. <2 → 0; 2-<6 → 4; ≥6 → 5."
},
"surgical_status": {
"enum": [
"scheduled_surgery",
"emergency_surgery",
"no_surgery"
],
"type": "string",
"description": "Surgical status at ICU admission: scheduled_surgery (0), emergency_surgery (6), or no_surgery (5)."
},
"bilirubin_umol_l": {
"type": "number",
"description": "Highest total bilirubin in µmol/L (0-684). Alternate to bilirubin_mg_dl. Ignored when bilirubin_mg_dl is present. <34.2 → 0; 34.2-<102.6 → 4; ≥102.6 → 5. magent does not convert units."
},
"creatinine_mg_dl": {
"type": "number",
"description": "Highest creatinine in mg/dL (0.1-20). One of creatinine_mg_dl or creatinine_umol_l is required. If both are sent, creatinine_mg_dl is scored. <1.2 → 0; 1.2-<2 → 2; 2-<3.5 → 7; ≥3.5 → 8."
},
"vasoactive_drugs": {
"type": "boolean",
"description": "true if the caller assigns vasoactive drugs before ICU admission (+3). false → 0. magent does not inspect the medication list."
},
"creatinine_umol_l": {
"type": "number",
"description": "Highest creatinine in µmol/L (9-1768). Alternate to creatinine_mg_dl. Ignored when creatinine_mg_dl is present. <106.1 → 0; 106.1-<176.8 → 2; 176.8-<309.4 → 7; ≥309.4 → 8. magent does not convert units."
},
"hypovolemic_shock": {
"type": "boolean",
"description": "Hypovolemic hemorrhagic or non-hemorrhagic shock as one Box II row (+3). Additive with acute_abdomen. Omit or false → 0."
},
"metastatic_cancer": {
"type": "boolean",
"description": "Metastatic cancer as assigned (+11). Additive. Omit or false → 0. magent does not diagnose."
},
"systolic_bp_mm_hg": {
"type": "number",
"description": "Lowest systolic blood pressure in mm Hg (20-300). <40 → 11; 40-<70 → 8; 70-<120 → 3; ≥120 → 0. magent does not measure blood pressure."
},
"chronic_hf_nyha_iv": {
"type": "boolean",
"description": "Chronic heart failure NYHA class IV as assigned (+6). Additive. Omit or false → 0."
},
"hematologic_cancer": {
"type": "boolean",
"description": "Haematological cancer as assigned (+6). Additive. Omit or false → 0."
},
"rhythm_disturbances": {
"type": "boolean",
"description": "Cardiovascular reason: rhythm disturbances (-5). If seizures is also true, only -4 is scored. Omit or false → 0."
},
"severe_pancreatitis": {
"type": "boolean",
"description": "Severe pancreatitis (+9). Omit or false → 0."
},
"nosocomial_infection": {
"type": "boolean",
"description": "Hospital-acquired infection at ICU admission (+4). Additive with respiratory_infection. Omit or false → 0."
},
"coma_stupor_agitation": {
"type": "boolean",
"description": "Coma, stupor, obtunded, agitation, vigilance disturbance, confusion, or delirium (+4). Omit or false → 0."
},
"respiratory_infection": {
"type": "boolean",
"description": "Lower respiratory tract infection at ICU admission (+5). Additive with nosocomial_infection. Omit or false → 0."
},
"mechanical_ventilation": {
"type": "boolean",
"description": "true if the caller assigns mechanical ventilation at ICU admission. true scores PaO2/FiO2 (pao2_fio2 required). false scores PaO2 (pao2_mm_hg required) and pao2_fio2 is ignored."
},
"focal_neurologic_deficit": {
"type": "boolean",
"description": "Focal neurologic deficit (+7). Additive. Omit or false → 0."
},
"intracranial_mass_effect": {
"type": "boolean",
"description": "Neurologic intracranial mass effect (+10). Additive. Omit or false → 0."
},
"anaphylactic_or_mixed_shock": {
"type": "boolean",
"description": "Anaphylactic, mixed, or undefined shock (+5). Additive. Omit or false → 0."
}
}
},
"maxItems": 25,
"minItems": 1
}
},
"additionalProperties": false
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"type": "string",
"const": "POST"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-09-01 10:14Z
- Last indexed by Roundhouse
- 2026-09-07 06:20Z
- Last enriched (probe, favicon, geo)
- 2026-09-24 08:45Z
- x402 version
- 2
- Max timeout
- 600s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 8 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service magent and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=magent' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://api.magentlab.com/api/calc/saps_3, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402, or use an organization key from https://roundhouseai.io/dashboard/team. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.