Calc Jones
by magent in Security & trust
Gewitz 2015 AHA Jones criteria (Table 7). jones_arf iff evidence_of_preceding_gas and the episode rule: initial 2 major or 1 major plus 2 minor; recurrent also allows 3 minor. Majors/minors follow population_risk for arthritis vs arthralgia, fever, and ESR/CRP. Prolonged PR does not count with carditis. Joints count in major or minor, not both. magent does not examine the patient or read an echocardiogram. Not Jones 1944. Not a diagnosis. Not a medical device.
https://api.magentlab.com/api/calc/jones- Price
- $0.007
- per call in USDC
- Uptime
- 94.1%
- last 30 days
- Response time
- 172 ms
- 556 ms slowest 5%
- Last check
- Failed
- 10 min ago, next in 5 min
Reliability
Latest check failed 10 min ago: Timed out
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.magentlab.com/api/calc/jones
Each call costs $0.007 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.magentlab.com/api/calc/jones
content-type: application/json
{
"items": [
{
"carditis": true,
"chorea": false,
"episode": "initial",
"erythema_marginatum": false,
"esr_ge_30_or_crp_ge_3": false,
"esr_ge_60_or_crp_ge_3": false,
"evidence_of_preceding_gas": true,
"fever_ge_38": false,
"fever_ge_38_5": false,
"monoarthralgia": false,
"monoarthritis": false,
"polyarthralgia": false,
"polyarthritis": true,
"population_risk": "low",
"prolonged_pr": false,
"subcutaneous_nodules": false
},
{
"carditis": true,
"chorea": false,
"episode": "initial",
"erythema_marginatum": false,
"esr_ge_30_or_crp_ge_3": false,
"esr_ge_60_or_crp_ge_3": false,
"evidence_of_preceding_gas": true,
"fever_ge_38": false,
"fever_ge_38_5": false,
"monoarthralgia": false,
"monoarthritis": false,
"polyarthralgia": false,
"polyarthritis": true,
"population_risk": "low",
"prolonged_pr": false,
"subcutaneous_nodules": false
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
items | array of object | Yes |
Example response
The provider's example. We can't check it without paying.
Example response, 174 lines
{
"count": 2,
"items": [
{
"citation": {
"authors": "Gewitz MH, Baltimore RS, Tani LY, Sable CA, Shulman ST, Carapetis J, Remenyi B, Taubert KA, Bolger AF, Beerman L, Mayosi BM, Beaton A, Pandian NG, Kaplan EL",
"doi": "10.1161/CIR.0000000000000205",
"id": "gewitz-2015",
"pmid": "25908771",
"source": "Circulation. 2015;131(20):1806-1818",
"title": "Revision of the Jones Criteria for the Diagnosis of Acute Rheumatic Fever in the Era of Doppler Echocardiography: A Scientific Statement From the American Heart Association"
},
"criteria": [
{
"factor": "evidence_of_preceding_gas",
"met": true
},
{
"factor": "carditis",
"met": true
},
{
"factor": "polyarthritis",
"met": true
},
{
"factor": "monoarthritis",
"met": false
},
{
"factor": "polyarthralgia",
"met": false
},
{
"factor": "monoarthralgia",
"met": false
},
{
"factor": "chorea",
"met": false
},
{
"factor": "erythema_marginatum",
"met": false
},
{
"factor": "subcutaneous_nodules",
"met": false
},
{
"factor": "fever_ge_38_5",
"met": false
},
{
"factor": "fever_ge_38",
"met": false
},
{
"factor": "esr_ge_60_or_crp_ge_3",
"met": false
},
{
"factor": "esr_ge_30_or_crp_ge_3",
"met": false
},
{
"factor": "prolonged_pr",
"met": false
},
{
"factor": "episode_rule",
"met": true
},
{
"factor": "jones_arf",
"met": true
}
],
"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.",
"episode": "initial",
"formula": "jones",
"formula_expression": "jones_arf iff evidence_of_preceding_gas and episode rule (Gewitz 2015 Table 7). initial: 2 major or (1 major and 2 minor). recurrent: 2 major or (1 major and 2 minor) or 3 minor. Majors: carditis (clinical and/or subclinical); arthritis (low: polyarthritis; moderate_high: polyarthritis or monoarthritis, else polyarthralgia); chorea; erythema_marginatum; subcutaneous_nodules. Minors: polyarthralgia (low, if no arthritis major); monoarthralgia (moderate_high, if no arthritis or polyarthralgia major); fever (low: fever_ge_38_5; moderate_high: fever_ge_38); ESR/CRP (low: esr_ge_60_or_crp_ge_3; moderate_high: esr_ge_30_or_crp_ge_3); prolonged_pr only when carditis is false. Joints count in major or minor, not both, at most one joint major. Not Jones 1944. Not a diagnosis",
"jones_arf": true,
"major_count": 2,
"minor_count": 0,
"population_risk": "low"
},
{
"citation": {
"authors": "Gewitz MH, Baltimore RS, Tani LY, Sable CA, Shulman ST, Carapetis J, Remenyi B, Taubert KA, Bolger AF, Beerman L, Mayosi BM, Beaton A, Pandian NG, Kaplan EL",
"doi": "10.1161/CIR.0000000000000205",
"id": "gewitz-2015",
"pmid": "25908771",
"source": "Circulation. 2015;131(20):1806-1818",
"title": "Revision of the Jones Criteria for the Diagnosis of Acute Rheumatic Fever in the Era of Doppler Echocardiography: A Scientific Statement From the American Heart Association"
},
"criteria": [
{
"factor": "evidence_of_preceding_gas",
"met": true
},
{
"factor": "carditis",
"met": true
},
{
"factor": "polyarthritis",
"met": true
},
{
"factor": "monoarthritis",
"met": false
},
{
"factor": "polyarthralgia",
"met": false
},
{
"factor": "monoarthralgia",
"met": false
},
{
"factor": "chorea",
"met": false
},
{
"factor": "erythema_marginatum",
"met": false
},
{
"factor": "subcutaneous_nodules",
"met": false
},
{
"factor": "fever_ge_38_5",
"met": false
},
{
"factor": "fever_ge_38",
"met": false
},
{
"factor": "esr_ge_60_or_crp_ge_3",
"met": false
},
{
"factor": "esr_ge_30_or_crp_ge_3",
"met": false
},
{
"factor": "prolonged_pr",
"met": false
},
{
"factor": "episode_rule",
"met": true
},
{
"factor": "jones_arf",
"met": true
}
],
"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.",
"episode": "initial",
"formula": "jones",
"formula_expression": "jones_arf iff evidence_of_preceding_gas and episode rule (Gewitz 2015 Table 7). initial: 2 major or (1 major and 2 minor). recurrent: 2 major or (1 major and 2 minor) or 3 minor. Majors: carditis (clinical and/or subclinical); arthritis (low: polyarthritis; moderate_high: polyarthritis or monoarthritis, else polyarthralgia); chorea; erythema_marginatum; subcutaneous_nodules. Minors: polyarthralgia (low, if no arthritis major); monoarthralgia (moderate_high, if no arthritis or polyarthralgia major); fever (low: fever_ge_38_5; moderate_high: fever_ge_38); ESR/CRP (low: esr_ge_60_or_crp_ge_3; moderate_high: esr_ge_30_or_crp_ge_3); prolonged_pr only when carditis is false. Joints count in major or minor, not both, at most one joint major. Not Jones 1944. Not a diagnosis",
"jones_arf": true,
"major_count": 2,
"minor_count": 0,
"population_risk": "low"
}
],
"path": "/api/calc/jones"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.007.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.magentlab.com/api/calc/jones' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"carditis":true,"chorea":false,"episode":"initial","erythema_marginatum":false,"esr_ge_30_or_crp_ge_3":false,"esr_ge_60_or_crp_ge_3":false,"evidence_of_preceding_gas":true,"fever_ge_38":false,"fever_ge_38_5":false,"monoarthralgia":false,"monoarthritis":false,"polyarthralgia":false,"polyarthritis":true,"population_risk":"low","prolonged_pr":false,"subcutaneous_nodules":false},{"carditis":true,"chorea":false,"episode":"initial","erythema_marginatum":false,"esr_ge_30_or_crp_ge_3":false,"esr_ge_60_or_crp_ge_3":false,"evidence_of_preceding_gas":true,"fever_ge_38":false,"fever_ge_38_5":false,"monoarthralgia":false,"monoarthritis":false,"polyarthralgia":false,"polyarthritis":true,"population_risk":"low","prolonged_pr":false,"subcutaneous_nodules":false}]}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.magentlab.com/api/calc/jones' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"carditis":true,"chorea":false,"episode":"initial","erythema_marginatum":false,"esr_ge_30_or_crp_ge_3":false,"esr_ge_60_or_crp_ge_3":false,"evidence_of_preceding_gas":true,"fever_ge_38":false,"fever_ge_38_5":false,"monoarthralgia":false,"monoarthritis":false,"polyarthralgia":false,"polyarthritis":true,"population_risk":"low","prolonged_pr":false,"subcutaneous_nodules":false},{"carditis":true,"chorea":false,"episode":"initial","erythema_marginatum":false,"esr_ge_30_or_crp_ge_3":false,"esr_ge_60_or_crp_ge_3":false,"evidence_of_preceding_gas":true,"fever_ge_38":false,"fever_ge_38_5":false,"monoarthralgia":false,"monoarthritis":false,"polyarthralgia":false,"polyarthritis":true,"population_risk":"low","prolonged_pr":false,"subcutaneous_nodules":false}]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.007 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.007" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.007 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fjones&method=POST
const res = await pay("https://api.magentlab.com/api/calc/jones", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"carditis": true,
"chorea": false,
"episode": "initial",
"erythema_marginatum": false,
"esr_ge_30_or_crp_ge_3": false,
"esr_ge_60_or_crp_ge_3": false,
"evidence_of_preceding_gas": true,
"fever_ge_38": false,
"fever_ge_38_5": false,
"monoarthralgia": false,
"monoarthritis": false,
"polyarthralgia": false,
"polyarthritis": true,
"population_risk": "low",
"prolonged_pr": false,
"subcutaneous_nodules": false
},
{
"carditis": true,
"chorea": false,
"episode": "initial",
"erythema_marginatum": false,
"esr_ge_30_or_crp_ge_3": false,
"esr_ge_60_or_crp_ge_3": false,
"evidence_of_preceding_gas": true,
"fever_ge_38": false,
"fever_ge_38_5": false,
"monoarthralgia": false,
"monoarthritis": false,
"polyarthralgia": false,
"polyarthritis": true,
"population_risk": "low",
"prolonged_pr": false,
"subcutaneous_nodules": false
}
]
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.007 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.007"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.magentlab.com/api/calc/jones",
json={
"items": [
{
"carditis": True,
"chorea": False,
"episode": "initial",
"erythema_marginatum": False,
"esr_ge_30_or_crp_ge_3": False,
"esr_ge_60_or_crp_ge_3": False,
"evidence_of_preceding_gas": True,
"fever_ge_38": False,
"fever_ge_38_5": False,
"monoarthralgia": False,
"monoarthritis": False,
"polyarthralgia": False,
"polyarthritis": True,
"population_risk": "low",
"prolonged_pr": False,
"subcutaneous_nodules": False,
},
{
"carditis": True,
"chorea": False,
"episode": "initial",
"erythema_marginatum": False,
"esr_ge_30_or_crp_ge_3": False,
"esr_ge_60_or_crp_ge_3": False,
"evidence_of_preceding_gas": True,
"fever_ge_38": False,
"fever_ge_38_5": False,
"monoarthralgia": False,
"monoarthritis": False,
"polyarthralgia": False,
"polyarthritis": True,
"population_risk": "low",
"prolonged_pr": False,
"subcutaneous_nodules": False,
},
],
},
)
print(res.status_code, res.text)Security scan
1 finding
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 10 min ago | Timed out | - | - | - |
| 5 h ago | Timed out | - | - | - |
| 10 h ago | Passed | 402 | 186 ms | $0.007 |
| 15 h ago | Passed | 402 | 182 ms | $0.007 |
| 19 h ago | Passed | 402 | 358 ms | $0.007 |
Show 10 older checks
| 24 h ago | Passed | 402 | 144 ms | $0.007 |
| 29 h ago | Passed | 402 | 149 ms | $0.007 |
| 33 h ago | Passed | 402 | 318 ms | $0.007 |
| 37 h ago | Passed | 402 | 289 ms | $0.007 |
| 41 h ago | Passed | 402 | 185 ms | $0.007 |
| 45 h ago | Passed | 402 | 155 ms | $0.007 |
| 2 days ago | Passed | 402 | 171 ms | $0.007 |
| 2 days ago | Passed | 402 | 150 ms | $0.007 |
| 2 days ago | Passed | 402 | 175 ms | $0.007 |
| 3 days ago | Passed | 402 | 920 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |