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/cedocs",
"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/cedocs",
"tags": [
"cedocs",
"overcrowding",
"emergency",
"calculator"
],
"mimeType": "application/json",
"description": "Weiss 2014 Community ED Overcrowding Scale (CEDOCS) reduced model: critical-care patients, longest admitted-patient hours since admission, waiting-room count, ED patients indexed to ED beds, and annual ED visits with a restricted cubic spline. Returns the 1-decimal score on the paper's 0-100 scale without clamping or named class bands. Caller supplies counts and hours; magent does not count patients or wait times. Not a medical device and not a diversion or ambulance-bypass order.",
"serviceName": "magent"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"ed_beds": 20,
"ed_patients": 0,
"admit_time_hours": 0,
"ed_visits_per_year": 46000,
"waiting_room_patients": 0,
"critical_care_patients": 0
}
},
"output": {
"type": "json",
"example": {
"ed_beds": 20,
"formula": "cedocs",
"citation": {
"id": "weiss-2014",
"doi": "10.1016/j.ajem.2014.08.035",
"pmid": "25234796",
"title": "Evaluating community ED crowding: the Community ED Overcrowding Scale study",
"source": "Am J Emerg Med. 2014;32(11):1357-1363",
"authors": "Weiss SJ, Rogers DB, Maas F, Ernst AA, Nick TG"
},
"occupancy": 0,
"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.",
"ed_patients": 0,
"cedocs_score": 5.5,
"admit_time_hours": 0,
"ed_visits_per_year": 46000,
"formula_expression": "cedocs_score = -30.39 + 3.00 * critical_care_patients + 0.53 * admit_time_hours + 1.16 * waiting_room_patients + 20.66 * (ed_patients / ed_beds) + 0.00126 * ed_visits_per_year - 1.11e-12 * pmax(ed_visits_per_year - 18811, 0)^3 + 8.23e-12 * pmax(ed_visits_per_year - 43012, 0)^3 - 8.20e-12 * pmax(ed_visits_per_year - 49466, 0)^3 + 1.08e-12 * pmax(ed_visits_per_year - 67273, 0)^3",
"waiting_room_patients": 0,
"critical_care_patients": 0
}
},
"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": [
"critical_care_patients",
"admit_time_hours",
"waiting_room_patients",
"ed_patients",
"ed_beds",
"ed_visits_per_year"
],
"properties": {
"ed_beds": {
"type": "integer",
"description": "Number of ED beds (integer 1-300). Weiss 2014 occupancy denominator. magent does not count beds."
},
"ed_patients": {
"type": "integer",
"description": "Total patients in the ED (integer 0-200). Weiss 2014 occupancy numerator (beds plus doubled-up or hallway). magent does not count patients."
},
"admit_time_hours": {
"type": "number",
"description": "Hours the longest-waiting admitted patient has been in the ED since admission (0-120). Weiss 2014 reduced-model B. Not time since registration. magent does not measure wait times."
},
"ed_visits_per_year": {
"type": "integer",
"description": "ED visits per year (integer 1000-200000). Weiss 2014 reduced-model E with restricted cubic spline knots at 18811, 43012, 49466, and 67273. The paper's spline worked example uses 46000. magent does not count visits."
},
"waiting_room_patients": {
"type": "integer",
"description": "Patients in the waiting room (integer 0-200). Weiss 2014 reduced-model C. magent does not count waiting-room patients."
},
"critical_care_patients": {
"type": "integer",
"description": "Critical-care patients in the ED (integer 0-20). Weiss 2014 reduced-model A. magent does not count patients."
}
}
}
},
"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/cedocs",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"items": [
{
"ed_beds": 20,
"ed_patients": 0,
"admit_time_hours": 0,
"ed_visits_per_year": 46000,
"waiting_room_patients": 0,
"critical_care_patients": 0
},
{
"ed_beds": 20,
"ed_patients": 0,
"admit_time_hours": 0,
"ed_visits_per_year": 46000,
"waiting_room_patients": 0,
"critical_care_patients": 0
}
]
},
"type": "http",
"method": "POST"
},
"output": {
"type": "json",
"example": {
"path": "/api/calc/cedocs",
"count": 2,
"items": [
{
"ed_beds": 20,
"formula": "cedocs",
"citation": {
"id": "weiss-2014",
"doi": "10.1016/j.ajem.2014.08.035",
"pmid": "25234796",
"title": "Evaluating community ED crowding: the Community ED Overcrowding Scale study",
"source": "Am J Emerg Med. 2014;32(11):1357-1363",
"authors": "Weiss SJ, Rogers DB, Maas F, Ernst AA, Nick TG"
},
"occupancy": 0,
"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.",
"ed_patients": 0,
"cedocs_score": 5.5,
"admit_time_hours": 0,
"ed_visits_per_year": 46000,
"formula_expression": "cedocs_score = -30.39 + 3.00 * critical_care_patients + 0.53 * admit_time_hours + 1.16 * waiting_room_patients + 20.66 * (ed_patients / ed_beds) + 0.00126 * ed_visits_per_year - 1.11e-12 * pmax(ed_visits_per_year - 18811, 0)^3 + 8.23e-12 * pmax(ed_visits_per_year - 43012, 0)^3 - 8.20e-12 * pmax(ed_visits_per_year - 49466, 0)^3 + 1.08e-12 * pmax(ed_visits_per_year - 67273, 0)^3",
"waiting_room_patients": 0,
"critical_care_patients": 0
},
{
"ed_beds": 20,
"formula": "cedocs",
"citation": {
"id": "weiss-2014",
"doi": "10.1016/j.ajem.2014.08.035",
"pmid": "25234796",
"title": "Evaluating community ED crowding: the Community ED Overcrowding Scale study",
"source": "Am J Emerg Med. 2014;32(11):1357-1363",
"authors": "Weiss SJ, Rogers DB, Maas F, Ernst AA, Nick TG"
},
"occupancy": 0,
"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.",
"ed_patients": 0,
"cedocs_score": 5.5,
"admit_time_hours": 0,
"ed_visits_per_year": 46000,
"formula_expression": "cedocs_score = -30.39 + 3.00 * critical_care_patients + 0.53 * admit_time_hours + 1.16 * waiting_room_patients + 20.66 * (ed_patients / ed_beds) + 0.00126 * ed_visits_per_year - 1.11e-12 * pmax(ed_visits_per_year - 18811, 0)^3 + 8.23e-12 * pmax(ed_visits_per_year - 43012, 0)^3 - 8.20e-12 * pmax(ed_visits_per_year - 49466, 0)^3 + 1.08e-12 * pmax(ed_visits_per_year - 67273, 0)^3",
"waiting_room_patients": 0,
"critical_care_patients": 0
}
]
}
},
"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": [
"critical_care_patients",
"admit_time_hours",
"waiting_room_patients",
"ed_patients",
"ed_beds",
"ed_visits_per_year"
],
"properties": {
"ed_beds": {
"type": "integer",
"description": "Number of ED beds (integer 1-300). Weiss 2014 occupancy denominator. magent does not count beds."
},
"ed_patients": {
"type": "integer",
"description": "Total patients in the ED (integer 0-200). Weiss 2014 occupancy numerator (beds plus doubled-up or hallway). magent does not count patients."
},
"admit_time_hours": {
"type": "number",
"description": "Hours the longest-waiting admitted patient has been in the ED since admission (0-120). Weiss 2014 reduced-model B. Not time since registration. magent does not measure wait times."
},
"ed_visits_per_year": {
"type": "integer",
"description": "ED visits per year (integer 1000-200000). Weiss 2014 reduced-model E with restricted cubic spline knots at 18811, 43012, 49466, and 67273. The paper's spline worked example uses 46000. magent does not count visits."
},
"waiting_room_patients": {
"type": "integer",
"description": "Patients in the waiting room (integer 0-200). Weiss 2014 reduced-model C. magent does not count waiting-room patients."
},
"critical_care_patients": {
"type": "integer",
"description": "Critical-care patients in the ED (integer 0-20). Weiss 2014 reduced-model A. magent does not count patients."
}
}
},
"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 11:03Z
- Last indexed by Roundhouse
- 2026-09-07 06:20Z
- Last enriched (probe, favicon, geo)
- 2026-09-24 09:45Z
- x402 version
- 2
- Max timeout
- 600s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 8 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service magent and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=magent' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://api.magentlab.com/api/calc/cedocs, 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.