magent

Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.

Tradingofflineeip155:8453Exactvia cdp
Idf-darRamadanDiabetesFasting-riskCalculator
Calls · 30d
1→ 0%
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 7 snapshots so far.
$13.75
Verified settled volume
2,750 settlements proven x402 by their on-chain EIP-3009 marker.
$0.0050
Listed price
As published in the catalog. Always read the live 402 before paying.
1
Calls · 30d
Upstream's own call count for this endpoint, not ours.
1
Unique payers · 30d
Last called 2026-09-02 05:28Z
Upstream on-chain volume
Reported by the source catalog.
Paid to
0x836Be278f1739fB4308091cD1852F7971Bc19Ee2

The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.

Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Provider

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/idf_dar",
        "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/idf_dar",
    "tags": [
      "idf-dar",
      "ramadan",
      "diabetes",
      "fasting-risk",
      "calculator"
    ],
    "mimeType": "application/json",
    "description": "Hassanein 2021 IDF-DAR fasting risk table: type 1 scores 1; duration ≥10 scores 1; hypoglycemia 0/1/3.5/5.5/6.5; HbA1c band 0/1/2; treatment 0/0.5/1/1.5/2/2.5/3; SMBG 0/1/2; DKA/HONC 0/1/2/3; MVD 0/2/6.5; eGFR band 0/2/4/6.5; pregnancy 0/3.5/6.5; frailty 0/3.5/6.5; labour 0/2/4; prior negative Ramadan 1; fasting ≥16 h 1. Low 0–3, moderate 3.5–6, high >6. Caller-assigned; not a fasting order or insulin dose.",
    "serviceName": "magent"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "age": 50,
            "mvd": "none",
            "smbg": "as_indicated",
            "renal": "egfr_gt_60",
            "pregnancy": "not_pregnant",
            "treatment": "other",
            "home_support": true,
            "hypoglycemia": "none",
            "duration_ge_10": false,
            "physical_labor": "none",
            "type_1_diabetes": false,
            "glycaemic_control": "lt_7_5",
            "acute_complication": "none",
            "fasting_hours_ge_16": false,
            "previous_ramadan_negative": false,
            "impaired_cognition_or_frail": false
          }
        },
        "output": {
          "type": "json",
          "example": {
            "risk": "low",
            "score": 0,
            "formula": "idf_dar",
            "citation": {
              "id": "hassanein-2021",
              "doi": "10.1016/j.diabres.2021.109185",
              "pmid": "35016991",
              "title": "Diabetes and Ramadan: Practical guidelines 2021",
              "source": "Diabetes Res Clin Pract. 2022;185:109185",
              "authors": "Hassanein M, Afandi B, Yakoob Ahmedani M, et al."
            },
            "age_years": 50,
            "max_score": 50.5,
            "components": [
              {
                "value": false,
                "factor": "diabetes_type",
                "points": 0,
                "present": false
              },
              {
                "value": false,
                "factor": "duration",
                "points": 0,
                "present": false
              },
              {
                "value": "none",
                "factor": "hypoglycemia",
                "points": 0,
                "present": false
              },
              {
                "value": "lt_7_5",
                "factor": "glycaemic_control",
                "points": 0,
                "present": false
              },
              {
                "value": "other",
                "factor": "treatment",
                "points": 0,
                "present": false
              },
              {
                "value": "as_indicated",
                "factor": "smbg",
                "points": 0,
                "present": false
              },
              {
                "value": "none",
                "factor": "acute_complication",
                "points": 0,
                "present": false
              },
              {
                "value": "none",
                "factor": "mvd",
                "points": 0,
                "present": false
              },
              {
                "value": "egfr_gt_60",
                "factor": "renal",
                "points": 0,
                "present": false
              },
              {
                "value": "not_pregnant",
                "factor": "pregnancy",
                "points": 0,
                "present": false
              },
              {
                "value": "none",
                "factor": "frailty",
                "points": 0,
                "present": false
              },
              {
                "value": "none",
                "factor": "physical_labor",
                "points": 0,
                "present": false
              },
              {
                "value": false,
                "factor": "previous_ramadan",
                "points": 0,
                "present": false
              },
              {
                "value": false,
                "factor": "fasting_hours",
                "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": "IDF-DAR 2021 = type1 1 / type2 0 + duration>=10 1 + hypoglycemia (unawareness 6.5, recent_severe 5.5, multiple_weekly 3.5, lt_weekly 1, none 0) + hba1c_band (>9% 2, 7.5-9% 1, <7.5% 0) + treatment (multiple_daily_mixed 3, basal_bolus_pump 2.5, once_daily_mixed 2, basal_insulin 1.5, glibenclamide 1, gliclazide_class 0.5, other 0) + smbg (not_conducted 2, suboptimal 1, as_indicated 0) + dka_honc (3mo 3, 6mo 2, 12mo 1, none 0) + mvd (unstable 6.5, stable 2, none 0) + egfr (<30 6.5, 30-45 4, 45-60 2, >60 0) + pregnancy (not_within_targets 6.5, within_targets 3.5, not_pregnant 0) + frailty (impaired_or_frail 6.5, age>70_no_home_support 3.5, none 0) + labor (high 4, moderate 2, none 0) + prior_ramadan_negative 1 + fasting>=16h 1; low 0-3, moderate 3.5-6, high >6; Hassanein 2021 table"
          }
        },
        "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",
                  "type_1_diabetes",
                  "duration_ge_10",
                  "hypoglycemia",
                  "glycaemic_control",
                  "treatment",
                  "smbg",
                  "acute_complication",
                  "mvd",
                  "renal",
                  "pregnancy",
                  "impaired_cognition_or_frail",
                  "home_support",
                  "physical_labor",
                  "previous_ramadan_negative",
                  "fasting_hours_ge_16"
                ],
                "properties": {
                  "age": {
                    "type": "integer",
                    "description": "Age in years (integer 18-120). Hassanein 2021 frailty band: age >70 with no home support scores 3.5 unless impaired_cognition_or_frail is true (6.5). Age 70 does not enter that band. magent does not read a chart."
                  },
                  "mvd": {
                    "enum": [
                      "none",
                      "stable",
                      "unstable"
                    ],
                    "type": "string",
                    "description": "Caller-assigned macrovascular disease (Hassanein 2021). none 0; stable 2; unstable 6.5."
                  },
                  "smbg": {
                    "enum": [
                      "as_indicated",
                      "suboptimal",
                      "not_conducted"
                    ],
                    "type": "string",
                    "description": "Caller-assigned self-monitoring of blood glucose (Hassanein 2021). as_indicated 0; suboptimal 1; not_conducted 2. magent does not assay glucose."
                  },
                  "renal": {
                    "enum": [
                      "egfr_gt_60",
                      "egfr_45_to_60",
                      "egfr_30_to_45",
                      "egfr_lt_30"
                    ],
                    "type": "string",
                    "description": "Caller-assigned eGFR band in mL/min (Hassanein 2021). egfr_gt_60 (>60) 0; egfr_45_to_60 (45–60) 2; egfr_30_to_45 (30–45) 4; egfr_lt_30 (<30) 6.5. magent does not compute eGFR."
                  },
                  "pregnancy": {
                    "enum": [
                      "not_pregnant",
                      "within_targets",
                      "not_within_targets"
                    ],
                    "type": "string",
                    "description": "Caller-assigned pregnancy band (Hassanein 2021). not_pregnant 0; within_targets 3.5; not_within_targets 6.5. magent does not advise fasting."
                  },
                  "treatment": {
                    "enum": [
                      "other",
                      "gliclazide_class",
                      "glibenclamide",
                      "basal_insulin",
                      "once_daily_mixed",
                      "basal_bolus_pump",
                      "multiple_daily_mixed"
                    ],
                    "type": "string",
                    "description": "Caller-assigned treatment (Hassanein 2021). other (diet or metformin-class, no SU or insulin) 0; gliclazide_class (gliclazide/MR, glimepiride, or repaglinide) 0.5; glibenclamide 1; basal_insulin 1.5; once_daily_mixed 2; basal_bolus_pump 2.5; multiple_daily_mixed 3. Not an insulin dose."
                  },
                  "home_support": {
                    "type": "boolean",
                    "description": "Caller-assigned home support (Hassanein 2021). When age >70 and this is false and impaired_cognition_or_frail is false, frailty scores 3.5. true or false."
                  },
                  "hypoglycemia": {
                    "enum": [
                      "none",
                      "lt_weekly",
                      "multiple_weekly",
                      "recent_severe",
                      "unawareness"
                    ],
                    "type": "string",
                    "description": "Caller-assigned hypoglycemia history (Hassanein 2021; highest applicable). none 0; lt_weekly (less than once per week) 1; multiple_weekly 3.5; recent_severe 5.5; unawareness 6.5. magent does not assay glucose."
                  },
                  "duration_ge_10": {
                    "type": "boolean",
                    "description": "Caller-assigned diabetes duration ≥10 years (Hassanein 2021). true scores 1; false (<10 years) scores 0."
                  },
                  "physical_labor": {
                    "enum": [
                      "none",
                      "moderate",
                      "high"
                    ],
                    "type": "string",
                    "description": "Caller-assigned physical labour (Hassanein 2021). none 0; moderate 2; high 4."
                  },
                  "type_1_diabetes": {
                    "type": "boolean",
                    "description": "Caller-assigned diabetes type (Hassanein 2021). true is type 1 and scores 1; false is type 2 and scores 0. magent does not diagnose diabetes."
                  },
                  "glycaemic_control": {
                    "enum": [
                      "lt_7_5",
                      "7_5_to_9",
                      "gt_9"
                    ],
                    "type": "string",
                    "description": "Caller-assigned HbA1c band (Hassanein 2021). lt_7_5 (<7.5%) scores 0; 7_5_to_9 (7.5–9%) scores 1; gt_9 (>9%) scores 2. magent does not assay glucose or HbA1c."
                  },
                  "acute_complication": {
                    "enum": [
                      "none",
                      "last_12_months",
                      "last_6_months",
                      "last_3_months"
                    ],
                    "type": "string",
                    "description": "Caller-assigned DKA or HONC recency (Hassanein 2021). none 0; last_12_months 1; last_6_months 2; last_3_months 3."
                  },
                  "fasting_hours_ge_16": {
                    "type": "boolean",
                    "description": "Caller-assigned fasting hours ≥16 (location; Hassanein 2021). true scores 1; false (<16 hours) scores 0. magent does not advise fasting."
                  },
                  "previous_ramadan_negative": {
                    "type": "boolean",
                    "description": "Caller-assigned overall negative previous Ramadan experience (Hassanein 2021). true scores 1; false scores 0."
                  },
                  "impaired_cognition_or_frail": {
                    "type": "boolean",
                    "description": "Caller-assigned impaired cognitive function or frailty (Hassanein 2021). true scores 6.5 and supersedes the age>70 / no-home-support band."
                  }
                }
              }
            },
            "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.

0.005USDC≈ $0.005 USD
on Base · exact scheme

Pay 0.005 USDC on Base to 0x836B…19Ee2. The signed payment is good for 10 minutes.

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/idf_dar",
      "assetTransferMethod": "eip3009"
    },
    "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
    "amount": "5000",
    "scheme": "exact",
    "network": "eip155:8453",
    "maxTimeoutSeconds": 600
  }
]

Extensions

{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "items": [
            {
              "age": 50,
              "mvd": "none",
              "smbg": "as_indicated",
              "renal": "egfr_gt_60",
              "pregnancy": "not_pregnant",
              "treatment": "other",
              "home_support": true,
              "hypoglycemia": "none",
              "duration_ge_10": false,
              "physical_labor": "none",
              "type_1_diabetes": false,
              "glycaemic_control": "lt_7_5",
              "acute_complication": "none",
              "fasting_hours_ge_16": false,
              "previous_ramadan_negative": false,
              "impaired_cognition_or_frail": false
            },
            {
              "age": 50,
              "mvd": "none",
              "smbg": "as_indicated",
              "renal": "egfr_gt_60",
              "pregnancy": "not_pregnant",
              "treatment": "other",
              "home_support": true,
              "hypoglycemia": "none",
              "duration_ge_10": false,
              "physical_labor": "none",
              "type_1_diabetes": false,
              "glycaemic_control": "lt_7_5",
              "acute_complication": "none",
              "fasting_hours_ge_16": false,
              "previous_ramadan_negative": false,
              "impaired_cognition_or_frail": false
            }
          ]
        },
        "type": "http",
        "method": "POST"
      },
      "output": {
        "type": "json",
        "example": {
          "path": "/api/calc/idf_dar",
          "count": 2,
          "items": [
            {
              "risk": "low",
              "score": 0,
              "formula": "idf_dar",
              "citation": {
                "id": "hassanein-2021",
                "doi": "10.1016/j.diabres.2021.109185",
                "pmid": "35016991",
                "title": "Diabetes and Ramadan: Practical guidelines 2021",
                "source": "Diabetes Res Clin Pract. 2022;185:109185",
                "authors": "Hassanein M, Afandi B, Yakoob Ahmedani M, et al."
              },
              "age_years": 50,
              "max_score": 50.5,
              "components": [
                {
                  "value": false,
                  "factor": "diabetes_type",
                  "points": 0,
                  "present": false
                },
                {
                  "value": false,
                  "factor": "duration",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "hypoglycemia",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "lt_7_5",
                  "factor": "glycaemic_control",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "other",
                  "factor": "treatment",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "as_indicated",
                  "factor": "smbg",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "acute_complication",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "mvd",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "egfr_gt_60",
                  "factor": "renal",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "not_pregnant",
                  "factor": "pregnancy",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "frailty",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "physical_labor",
                  "points": 0,
                  "present": false
                },
                {
                  "value": false,
                  "factor": "previous_ramadan",
                  "points": 0,
                  "present": false
                },
                {
                  "value": false,
                  "factor": "fasting_hours",
                  "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": "IDF-DAR 2021 = type1 1 / type2 0 + duration>=10 1 + hypoglycemia (unawareness 6.5, recent_severe 5.5, multiple_weekly 3.5, lt_weekly 1, none 0) + hba1c_band (>9% 2, 7.5-9% 1, <7.5% 0) + treatment (multiple_daily_mixed 3, basal_bolus_pump 2.5, once_daily_mixed 2, basal_insulin 1.5, glibenclamide 1, gliclazide_class 0.5, other 0) + smbg (not_conducted 2, suboptimal 1, as_indicated 0) + dka_honc (3mo 3, 6mo 2, 12mo 1, none 0) + mvd (unstable 6.5, stable 2, none 0) + egfr (<30 6.5, 30-45 4, 45-60 2, >60 0) + pregnancy (not_within_targets 6.5, within_targets 3.5, not_pregnant 0) + frailty (impaired_or_frail 6.5, age>70_no_home_support 3.5, none 0) + labor (high 4, moderate 2, none 0) + prior_ramadan_negative 1 + fasting>=16h 1; low 0-3, moderate 3.5-6, high >6; Hassanein 2021 table"
            },
            {
              "risk": "low",
              "score": 0,
              "formula": "idf_dar",
              "citation": {
                "id": "hassanein-2021",
                "doi": "10.1016/j.diabres.2021.109185",
                "pmid": "35016991",
                "title": "Diabetes and Ramadan: Practical guidelines 2021",
                "source": "Diabetes Res Clin Pract. 2022;185:109185",
                "authors": "Hassanein M, Afandi B, Yakoob Ahmedani M, et al."
              },
              "age_years": 50,
              "max_score": 50.5,
              "components": [
                {
                  "value": false,
                  "factor": "diabetes_type",
                  "points": 0,
                  "present": false
                },
                {
                  "value": false,
                  "factor": "duration",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "hypoglycemia",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "lt_7_5",
                  "factor": "glycaemic_control",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "other",
                  "factor": "treatment",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "as_indicated",
                  "factor": "smbg",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "acute_complication",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "mvd",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "egfr_gt_60",
                  "factor": "renal",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "not_pregnant",
                  "factor": "pregnancy",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "frailty",
                  "points": 0,
                  "present": false
                },
                {
                  "value": "none",
                  "factor": "physical_labor",
                  "points": 0,
                  "present": false
                },
                {
                  "value": false,
                  "factor": "previous_ramadan",
                  "points": 0,
                  "present": false
                },
                {
                  "value": false,
                  "factor": "fasting_hours",
                  "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": "IDF-DAR 2021 = type1 1 / type2 0 + duration>=10 1 + hypoglycemia (unawareness 6.5, recent_severe 5.5, multiple_weekly 3.5, lt_weekly 1, none 0) + hba1c_band (>9% 2, 7.5-9% 1, <7.5% 0) + treatment (multiple_daily_mixed 3, basal_bolus_pump 2.5, once_daily_mixed 2, basal_insulin 1.5, glibenclamide 1, gliclazide_class 0.5, other 0) + smbg (not_conducted 2, suboptimal 1, as_indicated 0) + dka_honc (3mo 3, 6mo 2, 12mo 1, none 0) + mvd (unstable 6.5, stable 2, none 0) + egfr (<30 6.5, 30-45 4, 45-60 2, >60 0) + pregnancy (not_within_targets 6.5, within_targets 3.5, not_pregnant 0) + frailty (impaired_or_frail 6.5, age>70_no_home_support 3.5, none 0) + labor (high 4, moderate 2, none 0) + prior_ramadan_negative 1 + fasting>=16h 1; low 0-3, moderate 3.5-6, high >6; Hassanein 2021 table"
            }
          ]
        }
      },
      "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",
                      "type_1_diabetes",
                      "duration_ge_10",
                      "hypoglycemia",
                      "glycaemic_control",
                      "treatment",
                      "smbg",
                      "acute_complication",
                      "mvd",
                      "renal",
                      "pregnancy",
                      "impaired_cognition_or_frail",
                      "home_support",
                      "physical_labor",
                      "previous_ramadan_negative",
                      "fasting_hours_ge_16"
                    ],
                    "properties": {
                      "age": {
                        "type": "integer",
                        "description": "Age in years (integer 18-120). Hassanein 2021 frailty band: age >70 with no home support scores 3.5 unless impaired_cognition_or_frail is true (6.5). Age 70 does not enter that band. magent does not read a chart."
                      },
                      "mvd": {
                        "enum": [
                          "none",
                          "stable",
                          "unstable"
                        ],
                        "type": "string",
                        "description": "Caller-assigned macrovascular disease (Hassanein 2021). none 0; stable 2; unstable 6.5."
                      },
                      "smbg": {
                        "enum": [
                          "as_indicated",
                          "suboptimal",
                          "not_conducted"
                        ],
                        "type": "string",
                        "description": "Caller-assigned self-monitoring of blood glucose (Hassanein 2021). as_indicated 0; suboptimal 1; not_conducted 2. magent does not assay glucose."
                      },
                      "renal": {
                        "enum": [
                          "egfr_gt_60",
                          "egfr_45_to_60",
                          "egfr_30_to_45",
                          "egfr_lt_30"
                        ],
                        "type": "string",
                        "description": "Caller-assigned eGFR band in mL/min (Hassanein 2021). egfr_gt_60 (>60) 0; egfr_45_to_60 (45–60) 2; egfr_30_to_45 (30–45) 4; egfr_lt_30 (<30) 6.5. magent does not compute eGFR."
                      },
                      "pregnancy": {
                        "enum": [
                          "not_pregnant",
                          "within_targets",
                          "not_within_targets"
                        ],
                        "type": "string",
                        "description": "Caller-assigned pregnancy band (Hassanein 2021). not_pregnant 0; within_targets 3.5; not_within_targets 6.5. magent does not advise fasting."
                      },
                      "treatment": {
                        "enum": [
                          "other",
                          "gliclazide_class",
                          "glibenclamide",
                          "basal_insulin",
                          "once_daily_mixed",
                          "basal_bolus_pump",
                          "multiple_daily_mixed"
                        ],
                        "type": "string",
                        "description": "Caller-assigned treatment (Hassanein 2021). other (diet or metformin-class, no SU or insulin) 0; gliclazide_class (gliclazide/MR, glimepiride, or repaglinide) 0.5; glibenclamide 1; basal_insulin 1.5; once_daily_mixed 2; basal_bolus_pump 2.5; multiple_daily_mixed 3. Not an insulin dose."
                      },
                      "home_support": {
                        "type": "boolean",
                        "description": "Caller-assigned home support (Hassanein 2021). When age >70 and this is false and impaired_cognition_or_frail is false, frailty scores 3.5. true or false."
                      },
                      "hypoglycemia": {
                        "enum": [
                          "none",
                          "lt_weekly",
                          "multiple_weekly",
                          "recent_severe",
                          "unawareness"
                        ],
                        "type": "string",
                        "description": "Caller-assigned hypoglycemia history (Hassanein 2021; highest applicable). none 0; lt_weekly (less than once per week) 1; multiple_weekly 3.5; recent_severe 5.5; unawareness 6.5. magent does not assay glucose."
                      },
                      "duration_ge_10": {
                        "type": "boolean",
                        "description": "Caller-assigned diabetes duration ≥10 years (Hassanein 2021). true scores 1; false (<10 years) scores 0."
                      },
                      "physical_labor": {
                        "enum": [
                          "none",
                          "moderate",
                          "high"
                        ],
                        "type": "string",
                        "description": "Caller-assigned physical labour (Hassanein 2021). none 0; moderate 2; high 4."
                      },
                      "type_1_diabetes": {
                        "type": "boolean",
                        "description": "Caller-assigned diabetes type (Hassanein 2021). true is type 1 and scores 1; false is type 2 and scores 0. magent does not diagnose diabetes."
                      },
                      "glycaemic_control": {
                        "enum": [
                          "lt_7_5",
                          "7_5_to_9",
                          "gt_9"
                        ],
                        "type": "string",
                        "description": "Caller-assigned HbA1c band (Hassanein 2021). lt_7_5 (<7.5%) scores 0; 7_5_to_9 (7.5–9%) scores 1; gt_9 (>9%) scores 2. magent does not assay glucose or HbA1c."
                      },
                      "acute_complication": {
                        "enum": [
                          "none",
                          "last_12_months",
                          "last_6_months",
                          "last_3_months"
                        ],
                        "type": "string",
                        "description": "Caller-assigned DKA or HONC recency (Hassanein 2021). none 0; last_12_months 1; last_6_months 2; last_3_months 3."
                      },
                      "fasting_hours_ge_16": {
                        "type": "boolean",
                        "description": "Caller-assigned fasting hours ≥16 (location; Hassanein 2021). true scores 1; false (<16 hours) scores 0. magent does not advise fasting."
                      },
                      "previous_ramadan_negative": {
                        "type": "boolean",
                        "description": "Caller-assigned overall negative previous Ramadan experience (Hassanein 2021). true scores 1; false scores 0."
                      },
                      "impaired_cognition_or_frail": {
                        "type": "boolean",
                        "description": "Caller-assigned impaired cognitive function or frailty (Hassanein 2021). true scores 6.5 and supersedes the age>70 / no-home-support band."
                      }
                    }
                  },
                  "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-02 05:28Z
Last indexed by Roundhouse
2026-09-07 06:20Z
Last enriched (probe, favicon, geo)
2026-09-10 21:15Z
x402 version
2
Max timeout
600s
Liveness probe
HTTP 0
Report

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. 7 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.

Open skill.md
Show 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/idf_dar, 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.