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/4peps",
"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/4peps",
"tags": [
"4peps",
"pe",
"vte",
"pretest",
"calculator"
],
"mimeType": "application/json",
"description": "Roy 2021 4PEPS Table 3: age <50 −2, 50–64 −1, ≥65 0; chronic respiratory disease −1; HR <80 −1; chest pain and acute dyspnea +1; male +2; estrogen treatment +2; prior VTE +2; syncope +2; 4-week immobility +2; SpO2 <95% +3; calf pain or unilateral edema +3; PE most likely +5. Max 22. Bands: very_low <0, low 0–5, moderate 6–12, high ≥13. Not imaging or D-dimer. magent does not examine the patient or decide PE most likely.",
"serviceName": "magent"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"type": "http",
"method": "GET",
"queryParams": {
"age": 40,
"sex": "female",
"syncope": false,
"spo2_percent": 98,
"immobility_4w": false,
"heart_rate_bpm": 90,
"pe_most_likely": false,
"personal_history_vte": false,
"chronic_respiratory_disease": false,
"chest_pain_and_acute_dyspnea": false,
"calf_pain_or_unilateral_edema": false,
"hormonal_estrogenic_treatment": false
}
},
"output": {
"type": "json",
"example": {
"cpp": "very_low",
"score": -2,
"formula": "4peps",
"citation": {
"id": "roy-2021",
"doi": "10.1001/jamacardio.2021.0064",
"pmid": "33656522",
"title": "Derivation and Validation of a 4-Level Clinical Pretest Probability Score for Suspected Pulmonary Embolism to Safely Decrease Imaging Testing",
"source": "JAMA Cardiol. 2021;6(6):669-677",
"authors": "Roy PM, Friou E, Germeau B, et al."
},
"max_score": 22,
"components": [
{
"value": 40,
"factor": "age",
"points": -2,
"present": true
},
{
"factor": "chronic_respiratory_disease",
"points": 0,
"present": false
},
{
"value": 90,
"factor": "heart_rate_bpm",
"points": 0,
"present": false
},
{
"factor": "chest_pain_and_acute_dyspnea",
"points": 0,
"present": false
},
{
"value": "female",
"factor": "sex",
"points": 0,
"present": false
},
{
"factor": "hormonal_estrogenic_treatment",
"points": 0,
"present": false
},
{
"factor": "personal_history_vte",
"points": 0,
"present": false
},
{
"factor": "syncope",
"points": 0,
"present": false
},
{
"factor": "immobility_4w",
"points": 0,
"present": false
},
{
"value": 98,
"factor": "spo2_percent",
"points": 0,
"present": false
},
{
"factor": "calf_pain_or_unilateral_edema",
"points": 0,
"present": false
},
{
"factor": "pe_most_likely",
"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": "4PEPS = age (<50 -2, 50-64 -1, ≥65 0) + chronic_respiratory_disease (-1) + heart_rate_bpm (<80 -1) + chest_pain_and_acute_dyspnea (1) + male (2) + hormonal_estrogenic_treatment (2) + personal_history_vte (2) + syncope (2) + immobility_4w (2) + spo2_percent (<95 3) + calf_pain_or_unilateral_edema (3) + pe_most_likely (5); Roy 2021 Table 3; cpp very_low <0, low 0-5, moderate 6-12, high ≥13; max 22 (age ≥65 plus all positive items; score may be negative)"
}
},
"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",
"chronic_respiratory_disease",
"heart_rate_bpm",
"chest_pain_and_acute_dyspnea",
"sex",
"hormonal_estrogenic_treatment",
"personal_history_vte",
"syncope",
"immobility_4w",
"spo2_percent",
"calf_pain_or_unilateral_edema",
"pe_most_likely"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years (integer 18-120). Roy 2021 Table 3: <50 scores −2; 50-64 scores −1; ≥65 scores 0 (65-80 and >80 were not independently associated)."
},
"sex": {
"enum": [
"female",
"male"
],
"type": "string",
"description": "female or male (Roy 2021 Table 3). Male scores +2. Female scores 0. Assigned by the caller."
},
"syncope": {
"type": "boolean",
"description": "Syncope as assigned by the caller (Roy 2021 Table 3). true scores +2. magent does not examine the patient."
},
"spo2_percent": {
"type": "number",
"description": "Oxygen saturation percent (50-100). Roy 2021 Table 3: <95 scores +3; 95 and above score 0."
},
"immobility_4w": {
"type": "boolean",
"description": "Immobility within 4 weeks (Roy 2021 Table 3 footnote a): surgery, lower limb plaster cast, or bedridden more than 3 days for an acute medical condition. true scores +2. Assigned by the caller. magent does not examine the patient."
},
"heart_rate_bpm": {
"type": "integer",
"description": "Heart rate in beats per minute (integer 30-220). Table 3: <80 scores −1. 80-100 was not independently associated; this tool does not add tachycardia points."
},
"pe_most_likely": {
"type": "boolean",
"description": "PE is the most likely diagnosis as assigned by the caller (Roy 2021 Table 3). true scores +5. magent does not examine the patient or decide PE most likely."
},
"personal_history_vte": {
"type": "boolean",
"description": "Personal history of VTE as assigned by the caller (Roy 2021 Table 3). true scores +2."
},
"chronic_respiratory_disease": {
"type": "boolean",
"description": "Chronic respiratory disease (Roy 2021 Table 3). true scores −1. Assigned by the caller. magent does not examine the patient."
},
"chest_pain_and_acute_dyspnea": {
"type": "boolean",
"description": "Both chest pain and acute dyspnea present as assigned by the caller (Roy 2021 Table 3). true scores +1. magent does not examine the patient."
},
"calf_pain_or_unilateral_edema": {
"type": "boolean",
"description": "Calf pain and/or unilateral lower-limb edema as assigned by the caller (Roy 2021 Table 3). true scores +3. magent does not examine the patient."
},
"hormonal_estrogenic_treatment": {
"type": "boolean",
"description": "Hormonal estrogenic treatment as assigned by the caller (Roy 2021 Table 3). true scores +2."
}
}
}
},
"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/4peps",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"items": [
{
"age": 40,
"sex": "female",
"syncope": false,
"spo2_percent": 98,
"immobility_4w": false,
"heart_rate_bpm": 90,
"pe_most_likely": false,
"personal_history_vte": false,
"chronic_respiratory_disease": false,
"chest_pain_and_acute_dyspnea": false,
"calf_pain_or_unilateral_edema": false,
"hormonal_estrogenic_treatment": false
},
{
"age": 40,
"sex": "female",
"syncope": false,
"spo2_percent": 98,
"immobility_4w": false,
"heart_rate_bpm": 90,
"pe_most_likely": false,
"personal_history_vte": false,
"chronic_respiratory_disease": false,
"chest_pain_and_acute_dyspnea": false,
"calf_pain_or_unilateral_edema": false,
"hormonal_estrogenic_treatment": false
}
]
},
"type": "http",
"method": "POST"
},
"output": {
"type": "json",
"example": {
"path": "/api/calc/4peps",
"count": 2,
"items": [
{
"cpp": "very_low",
"score": -2,
"formula": "4peps",
"citation": {
"id": "roy-2021",
"doi": "10.1001/jamacardio.2021.0064",
"pmid": "33656522",
"title": "Derivation and Validation of a 4-Level Clinical Pretest Probability Score for Suspected Pulmonary Embolism to Safely Decrease Imaging Testing",
"source": "JAMA Cardiol. 2021;6(6):669-677",
"authors": "Roy PM, Friou E, Germeau B, et al."
},
"max_score": 22,
"components": [
{
"value": 40,
"factor": "age",
"points": -2,
"present": true
},
{
"factor": "chronic_respiratory_disease",
"points": 0,
"present": false
},
{
"value": 90,
"factor": "heart_rate_bpm",
"points": 0,
"present": false
},
{
"factor": "chest_pain_and_acute_dyspnea",
"points": 0,
"present": false
},
{
"value": "female",
"factor": "sex",
"points": 0,
"present": false
},
{
"factor": "hormonal_estrogenic_treatment",
"points": 0,
"present": false
},
{
"factor": "personal_history_vte",
"points": 0,
"present": false
},
{
"factor": "syncope",
"points": 0,
"present": false
},
{
"factor": "immobility_4w",
"points": 0,
"present": false
},
{
"value": 98,
"factor": "spo2_percent",
"points": 0,
"present": false
},
{
"factor": "calf_pain_or_unilateral_edema",
"points": 0,
"present": false
},
{
"factor": "pe_most_likely",
"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": "4PEPS = age (<50 -2, 50-64 -1, ≥65 0) + chronic_respiratory_disease (-1) + heart_rate_bpm (<80 -1) + chest_pain_and_acute_dyspnea (1) + male (2) + hormonal_estrogenic_treatment (2) + personal_history_vte (2) + syncope (2) + immobility_4w (2) + spo2_percent (<95 3) + calf_pain_or_unilateral_edema (3) + pe_most_likely (5); Roy 2021 Table 3; cpp very_low <0, low 0-5, moderate 6-12, high ≥13; max 22 (age ≥65 plus all positive items; score may be negative)"
},
{
"cpp": "very_low",
"score": -2,
"formula": "4peps",
"citation": {
"id": "roy-2021",
"doi": "10.1001/jamacardio.2021.0064",
"pmid": "33656522",
"title": "Derivation and Validation of a 4-Level Clinical Pretest Probability Score for Suspected Pulmonary Embolism to Safely Decrease Imaging Testing",
"source": "JAMA Cardiol. 2021;6(6):669-677",
"authors": "Roy PM, Friou E, Germeau B, et al."
},
"max_score": 22,
"components": [
{
"value": 40,
"factor": "age",
"points": -2,
"present": true
},
{
"factor": "chronic_respiratory_disease",
"points": 0,
"present": false
},
{
"value": 90,
"factor": "heart_rate_bpm",
"points": 0,
"present": false
},
{
"factor": "chest_pain_and_acute_dyspnea",
"points": 0,
"present": false
},
{
"value": "female",
"factor": "sex",
"points": 0,
"present": false
},
{
"factor": "hormonal_estrogenic_treatment",
"points": 0,
"present": false
},
{
"factor": "personal_history_vte",
"points": 0,
"present": false
},
{
"factor": "syncope",
"points": 0,
"present": false
},
{
"factor": "immobility_4w",
"points": 0,
"present": false
},
{
"value": 98,
"factor": "spo2_percent",
"points": 0,
"present": false
},
{
"factor": "calf_pain_or_unilateral_edema",
"points": 0,
"present": false
},
{
"factor": "pe_most_likely",
"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": "4PEPS = age (<50 -2, 50-64 -1, ≥65 0) + chronic_respiratory_disease (-1) + heart_rate_bpm (<80 -1) + chest_pain_and_acute_dyspnea (1) + male (2) + hormonal_estrogenic_treatment (2) + personal_history_vte (2) + syncope (2) + immobility_4w (2) + spo2_percent (<95 3) + calf_pain_or_unilateral_edema (3) + pe_most_likely (5); Roy 2021 Table 3; cpp very_low <0, low 0-5, moderate 6-12, high ≥13; max 22 (age ≥65 plus all positive items; score may be negative)"
}
]
}
},
"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",
"chronic_respiratory_disease",
"heart_rate_bpm",
"chest_pain_and_acute_dyspnea",
"sex",
"hormonal_estrogenic_treatment",
"personal_history_vte",
"syncope",
"immobility_4w",
"spo2_percent",
"calf_pain_or_unilateral_edema",
"pe_most_likely"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years (integer 18-120). Roy 2021 Table 3: <50 scores −2; 50-64 scores −1; ≥65 scores 0 (65-80 and >80 were not independently associated)."
},
"sex": {
"enum": [
"female",
"male"
],
"type": "string",
"description": "female or male (Roy 2021 Table 3). Male scores +2. Female scores 0. Assigned by the caller."
},
"syncope": {
"type": "boolean",
"description": "Syncope as assigned by the caller (Roy 2021 Table 3). true scores +2. magent does not examine the patient."
},
"spo2_percent": {
"type": "number",
"description": "Oxygen saturation percent (50-100). Roy 2021 Table 3: <95 scores +3; 95 and above score 0."
},
"immobility_4w": {
"type": "boolean",
"description": "Immobility within 4 weeks (Roy 2021 Table 3 footnote a): surgery, lower limb plaster cast, or bedridden more than 3 days for an acute medical condition. true scores +2. Assigned by the caller. magent does not examine the patient."
},
"heart_rate_bpm": {
"type": "integer",
"description": "Heart rate in beats per minute (integer 30-220). Table 3: <80 scores −1. 80-100 was not independently associated; this tool does not add tachycardia points."
},
"pe_most_likely": {
"type": "boolean",
"description": "PE is the most likely diagnosis as assigned by the caller (Roy 2021 Table 3). true scores +5. magent does not examine the patient or decide PE most likely."
},
"personal_history_vte": {
"type": "boolean",
"description": "Personal history of VTE as assigned by the caller (Roy 2021 Table 3). true scores +2."
},
"chronic_respiratory_disease": {
"type": "boolean",
"description": "Chronic respiratory disease (Roy 2021 Table 3). true scores −1. Assigned by the caller. magent does not examine the patient."
},
"chest_pain_and_acute_dyspnea": {
"type": "boolean",
"description": "Both chest pain and acute dyspnea present as assigned by the caller (Roy 2021 Table 3). true scores +1. magent does not examine the patient."
},
"calf_pain_or_unilateral_edema": {
"type": "boolean",
"description": "Calf pain and/or unilateral lower-limb edema as assigned by the caller (Roy 2021 Table 3). true scores +3. magent does not examine the patient."
},
"hormonal_estrogenic_treatment": {
"type": "boolean",
"description": "Hormonal estrogenic treatment as assigned by the caller (Roy 2021 Table 3). true scores +2."
}
}
},
"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:14Z
- Last indexed by Roundhouse
- 2026-09-07 06:20Z
- Last enriched (probe, favicon, geo)
- 2026-09-12 23:15Z
- x402 version
- 2
- Max timeout
- 600s
- Liveness probe
- HTTP 0
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. 13 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/4peps, 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.