magent

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

Inferenceofflineeip155:8453Exactvia cdp
MehranCinKidneyPciCalculator
Calls · 30d
3→ 0%
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 14 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.
3
Calls · 30d
Upstream's own call count for this endpoint, not ours.
1
Unique payers · 30d
Last called 2026-08-31 13:00Z
—
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/mehran",
        "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/mehran",
    "tags": [
      "mehran",
      "cin",
      "kidney",
      "pci",
      "calculator"
    ],
    "mimeType": "application/json",
    "description": "Mehran 2004 contrast-induced nephropathy risk score after PCI (eGFR model B). Points from hypotension, IABP, CHF, age >75, anemia, diabetes, contrast volume (1 per 100 mL), and caller eGFR. Returns integer score (max 41), risk group (low ≤5 through very_high ≥16), and development-set CIN percent. Not a CKD diagnosis; magent does not measure contrast or compute eGFR.",
    "serviceName": "magent"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "age": 60,
            "chf": false,
            "iabp": false,
            "anemia": false,
            "diabetes": false,
            "contrast_ml": 100,
            "egfr_ml_min": 90,
            "hypotension": false
          }
        },
        "output": {
          "type": "json",
          "example": {
            "chf": false,
            "iabp": false,
            "score": 1,
            "anemia": false,
            "formula": "mehran",
            "citation": {
              "id": "mehran-2004",
              "doi": "10.1016/j.jacc.2004.06.068",
              "pmid": "15464318",
              "title": "A simple risk score for prediction of contrast-induced nephropathy after percutaneous coronary intervention: development and initial validation",
              "source": "J Am Coll Cardiol. 2004;44(7):1393-1399",
              "authors": "Mehran R, Aymong ED, Nikolsky E, et al."
            },
            "diabetes": false,
            "age_years": 60,
            "max_score": 41,
            "components": [
              {
                "factor": "hypotension",
                "points": 0,
                "present": false
              },
              {
                "factor": "iabp",
                "points": 0,
                "present": false
              },
              {
                "factor": "chf",
                "points": 0,
                "present": false
              },
              {
                "value": 60,
                "factor": "age_gt_75",
                "points": 0,
                "present": false
              },
              {
                "factor": "anemia",
                "points": 0,
                "present": false
              },
              {
                "factor": "diabetes",
                "points": 0,
                "present": false
              },
              {
                "value": 100,
                "factor": "contrast_ml",
                "points": 1,
                "present": true
              },
              {
                "value": 90,
                "factor": "egfr_ml_min",
                "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.",
            "risk_group": "low",
            "cin_percent": 7.5,
            "contrast_ml": 100,
            "egfr_ml_min": 90,
            "hypotension": false,
            "formula_expression": "Mehran 2004 model B = hypotension(5) + iabp(5) + chf(5) + age>75(4) + anemia(3) + diabetes(3) + floor(contrast_ml/100) + eGFR (>=60: 0, 40 to <60: 2, 20 to <40: 4, <20: 6); max 41 with contrast_ml 10-1000; risk_group low <=5, moderate 6-10, high 11-15, very_high >=16; development CIN 7.5% / 14.0% / 26.1% / 57.3%"
          }
        },
        "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",
                  "hypotension",
                  "iabp",
                  "chf",
                  "anemia",
                  "diabetes",
                  "contrast_ml",
                  "egfr_ml_min"
                ],
                "properties": {
                  "age": {
                    "type": "integer",
                    "description": "Age in years (18-120). Age >75 scores 4 (Mehran 2004 Table 3 model B). Age 75 scores 0."
                  },
                  "chf": {
                    "type": "boolean",
                    "description": "CHF as assigned by the caller: NYHA III/IV and/or pulmonary edema (Mehran 2004). true scores 5. true or false. magent does not examine the patient."
                  },
                  "iabp": {
                    "type": "boolean",
                    "description": "Intra-aortic balloon pump use as assigned by the caller (Mehran 2004 Table 3). true scores 5. Independent of the hypotension flag. true or false."
                  },
                  "anemia": {
                    "type": "boolean",
                    "description": "Anemia as assigned by the caller using WHO hematocrit <39% (men) or <36% (women) (Mehran 2004). true scores 3. Flag only; do not send a hematocrit number. magent does not assay hematocrit."
                  },
                  "diabetes": {
                    "type": "boolean",
                    "description": "Diabetes mellitus as assigned by the caller (Mehran 2004 Table 3). true scores 3. true or false."
                  },
                  "contrast_ml": {
                    "type": "integer",
                    "description": "Contrast volume in mL (integer 10-1000). Scores 1 per 100 mL: floor(contrast_ml/100) (Mehran 2004). 100 scores 1; 199 scores 1; 200 scores 2. magent does not measure contrast."
                  },
                  "egfr_ml_min": {
                    "type": "number",
                    "description": "Caller-assigned eGFR in mL/min/1.73m² (5-150). Mehran 2004 Table 3 model B: ≥60 scores 0; 40 to <60 scores 2; 20 to <40 scores 4; <20 scores 6. magent does not compute eGFR and does not use race-based MDRD. Do not send serum creatinine; creatinine >1.5 is the alternate model A and would double-count."
                  },
                  "hypotension": {
                    "type": "boolean",
                    "description": "Hypotension as assigned by the caller: SBP <80 mm Hg for ≥1 h requiring inotropes or IABP within 24 h (Mehran 2004). true scores 5. true or false. magent does not measure blood pressure."
                  }
                }
              }
            },
            "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/mehran",
      "assetTransferMethod": "eip3009"
    },
    "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
    "amount": "5000",
    "scheme": "exact",
    "network": "eip155:8453",
    "maxTimeoutSeconds": 600
  }
]

Extensions

{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "items": [
            {
              "age": 60,
              "chf": false,
              "iabp": false,
              "anemia": false,
              "diabetes": false,
              "contrast_ml": 100,
              "egfr_ml_min": 90,
              "hypotension": false
            },
            {
              "age": 60,
              "chf": false,
              "iabp": false,
              "anemia": false,
              "diabetes": false,
              "contrast_ml": 100,
              "egfr_ml_min": 90,
              "hypotension": false
            }
          ]
        },
        "type": "http",
        "method": "POST"
      },
      "output": {
        "type": "json",
        "example": {
          "path": "/api/calc/mehran",
          "count": 2,
          "items": [
            {
              "chf": false,
              "iabp": false,
              "score": 1,
              "anemia": false,
              "formula": "mehran",
              "citation": {
                "id": "mehran-2004",
                "doi": "10.1016/j.jacc.2004.06.068",
                "pmid": "15464318",
                "title": "A simple risk score for prediction of contrast-induced nephropathy after percutaneous coronary intervention: development and initial validation",
                "source": "J Am Coll Cardiol. 2004;44(7):1393-1399",
                "authors": "Mehran R, Aymong ED, Nikolsky E, et al."
              },
              "diabetes": false,
              "age_years": 60,
              "max_score": 41,
              "components": [
                {
                  "factor": "hypotension",
                  "points": 0,
                  "present": false
                },
                {
                  "factor": "iabp",
                  "points": 0,
                  "present": false
                },
                {
                  "factor": "chf",
                  "points": 0,
                  "present": false
                },
                {
                  "value": 60,
                  "factor": "age_gt_75",
                  "points": 0,
                  "present": false
                },
                {
                  "factor": "anemia",
                  "points": 0,
                  "present": false
                },
                {
                  "factor": "diabetes",
                  "points": 0,
                  "present": false
                },
                {
                  "value": 100,
                  "factor": "contrast_ml",
                  "points": 1,
                  "present": true
                },
                {
                  "value": 90,
                  "factor": "egfr_ml_min",
                  "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.",
              "risk_group": "low",
              "cin_percent": 7.5,
              "contrast_ml": 100,
              "egfr_ml_min": 90,
              "hypotension": false,
              "formula_expression": "Mehran 2004 model B = hypotension(5) + iabp(5) + chf(5) + age>75(4) + anemia(3) + diabetes(3) + floor(contrast_ml/100) + eGFR (>=60: 0, 40 to <60: 2, 20 to <40: 4, <20: 6); max 41 with contrast_ml 10-1000; risk_group low <=5, moderate 6-10, high 11-15, very_high >=16; development CIN 7.5% / 14.0% / 26.1% / 57.3%"
            },
            {
              "chf": false,
              "iabp": false,
              "score": 1,
              "anemia": false,
              "formula": "mehran",
              "citation": {
                "id": "mehran-2004",
                "doi": "10.1016/j.jacc.2004.06.068",
                "pmid": "15464318",
                "title": "A simple risk score for prediction of contrast-induced nephropathy after percutaneous coronary intervention: development and initial validation",
                "source": "J Am Coll Cardiol. 2004;44(7):1393-1399",
                "authors": "Mehran R, Aymong ED, Nikolsky E, et al."
              },
              "diabetes": false,
              "age_years": 60,
              "max_score": 41,
              "components": [
                {
                  "factor": "hypotension",
                  "points": 0,
                  "present": false
                },
                {
                  "factor": "iabp",
                  "points": 0,
                  "present": false
                },
                {
                  "factor": "chf",
                  "points": 0,
                  "present": false
                },
                {
                  "value": 60,
                  "factor": "age_gt_75",
                  "points": 0,
                  "present": false
                },
                {
                  "factor": "anemia",
                  "points": 0,
                  "present": false
                },
                {
                  "factor": "diabetes",
                  "points": 0,
                  "present": false
                },
                {
                  "value": 100,
                  "factor": "contrast_ml",
                  "points": 1,
                  "present": true
                },
                {
                  "value": 90,
                  "factor": "egfr_ml_min",
                  "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.",
              "risk_group": "low",
              "cin_percent": 7.5,
              "contrast_ml": 100,
              "egfr_ml_min": 90,
              "hypotension": false,
              "formula_expression": "Mehran 2004 model B = hypotension(5) + iabp(5) + chf(5) + age>75(4) + anemia(3) + diabetes(3) + floor(contrast_ml/100) + eGFR (>=60: 0, 40 to <60: 2, 20 to <40: 4, <20: 6); max 41 with contrast_ml 10-1000; risk_group low <=5, moderate 6-10, high 11-15, very_high >=16; development CIN 7.5% / 14.0% / 26.1% / 57.3%"
            }
          ]
        }
      },
      "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",
                      "hypotension",
                      "iabp",
                      "chf",
                      "anemia",
                      "diabetes",
                      "contrast_ml",
                      "egfr_ml_min"
                    ],
                    "properties": {
                      "age": {
                        "type": "integer",
                        "description": "Age in years (18-120). Age >75 scores 4 (Mehran 2004 Table 3 model B). Age 75 scores 0."
                      },
                      "chf": {
                        "type": "boolean",
                        "description": "CHF as assigned by the caller: NYHA III/IV and/or pulmonary edema (Mehran 2004). true scores 5. true or false. magent does not examine the patient."
                      },
                      "iabp": {
                        "type": "boolean",
                        "description": "Intra-aortic balloon pump use as assigned by the caller (Mehran 2004 Table 3). true scores 5. Independent of the hypotension flag. true or false."
                      },
                      "anemia": {
                        "type": "boolean",
                        "description": "Anemia as assigned by the caller using WHO hematocrit <39% (men) or <36% (women) (Mehran 2004). true scores 3. Flag only; do not send a hematocrit number. magent does not assay hematocrit."
                      },
                      "diabetes": {
                        "type": "boolean",
                        "description": "Diabetes mellitus as assigned by the caller (Mehran 2004 Table 3). true scores 3. true or false."
                      },
                      "contrast_ml": {
                        "type": "integer",
                        "description": "Contrast volume in mL (integer 10-1000). Scores 1 per 100 mL: floor(contrast_ml/100) (Mehran 2004). 100 scores 1; 199 scores 1; 200 scores 2. magent does not measure contrast."
                      },
                      "egfr_ml_min": {
                        "type": "number",
                        "description": "Caller-assigned eGFR in mL/min/1.73m² (5-150). Mehran 2004 Table 3 model B: ≥60 scores 0; 40 to <60 scores 2; 20 to <40 scores 4; <20 scores 6. magent does not compute eGFR and does not use race-based MDRD. Do not send serum creatinine; creatinine >1.5 is the alternate model A and would double-count."
                      },
                      "hypotension": {
                        "type": "boolean",
                        "description": "Hypotension as assigned by the caller: SBP <80 mm Hg for ≥1 h requiring inotropes or IABP within 24 h (Mehran 2004). true scores 5. true or false. magent does not measure blood pressure."
                      }
                    }
                  },
                  "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-08-31 13:00Z
Last indexed by Roundhouse
2026-09-07 06:20Z
Last enriched (probe, favicon, geo)
2026-09-11 22:16Z
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. 14 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/mehran, 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.