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_ii",
"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_ii",
"tags": [
"saps-ii",
"icu",
"severity",
"physiology",
"mortality"
],
"mimeType": "application/json",
"description": "Le Gall 1993 Simplified Acute Physiology Score II from 12 physiology variables (worst values in the first 24 hours as assigned by the caller), age, type of admission, and one chronic disease (AIDS, metastatic cancer, or hematologic malignancy). Max 163. Converts the integer to hospital-mortality probability with the paper's logit. PaO2/FiO2 is scored only if ventilated or CPAP. Not SAPS 3. Not APACHE. magent does not measure vitals.",
"serviceName": "magent"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"age": 35,
"gcs": 15,
"wbc_k_ul": 8,
"bun_mg_dl": 15,
"pao2_fio2": 250,
"heart_rate": 80,
"ventilated": false,
"urea_mmol_l": 5,
"sodium_mmol_l": 140,
"temperature_c": 37,
"admission_type": "scheduled_surgical",
"bilirubin_mg_dl": 0.8,
"chronic_disease": "none",
"bilirubin_umol_l": 14,
"potassium_mmol_l": 4,
"bicarbonate_meq_l": 24,
"systolic_bp_mm_hg": 120,
"urine_output_l_day": 1.5
}
},
"output": {
"type": "json",
"example": {
"logit": -7.7631,
"score": 0,
"formula": "saps_ii",
"citation": {
"id": "le-gall-1993",
"doi": "10.1001/jama.270.24.2957",
"pmid": "8254858",
"title": "A new Simplified Acute Physiology Score (SAPS II) based on a European/North American multicenter study",
"source": "JAMA. 1993;270(24):2957-2963",
"authors": "Le Gall JR, Lemeshow S, Saulnier F"
},
"max_score": 163,
"components": [
{
"value": 35,
"factor": "age",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "heart_rate",
"points": 0,
"present": false
},
{
"value": 120,
"factor": "systolic_bp_mm_hg",
"points": 0,
"present": false
},
{
"value": 37,
"factor": "temperature_c",
"points": 0,
"present": false
},
{
"value": null,
"branch": "not_ventilated",
"factor": "oxygenation",
"points": 0,
"present": false,
"ventilated": false
},
{
"value": 1.5,
"factor": "urine_output_l_day",
"points": 0,
"present": false
},
{
"value": 5,
"branch": "urea_mmol_l",
"factor": "urea",
"points": 0,
"present": false
},
{
"value": 8,
"factor": "wbc_k_ul",
"points": 0,
"present": false
},
{
"value": 4,
"factor": "potassium_mmol_l",
"points": 0,
"present": false
},
{
"value": 140,
"factor": "sodium_mmol_l",
"points": 0,
"present": false
},
{
"value": 24,
"factor": "bicarbonate_meq_l",
"points": 0,
"present": false
},
{
"value": 0.8,
"branch": "bilirubin_mg_dl",
"factor": "bilirubin",
"points": 0,
"present": false
},
{
"value": 15,
"factor": "gcs",
"points": 0,
"present": false
},
{
"value": "scheduled_surgical",
"factor": "admission_type",
"points": 0,
"present": false
},
{
"value": "none",
"factor": "chronic_disease",
"points": 0,
"present": 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 II = sum of 17 Le Gall 1993 variables (worst values in 24h as assigned by the caller): heart_rate (<40 → 11, 40-69 → 2, 70-119 → 0, 120-159 → 4, ≥160 → 7), systolic_bp_mm_hg (<70 → 13, 70-99 → 5, 100-199 → 0, ≥200 → 2), temperature_c (<39 → 0, ≥39 → 3), PaO2/FiO2 mm Hg if ventilated or CPAP (<100 → 11, 100-199 → 9, ≥200 → 6) else 0, urine_output_l_day (<0.500 → 11, 0.500-0.999 → 4, ≥1.000 → 0), urea_mmol_l (<10.0 → 0, 10.0-29.9 → 6, ≥30.0 → 10) or bun_mg_dl (<28 → 0, 28-83 → 6, ≥84 → 10), wbc_k_ul (<1.0 → 12, 1.0-19.9 → 0, ≥20.0 → 3), potassium_mmol_l (<3.0 or ≥5.0 → 3, 3.0-4.9 → 0), sodium_mmol_l (<125 → 5, 125-144 → 0, ≥145 → 1), bicarbonate_meq_l (<15 → 6, 15-19 → 3, ≥20 → 0), bilirubin_mg_dl (<4.0 → 0, 4.0-5.9 → 4, ≥6.0 → 9) or bilirubin_umol_l (<68.4 → 0, 68.4-102.5 → 4, ≥102.6 → 9), gcs (<6 → 26, 6-8 → 13, 9-10 → 7, 11-13 → 5, 14-15 → 0), age (<40 → 0, 40-59 → 7, 60-69 → 12, 70-74 → 15, 75-79 → 16, ≥80 → 18), admission_type (scheduled_surgical → 0, medical → 6, unscheduled_surgical → 8), chronic_disease (none → 0, metastatic_cancer → 9, hematologic_malignancy → 10, aids → 17, one row not additive); logit = -7.7631 + 0.0737*SAPS_II + 0.9971*ln(SAPS_II+1); hospital_mortality_probability = exp(logit)/(1+exp(logit)); max 163",
"hospital_mortality_probability": 0.000425
}
},
"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",
"heart_rate",
"systolic_bp_mm_hg",
"temperature_c",
"ventilated",
"urine_output_l_day",
"wbc_k_ul",
"potassium_mmol_l",
"sodium_mmol_l",
"bicarbonate_meq_l",
"gcs",
"admission_type",
"chronic_disease"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years, integer 18-120 (Le Gall 1993 excluded patients younger than 18). <40 → 0; 40-59 → 7; 60-69 → 12; 70-74 → 15; 75-79 → 16; ≥80 → 18."
},
"gcs": {
"type": "integer",
"description": "Glasgow Coma Scale total as assigned by the caller (integer 3-15). <6 → 26; 6-8 → 13; 9-10 → 7; 11-13 → 5; 14-15 → 0. magent does not examine the patient."
},
"wbc_k_ul": {
"type": "number",
"description": "White blood count in thousands per mm^3 (0-100). <1.0 → 12; 1.0-19.9 → 0; ≥20.0 → 3."
},
"bun_mg_dl": {
"type": "number",
"description": "Blood urea nitrogen in mg/dL (1-250). Alternate to urea_mmol_l (Le Gall 1993 US column). Ignored when urea_mmol_l is present. <28 → 0; 28-83 → 6; ≥84 → 10. magent does not convert BUN to urea."
},
"pao2_fio2": {
"type": "number",
"description": "PaO2/FiO2 ratio in mm Hg (10-800). Required when ventilated is true. <100 → 11; 100-199 → 9; ≥200 → 6. Ignored when ventilated is false. magent does not compute the ratio from PaO2 and FiO2."
},
"heart_rate": {
"type": "integer",
"description": "Heart rate in beats/min, integer 20-250, worst in 24h as assigned by the caller. <40 → 11; 40-69 → 2; 70-119 → 0; 120-159 → 4; ≥160 → 7. magent does not measure pulse."
},
"ventilated": {
"type": "boolean",
"description": "true if the caller assigns mechanical ventilation or CPAP in the first 24h (Le Gall 1993 PaO2/FiO2 row). false → 0 oxygenation points and pao2_fio2 is ignored. Ventilated or CPAP scores at least 6 even when PaO2/FiO2 is ≥200."
},
"urea_mmol_l": {
"type": "number",
"description": "Serum urea in mmol/L (0.1-80). One of urea_mmol_l or bun_mg_dl is required. If both are sent, urea_mmol_l is scored and bun_mg_dl is ignored. <10.0 → 0; 10.0-29.9 → 6; ≥30.0 → 10."
},
"sodium_mmol_l": {
"type": "number",
"description": "Serum sodium in mmol/L (90-200). <125 → 5; 125-144 → 0; ≥145 → 1."
},
"temperature_c": {
"type": "number",
"description": "Body temperature in °C (20-46). <39 → 0; ≥39 → 3. The 1993 table has no hypothermia points. magent does not measure temperature or convert Fahrenheit."
},
"admission_type": {
"enum": [
"scheduled_surgical",
"medical",
"unscheduled_surgical"
],
"type": "string",
"description": "Le Gall 1993 type of admission as assigned by the caller: scheduled_surgical (0), medical (6), or unscheduled_surgical (8). magent does not classify the admission."
},
"bilirubin_mg_dl": {
"type": "number",
"description": "Serum 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 and bilirubin_umol_l is ignored. <4.0 → 0; 4.0-5.9 → 4; ≥6.0 → 9."
},
"chronic_disease": {
"enum": [
"none",
"metastatic_cancer",
"hematologic_malignancy",
"aids"
],
"type": "string",
"description": "Le Gall 1993 chronic-disease row as assigned by the caller: none (0), metastatic_cancer (9), hematologic_malignancy (10), or aids (17). One token; the paper's table is not additive. magent does not diagnose."
},
"bilirubin_umol_l": {
"type": "number",
"description": "Serum bilirubin in µmol/L (0-684). Alternate to bilirubin_mg_dl (Le Gall 1993 SI column). Ignored when bilirubin_mg_dl is present. <68.4 → 0; 68.4-102.5 → 4; ≥102.6 → 9. magent does not convert units."
},
"potassium_mmol_l": {
"type": "number",
"description": "Serum potassium in mmol/L (1-12). <3.0 → 3; 3.0-4.9 → 0; ≥5.0 → 3."
},
"bicarbonate_meq_l": {
"type": "number",
"description": "Serum bicarbonate in mEq/L (2-60). <15 → 6; 15-19 → 3; ≥20 → 0. Arterial pH is not a SAPS II variable."
},
"systolic_bp_mm_hg": {
"type": "number",
"description": "Systolic blood pressure in mm Hg (20-300), worst in 24h as assigned by the caller. <70 → 13; 70-99 → 5; 100-199 → 0; ≥200 → 2. magent does not measure blood pressure."
},
"urine_output_l_day": {
"type": "number",
"description": "Urine output in L/24h (0-20) as assigned by the caller. <0.500 → 11; 0.500-0.999 → 4; ≥1.000 → 0. magent does not measure urine."
}
}
}
},
"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_ii",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"items": [
{
"age": 35,
"gcs": 15,
"wbc_k_ul": 8,
"bun_mg_dl": 15,
"pao2_fio2": 250,
"heart_rate": 80,
"ventilated": false,
"urea_mmol_l": 5,
"sodium_mmol_l": 140,
"temperature_c": 37,
"admission_type": "scheduled_surgical",
"bilirubin_mg_dl": 0.8,
"chronic_disease": "none",
"bilirubin_umol_l": 14,
"potassium_mmol_l": 4,
"bicarbonate_meq_l": 24,
"systolic_bp_mm_hg": 120,
"urine_output_l_day": 1.5
},
{
"age": 35,
"gcs": 15,
"wbc_k_ul": 8,
"bun_mg_dl": 15,
"pao2_fio2": 250,
"heart_rate": 80,
"ventilated": false,
"urea_mmol_l": 5,
"sodium_mmol_l": 140,
"temperature_c": 37,
"admission_type": "scheduled_surgical",
"bilirubin_mg_dl": 0.8,
"chronic_disease": "none",
"bilirubin_umol_l": 14,
"potassium_mmol_l": 4,
"bicarbonate_meq_l": 24,
"systolic_bp_mm_hg": 120,
"urine_output_l_day": 1.5
}
]
},
"type": "http",
"method": "POST"
},
"output": {
"type": "json",
"example": {
"path": "/api/calc/saps_ii",
"count": 2,
"items": [
{
"logit": -7.7631,
"score": 0,
"formula": "saps_ii",
"citation": {
"id": "le-gall-1993",
"doi": "10.1001/jama.270.24.2957",
"pmid": "8254858",
"title": "A new Simplified Acute Physiology Score (SAPS II) based on a European/North American multicenter study",
"source": "JAMA. 1993;270(24):2957-2963",
"authors": "Le Gall JR, Lemeshow S, Saulnier F"
},
"max_score": 163,
"components": [
{
"value": 35,
"factor": "age",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "heart_rate",
"points": 0,
"present": false
},
{
"value": 120,
"factor": "systolic_bp_mm_hg",
"points": 0,
"present": false
},
{
"value": 37,
"factor": "temperature_c",
"points": 0,
"present": false
},
{
"value": null,
"branch": "not_ventilated",
"factor": "oxygenation",
"points": 0,
"present": false,
"ventilated": false
},
{
"value": 1.5,
"factor": "urine_output_l_day",
"points": 0,
"present": false
},
{
"value": 5,
"branch": "urea_mmol_l",
"factor": "urea",
"points": 0,
"present": false
},
{
"value": 8,
"factor": "wbc_k_ul",
"points": 0,
"present": false
},
{
"value": 4,
"factor": "potassium_mmol_l",
"points": 0,
"present": false
},
{
"value": 140,
"factor": "sodium_mmol_l",
"points": 0,
"present": false
},
{
"value": 24,
"factor": "bicarbonate_meq_l",
"points": 0,
"present": false
},
{
"value": 0.8,
"branch": "bilirubin_mg_dl",
"factor": "bilirubin",
"points": 0,
"present": false
},
{
"value": 15,
"factor": "gcs",
"points": 0,
"present": false
},
{
"value": "scheduled_surgical",
"factor": "admission_type",
"points": 0,
"present": false
},
{
"value": "none",
"factor": "chronic_disease",
"points": 0,
"present": 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 II = sum of 17 Le Gall 1993 variables (worst values in 24h as assigned by the caller): heart_rate (<40 → 11, 40-69 → 2, 70-119 → 0, 120-159 → 4, ≥160 → 7), systolic_bp_mm_hg (<70 → 13, 70-99 → 5, 100-199 → 0, ≥200 → 2), temperature_c (<39 → 0, ≥39 → 3), PaO2/FiO2 mm Hg if ventilated or CPAP (<100 → 11, 100-199 → 9, ≥200 → 6) else 0, urine_output_l_day (<0.500 → 11, 0.500-0.999 → 4, ≥1.000 → 0), urea_mmol_l (<10.0 → 0, 10.0-29.9 → 6, ≥30.0 → 10) or bun_mg_dl (<28 → 0, 28-83 → 6, ≥84 → 10), wbc_k_ul (<1.0 → 12, 1.0-19.9 → 0, ≥20.0 → 3), potassium_mmol_l (<3.0 or ≥5.0 → 3, 3.0-4.9 → 0), sodium_mmol_l (<125 → 5, 125-144 → 0, ≥145 → 1), bicarbonate_meq_l (<15 → 6, 15-19 → 3, ≥20 → 0), bilirubin_mg_dl (<4.0 → 0, 4.0-5.9 → 4, ≥6.0 → 9) or bilirubin_umol_l (<68.4 → 0, 68.4-102.5 → 4, ≥102.6 → 9), gcs (<6 → 26, 6-8 → 13, 9-10 → 7, 11-13 → 5, 14-15 → 0), age (<40 → 0, 40-59 → 7, 60-69 → 12, 70-74 → 15, 75-79 → 16, ≥80 → 18), admission_type (scheduled_surgical → 0, medical → 6, unscheduled_surgical → 8), chronic_disease (none → 0, metastatic_cancer → 9, hematologic_malignancy → 10, aids → 17, one row not additive); logit = -7.7631 + 0.0737*SAPS_II + 0.9971*ln(SAPS_II+1); hospital_mortality_probability = exp(logit)/(1+exp(logit)); max 163",
"hospital_mortality_probability": 0.000425
},
{
"logit": -7.7631,
"score": 0,
"formula": "saps_ii",
"citation": {
"id": "le-gall-1993",
"doi": "10.1001/jama.270.24.2957",
"pmid": "8254858",
"title": "A new Simplified Acute Physiology Score (SAPS II) based on a European/North American multicenter study",
"source": "JAMA. 1993;270(24):2957-2963",
"authors": "Le Gall JR, Lemeshow S, Saulnier F"
},
"max_score": 163,
"components": [
{
"value": 35,
"factor": "age",
"points": 0,
"present": false
},
{
"value": 80,
"factor": "heart_rate",
"points": 0,
"present": false
},
{
"value": 120,
"factor": "systolic_bp_mm_hg",
"points": 0,
"present": false
},
{
"value": 37,
"factor": "temperature_c",
"points": 0,
"present": false
},
{
"value": null,
"branch": "not_ventilated",
"factor": "oxygenation",
"points": 0,
"present": false,
"ventilated": false
},
{
"value": 1.5,
"factor": "urine_output_l_day",
"points": 0,
"present": false
},
{
"value": 5,
"branch": "urea_mmol_l",
"factor": "urea",
"points": 0,
"present": false
},
{
"value": 8,
"factor": "wbc_k_ul",
"points": 0,
"present": false
},
{
"value": 4,
"factor": "potassium_mmol_l",
"points": 0,
"present": false
},
{
"value": 140,
"factor": "sodium_mmol_l",
"points": 0,
"present": false
},
{
"value": 24,
"factor": "bicarbonate_meq_l",
"points": 0,
"present": false
},
{
"value": 0.8,
"branch": "bilirubin_mg_dl",
"factor": "bilirubin",
"points": 0,
"present": false
},
{
"value": 15,
"factor": "gcs",
"points": 0,
"present": false
},
{
"value": "scheduled_surgical",
"factor": "admission_type",
"points": 0,
"present": false
},
{
"value": "none",
"factor": "chronic_disease",
"points": 0,
"present": 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 II = sum of 17 Le Gall 1993 variables (worst values in 24h as assigned by the caller): heart_rate (<40 → 11, 40-69 → 2, 70-119 → 0, 120-159 → 4, ≥160 → 7), systolic_bp_mm_hg (<70 → 13, 70-99 → 5, 100-199 → 0, ≥200 → 2), temperature_c (<39 → 0, ≥39 → 3), PaO2/FiO2 mm Hg if ventilated or CPAP (<100 → 11, 100-199 → 9, ≥200 → 6) else 0, urine_output_l_day (<0.500 → 11, 0.500-0.999 → 4, ≥1.000 → 0), urea_mmol_l (<10.0 → 0, 10.0-29.9 → 6, ≥30.0 → 10) or bun_mg_dl (<28 → 0, 28-83 → 6, ≥84 → 10), wbc_k_ul (<1.0 → 12, 1.0-19.9 → 0, ≥20.0 → 3), potassium_mmol_l (<3.0 or ≥5.0 → 3, 3.0-4.9 → 0), sodium_mmol_l (<125 → 5, 125-144 → 0, ≥145 → 1), bicarbonate_meq_l (<15 → 6, 15-19 → 3, ≥20 → 0), bilirubin_mg_dl (<4.0 → 0, 4.0-5.9 → 4, ≥6.0 → 9) or bilirubin_umol_l (<68.4 → 0, 68.4-102.5 → 4, ≥102.6 → 9), gcs (<6 → 26, 6-8 → 13, 9-10 → 7, 11-13 → 5, 14-15 → 0), age (<40 → 0, 40-59 → 7, 60-69 → 12, 70-74 → 15, 75-79 → 16, ≥80 → 18), admission_type (scheduled_surgical → 0, medical → 6, unscheduled_surgical → 8), chronic_disease (none → 0, metastatic_cancer → 9, hematologic_malignancy → 10, aids → 17, one row not additive); logit = -7.7631 + 0.0737*SAPS_II + 0.9971*ln(SAPS_II+1); hospital_mortality_probability = exp(logit)/(1+exp(logit)); max 163",
"hospital_mortality_probability": 0.000425
}
]
}
},
"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",
"heart_rate",
"systolic_bp_mm_hg",
"temperature_c",
"ventilated",
"urine_output_l_day",
"wbc_k_ul",
"potassium_mmol_l",
"sodium_mmol_l",
"bicarbonate_meq_l",
"gcs",
"admission_type",
"chronic_disease"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years, integer 18-120 (Le Gall 1993 excluded patients younger than 18). <40 → 0; 40-59 → 7; 60-69 → 12; 70-74 → 15; 75-79 → 16; ≥80 → 18."
},
"gcs": {
"type": "integer",
"description": "Glasgow Coma Scale total as assigned by the caller (integer 3-15). <6 → 26; 6-8 → 13; 9-10 → 7; 11-13 → 5; 14-15 → 0. magent does not examine the patient."
},
"wbc_k_ul": {
"type": "number",
"description": "White blood count in thousands per mm^3 (0-100). <1.0 → 12; 1.0-19.9 → 0; ≥20.0 → 3."
},
"bun_mg_dl": {
"type": "number",
"description": "Blood urea nitrogen in mg/dL (1-250). Alternate to urea_mmol_l (Le Gall 1993 US column). Ignored when urea_mmol_l is present. <28 → 0; 28-83 → 6; ≥84 → 10. magent does not convert BUN to urea."
},
"pao2_fio2": {
"type": "number",
"description": "PaO2/FiO2 ratio in mm Hg (10-800). Required when ventilated is true. <100 → 11; 100-199 → 9; ≥200 → 6. Ignored when ventilated is false. magent does not compute the ratio from PaO2 and FiO2."
},
"heart_rate": {
"type": "integer",
"description": "Heart rate in beats/min, integer 20-250, worst in 24h as assigned by the caller. <40 → 11; 40-69 → 2; 70-119 → 0; 120-159 → 4; ≥160 → 7. magent does not measure pulse."
},
"ventilated": {
"type": "boolean",
"description": "true if the caller assigns mechanical ventilation or CPAP in the first 24h (Le Gall 1993 PaO2/FiO2 row). false → 0 oxygenation points and pao2_fio2 is ignored. Ventilated or CPAP scores at least 6 even when PaO2/FiO2 is ≥200."
},
"urea_mmol_l": {
"type": "number",
"description": "Serum urea in mmol/L (0.1-80). One of urea_mmol_l or bun_mg_dl is required. If both are sent, urea_mmol_l is scored and bun_mg_dl is ignored. <10.0 → 0; 10.0-29.9 → 6; ≥30.0 → 10."
},
"sodium_mmol_l": {
"type": "number",
"description": "Serum sodium in mmol/L (90-200). <125 → 5; 125-144 → 0; ≥145 → 1."
},
"temperature_c": {
"type": "number",
"description": "Body temperature in °C (20-46). <39 → 0; ≥39 → 3. The 1993 table has no hypothermia points. magent does not measure temperature or convert Fahrenheit."
},
"admission_type": {
"enum": [
"scheduled_surgical",
"medical",
"unscheduled_surgical"
],
"type": "string",
"description": "Le Gall 1993 type of admission as assigned by the caller: scheduled_surgical (0), medical (6), or unscheduled_surgical (8). magent does not classify the admission."
},
"bilirubin_mg_dl": {
"type": "number",
"description": "Serum 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 and bilirubin_umol_l is ignored. <4.0 → 0; 4.0-5.9 → 4; ≥6.0 → 9."
},
"chronic_disease": {
"enum": [
"none",
"metastatic_cancer",
"hematologic_malignancy",
"aids"
],
"type": "string",
"description": "Le Gall 1993 chronic-disease row as assigned by the caller: none (0), metastatic_cancer (9), hematologic_malignancy (10), or aids (17). One token; the paper's table is not additive. magent does not diagnose."
},
"bilirubin_umol_l": {
"type": "number",
"description": "Serum bilirubin in µmol/L (0-684). Alternate to bilirubin_mg_dl (Le Gall 1993 SI column). Ignored when bilirubin_mg_dl is present. <68.4 → 0; 68.4-102.5 → 4; ≥102.6 → 9. magent does not convert units."
},
"potassium_mmol_l": {
"type": "number",
"description": "Serum potassium in mmol/L (1-12). <3.0 → 3; 3.0-4.9 → 0; ≥5.0 → 3."
},
"bicarbonate_meq_l": {
"type": "number",
"description": "Serum bicarbonate in mEq/L (2-60). <15 → 6; 15-19 → 3; ≥20 → 0. Arterial pH is not a SAPS II variable."
},
"systolic_bp_mm_hg": {
"type": "number",
"description": "Systolic blood pressure in mm Hg (20-300), worst in 24h as assigned by the caller. <70 → 13; 70-99 → 5; 100-199 → 0; ≥200 → 2. magent does not measure blood pressure."
},
"urine_output_l_day": {
"type": "number",
"description": "Urine output in L/24h (0-20) as assigned by the caller. <0.500 → 11; 0.500-0.999 → 4; ≥1.000 → 0. magent does not measure urine."
}
}
},
"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 08:32Z
- Last indexed by Roundhouse
- 2026-09-07 06:20Z
- Last enriched (probe, favicon, geo)
- 2026-09-24 06:15Z
- 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_ii, 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.