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/nafcs",
"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/nafcs",
"tags": [
"nafcs",
"fcs",
"lipids",
"chylomicronemia",
"hegele-2025"
],
"mimeType": "application/json",
"description": "Hegele 2025 NAFCS. Table 3 points from age or early HTG onset, BMI, abdominal pain or pancreatitis, secondary factors, fasting TG >880 mg/dL or >10 mmol/L, TG/TC >8 (mg/dL) or >3.5 (mmol/L), and apo B <1.0 g/L, plus published interactions. Max 100. ≥60 definite classical FCS; ≥45 very likely. Not a diagnosis or genetic test. Not Simon Broome or Dutch FH. magent does not examine the patient or assay lipids. Not a medical device.",
"serviceName": "magent"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"tg_mg_dl": 500,
"age_years": 40,
"apo_b_g_l": 1.2,
"tg_mmol_l": 8,
"apo_b_mg_dl": 120,
"abdominal_history": "none",
"tg_tc_ratio_mg_dl": 5,
"tg_tc_ratio_mmol_l": 2,
"bmi_below_threshold": false,
"htg_onset_before_age_10": false,
"secondary_factors_present": true
}
},
"output": {
"type": "json",
"example": {
"score": 0,
"formula": "nafcs",
"citation": {
"id": "hegele-2025",
"doi": "10.1016/j.jacl.2024.09.008",
"pmid": "39537503",
"title": "Development and validation of clinical criteria to identify familial chylomicronemia syndrome (FCS) in North America",
"source": "J Clin Lipidol. 2025;19(1):83-94",
"authors": "Hegele RA, Ahmad Z, Ashraf A, et al."
},
"age_years": 40,
"low_apo_b": false,
"max_score": 100,
"components": [
{
"factor": "early_htg_onset",
"points": 0,
"present": false
},
{
"factor": "child_htg",
"points": 0,
"present": false
},
{
"factor": "all_tg_severely_elevated",
"points": 0,
"present": false
},
{
"factor": "high_tg_tc_ratio",
"points": 0,
"present": false
},
{
"factor": "low_apo_b",
"points": 0,
"present": false
},
{
"factor": "bmi_below_threshold",
"points": 0,
"present": false
},
{
"factor": "abdominal_pain",
"points": 0,
"present": false
},
{
"factor": "pancreatitis",
"points": 0,
"present": false
},
{
"factor": "no_secondary_factors",
"points": 0,
"present": false
},
{
"factor": "high_ratio_and_low_apo_b",
"points": 0,
"present": false
},
{
"factor": "child_and_no_secondary",
"points": 0,
"present": false
},
{
"factor": "high_ratio_and_no_secondary",
"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.",
"high_tg_tc_ratio": false,
"formula_expression": "NAFCS = early_htg_onset 12 (age_years ≥10 and htg_onset_before_age_10) + child_htg 12 (age_years 1-9) + all_tg_severely_elevated 13 (all fasting TG >880 mg/dL or >10 mmol/L) + high_tg_tc_ratio 8 (TG/TC >8 mg/dL or >3.5 mmol/L) + low_apo_b 12 (apo B <1.0 g/L or <100 mg/dL) + bmi_below_threshold 9 (BMI <25 kg/m2 or <85th percentile) + abdominal_pain 9 (recurrent abdominal pain without pancreatitis) + pancreatitis 16 + no_secondary_factors 11 + high_ratio_and_low_apo_b 7 + child_and_no_secondary 7 + high_ratio_and_no_secondary 5 (Hegele 2025 Table 3, parameter estimates ×10); max 100; ≥60 definite classical FCS; ≥45 very likely classical FCS",
"definite_classical_fcs": false,
"all_tg_severely_elevated": false,
"very_likely_classical_fcs": false
}
},
"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_years",
"htg_onset_before_age_10",
"bmi_below_threshold",
"abdominal_history",
"secondary_factors_present"
],
"properties": {
"tg_mg_dl": {
"type": "number",
"description": "Caller-assigned fasting triglycerides in mg/dL (440-20000) representing all readings used in the score (Hegele 2025 Table 1: last 3 labs in adults, last 2 in children). All readings >880 score 13. Provide exactly one of tg_mg_dl or tg_mmol_l. magent does not assay lipids."
},
"age_years": {
"type": "integer",
"description": "Current age in whole years (1-120). Hegele 2025 Table 3: ages 1-9 score child_htg 12; ages ≥10 score early_htg_onset 12 only when htg_onset_before_age_10 is true. The score does not provide a value for infants <1 year. magent does not examine the patient."
},
"apo_b_g_l": {
"type": "number",
"description": "Apolipoprotein B in g/L (0.1-3.0). <1.0 scores 12 (Hegele 2025 Table 3). Provide exactly one of apo_b_g_l or apo_b_mg_dl. 1.0 g/L = 100 mg/dL in the paper. magent does not assay apo B."
},
"tg_mmol_l": {
"type": "number",
"description": "Caller-assigned fasting triglycerides in mmol/L (5-226). All readings >10 score 13. Provide exactly one of tg_mg_dl or tg_mmol_l. magent does not assay lipids."
},
"apo_b_mg_dl": {
"type": "number",
"description": "Apolipoprotein B in mg/dL (10-300). <100 scores 12. Provide exactly one of apo_b_g_l or apo_b_mg_dl. magent does not assay apo B."
},
"abdominal_history": {
"enum": [
"none",
"abdominal_pain",
"pancreatitis"
],
"type": "string",
"description": "Caller-assigned chylomicronemia-related abdominal history (Hegele 2025 Table 3): none (0), abdominal_pain = recurrent abdominal pain without pancreatitis (9), pancreatitis = history of pancreatitis with or without abdominal pain (16). magent does not diagnose pancreatitis."
},
"tg_tc_ratio_mg_dl": {
"type": "number",
"description": "Triglyceride/total-cholesterol ratio when both are in mg/dL (0.1-80). >8 scores 8 (Hegele 2025 Table 1). Provide exactly one of tg_tc_ratio_mg_dl or tg_tc_ratio_mmol_l. magent does not assay lipids."
},
"tg_tc_ratio_mmol_l": {
"type": "number",
"description": "Triglyceride/total-cholesterol ratio when both are in mmol/L (0.1-35). >3.5 scores 8. Provide exactly one of tg_tc_ratio_mg_dl or tg_tc_ratio_mmol_l. magent does not assay lipids."
},
"bmi_below_threshold": {
"type": "boolean",
"description": "BMI <25.0 kg/m2 in adults or <85th percentile in children/adolescents as assigned by the caller (Hegele 2025 Table 3, 9 points). true or false. magent does not compute BMI or pediatric percentiles."
},
"htg_onset_before_age_10": {
"type": "boolean",
"description": "Hypertriglyceridemia onset in infancy or childhood (before age 10) as assigned by the caller (Hegele 2025 Table 1). true or false. Scores 12 only when age_years ≥10. For ages 1-9, child_htg is scored from age and this flag does not add points. magent does not date onset."
},
"secondary_factors_present": {
"type": "boolean",
"description": "One or more secondary factors that may contribute to hypertriglyceridemia as assigned by the caller (Hegele 2025 Table 1: lifestyle, medications, clinical conditions). true (≥1, 0 points) or false (none, 11 points, plus published interactions). magent does not take a history."
}
}
}
},
"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/nafcs",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"items": [
{
"tg_mg_dl": 500,
"age_years": 40,
"apo_b_g_l": 1.2,
"tg_mmol_l": 8,
"apo_b_mg_dl": 120,
"abdominal_history": "none",
"tg_tc_ratio_mg_dl": 5,
"tg_tc_ratio_mmol_l": 2,
"bmi_below_threshold": false,
"htg_onset_before_age_10": false,
"secondary_factors_present": true
},
{
"tg_mg_dl": 500,
"age_years": 40,
"apo_b_g_l": 1.2,
"tg_mmol_l": 8,
"apo_b_mg_dl": 120,
"abdominal_history": "none",
"tg_tc_ratio_mg_dl": 5,
"tg_tc_ratio_mmol_l": 2,
"bmi_below_threshold": false,
"htg_onset_before_age_10": false,
"secondary_factors_present": true
}
]
},
"type": "http",
"method": "POST"
},
"output": {
"type": "json",
"example": {
"path": "/api/calc/nafcs",
"count": 2,
"items": [
{
"score": 0,
"formula": "nafcs",
"citation": {
"id": "hegele-2025",
"doi": "10.1016/j.jacl.2024.09.008",
"pmid": "39537503",
"title": "Development and validation of clinical criteria to identify familial chylomicronemia syndrome (FCS) in North America",
"source": "J Clin Lipidol. 2025;19(1):83-94",
"authors": "Hegele RA, Ahmad Z, Ashraf A, et al."
},
"age_years": 40,
"low_apo_b": false,
"max_score": 100,
"components": [
{
"factor": "early_htg_onset",
"points": 0,
"present": false
},
{
"factor": "child_htg",
"points": 0,
"present": false
},
{
"factor": "all_tg_severely_elevated",
"points": 0,
"present": false
},
{
"factor": "high_tg_tc_ratio",
"points": 0,
"present": false
},
{
"factor": "low_apo_b",
"points": 0,
"present": false
},
{
"factor": "bmi_below_threshold",
"points": 0,
"present": false
},
{
"factor": "abdominal_pain",
"points": 0,
"present": false
},
{
"factor": "pancreatitis",
"points": 0,
"present": false
},
{
"factor": "no_secondary_factors",
"points": 0,
"present": false
},
{
"factor": "high_ratio_and_low_apo_b",
"points": 0,
"present": false
},
{
"factor": "child_and_no_secondary",
"points": 0,
"present": false
},
{
"factor": "high_ratio_and_no_secondary",
"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.",
"high_tg_tc_ratio": false,
"formula_expression": "NAFCS = early_htg_onset 12 (age_years ≥10 and htg_onset_before_age_10) + child_htg 12 (age_years 1-9) + all_tg_severely_elevated 13 (all fasting TG >880 mg/dL or >10 mmol/L) + high_tg_tc_ratio 8 (TG/TC >8 mg/dL or >3.5 mmol/L) + low_apo_b 12 (apo B <1.0 g/L or <100 mg/dL) + bmi_below_threshold 9 (BMI <25 kg/m2 or <85th percentile) + abdominal_pain 9 (recurrent abdominal pain without pancreatitis) + pancreatitis 16 + no_secondary_factors 11 + high_ratio_and_low_apo_b 7 + child_and_no_secondary 7 + high_ratio_and_no_secondary 5 (Hegele 2025 Table 3, parameter estimates ×10); max 100; ≥60 definite classical FCS; ≥45 very likely classical FCS",
"definite_classical_fcs": false,
"all_tg_severely_elevated": false,
"very_likely_classical_fcs": false
},
{
"score": 0,
"formula": "nafcs",
"citation": {
"id": "hegele-2025",
"doi": "10.1016/j.jacl.2024.09.008",
"pmid": "39537503",
"title": "Development and validation of clinical criteria to identify familial chylomicronemia syndrome (FCS) in North America",
"source": "J Clin Lipidol. 2025;19(1):83-94",
"authors": "Hegele RA, Ahmad Z, Ashraf A, et al."
},
"age_years": 40,
"low_apo_b": false,
"max_score": 100,
"components": [
{
"factor": "early_htg_onset",
"points": 0,
"present": false
},
{
"factor": "child_htg",
"points": 0,
"present": false
},
{
"factor": "all_tg_severely_elevated",
"points": 0,
"present": false
},
{
"factor": "high_tg_tc_ratio",
"points": 0,
"present": false
},
{
"factor": "low_apo_b",
"points": 0,
"present": false
},
{
"factor": "bmi_below_threshold",
"points": 0,
"present": false
},
{
"factor": "abdominal_pain",
"points": 0,
"present": false
},
{
"factor": "pancreatitis",
"points": 0,
"present": false
},
{
"factor": "no_secondary_factors",
"points": 0,
"present": false
},
{
"factor": "high_ratio_and_low_apo_b",
"points": 0,
"present": false
},
{
"factor": "child_and_no_secondary",
"points": 0,
"present": false
},
{
"factor": "high_ratio_and_no_secondary",
"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.",
"high_tg_tc_ratio": false,
"formula_expression": "NAFCS = early_htg_onset 12 (age_years ≥10 and htg_onset_before_age_10) + child_htg 12 (age_years 1-9) + all_tg_severely_elevated 13 (all fasting TG >880 mg/dL or >10 mmol/L) + high_tg_tc_ratio 8 (TG/TC >8 mg/dL or >3.5 mmol/L) + low_apo_b 12 (apo B <1.0 g/L or <100 mg/dL) + bmi_below_threshold 9 (BMI <25 kg/m2 or <85th percentile) + abdominal_pain 9 (recurrent abdominal pain without pancreatitis) + pancreatitis 16 + no_secondary_factors 11 + high_ratio_and_low_apo_b 7 + child_and_no_secondary 7 + high_ratio_and_no_secondary 5 (Hegele 2025 Table 3, parameter estimates ×10); max 100; ≥60 definite classical FCS; ≥45 very likely classical FCS",
"definite_classical_fcs": false,
"all_tg_severely_elevated": false,
"very_likely_classical_fcs": false
}
]
}
},
"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_years",
"htg_onset_before_age_10",
"bmi_below_threshold",
"abdominal_history",
"secondary_factors_present"
],
"properties": {
"tg_mg_dl": {
"type": "number",
"description": "Caller-assigned fasting triglycerides in mg/dL (440-20000) representing all readings used in the score (Hegele 2025 Table 1: last 3 labs in adults, last 2 in children). All readings >880 score 13. Provide exactly one of tg_mg_dl or tg_mmol_l. magent does not assay lipids."
},
"age_years": {
"type": "integer",
"description": "Current age in whole years (1-120). Hegele 2025 Table 3: ages 1-9 score child_htg 12; ages ≥10 score early_htg_onset 12 only when htg_onset_before_age_10 is true. The score does not provide a value for infants <1 year. magent does not examine the patient."
},
"apo_b_g_l": {
"type": "number",
"description": "Apolipoprotein B in g/L (0.1-3.0). <1.0 scores 12 (Hegele 2025 Table 3). Provide exactly one of apo_b_g_l or apo_b_mg_dl. 1.0 g/L = 100 mg/dL in the paper. magent does not assay apo B."
},
"tg_mmol_l": {
"type": "number",
"description": "Caller-assigned fasting triglycerides in mmol/L (5-226). All readings >10 score 13. Provide exactly one of tg_mg_dl or tg_mmol_l. magent does not assay lipids."
},
"apo_b_mg_dl": {
"type": "number",
"description": "Apolipoprotein B in mg/dL (10-300). <100 scores 12. Provide exactly one of apo_b_g_l or apo_b_mg_dl. magent does not assay apo B."
},
"abdominal_history": {
"enum": [
"none",
"abdominal_pain",
"pancreatitis"
],
"type": "string",
"description": "Caller-assigned chylomicronemia-related abdominal history (Hegele 2025 Table 3): none (0), abdominal_pain = recurrent abdominal pain without pancreatitis (9), pancreatitis = history of pancreatitis with or without abdominal pain (16). magent does not diagnose pancreatitis."
},
"tg_tc_ratio_mg_dl": {
"type": "number",
"description": "Triglyceride/total-cholesterol ratio when both are in mg/dL (0.1-80). >8 scores 8 (Hegele 2025 Table 1). Provide exactly one of tg_tc_ratio_mg_dl or tg_tc_ratio_mmol_l. magent does not assay lipids."
},
"tg_tc_ratio_mmol_l": {
"type": "number",
"description": "Triglyceride/total-cholesterol ratio when both are in mmol/L (0.1-35). >3.5 scores 8. Provide exactly one of tg_tc_ratio_mg_dl or tg_tc_ratio_mmol_l. magent does not assay lipids."
},
"bmi_below_threshold": {
"type": "boolean",
"description": "BMI <25.0 kg/m2 in adults or <85th percentile in children/adolescents as assigned by the caller (Hegele 2025 Table 3, 9 points). true or false. magent does not compute BMI or pediatric percentiles."
},
"htg_onset_before_age_10": {
"type": "boolean",
"description": "Hypertriglyceridemia onset in infancy or childhood (before age 10) as assigned by the caller (Hegele 2025 Table 1). true or false. Scores 12 only when age_years ≥10. For ages 1-9, child_htg is scored from age and this flag does not add points. magent does not date onset."
},
"secondary_factors_present": {
"type": "boolean",
"description": "One or more secondary factors that may contribute to hypertriglyceridemia as assigned by the caller (Hegele 2025 Table 1: lifestyle, medications, clinical conditions). true (≥1, 0 points) or false (none, 11 points, plus published interactions). magent does not take a history."
}
}
},
"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: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/nafcs, 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.