Calc Burch Wartofsky
by magent in Other
Burch 1993 points: °F (<99→0, 99.0–99.9→5, 100.0–100.9→10, 101.0–101.9→15, 102.0–102.9→20, 103.0–103.9→25, ≥104→30); CNS 0/10/20/30; GI-hepatic 0/10/20; HR (<90→0, 90–109→5, 110–119→10, 120–129→15, 130–139→20, ≥140→25); HF 0/5/10/15; AF 10; precipitant 10. Max 140. <25 unlikely, 25–44 impending, ≥45 highly suggestive. temperature_f or temperature_c, not both. Not a diagnosis or ICU order. magent does not measure temperature or an ECG.
https://api.magentlab.com/api/calc/burch_wartofsky- Price
- $0.005
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 223 ms
- 1.5 s slowest 5%
- Last check
- Passed
- 3 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.magentlab.com/api/calc/burch_wartofsky
Each call costs $0.005 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/burch_wartofsky
content-type: application/json
{
"items": [
{
"atrial_fibrillation": false,
"cns_effects": "none",
"gi_hepatic": "none",
"heart_failure": "none",
"heart_rate_bpm": 80,
"precipitating_event": false,
"temperature_c": 37,
"temperature_f": 98.6
},
{
"atrial_fibrillation": false,
"cns_effects": "none",
"gi_hepatic": "none",
"heart_failure": "none",
"heart_rate_bpm": 80,
"precipitating_event": false,
"temperature_c": 37,
"temperature_f": 98.6
}
]
}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, 140 lines
{
"count": 2,
"items": [
{
"atrial_fibrillation": false,
"bwps_band": "unlikely",
"citation": {
"authors": "Burch HB, Wartofsky L",
"doi": "10.1016/S0889-8529(18)30165-8",
"id": "burch-1993",
"pmid": "8325286",
"source": "Endocrinol Metab Clin North Am. 1993;22(2):263-277",
"title": "Life-threatening thyrotoxicosis. Thyroid storm"
},
"cns_effects": "none",
"components": [
{
"factor": "temperature_f",
"points": 0,
"present": false,
"value": 98.6
},
{
"factor": "cns_effects",
"points": 0,
"present": false,
"value": "none"
},
{
"factor": "gi_hepatic",
"points": 0,
"present": false,
"value": "none"
},
{
"factor": "heart_rate_bpm",
"points": 0,
"present": false,
"value": 80
},
{
"factor": "heart_failure",
"points": 0,
"present": false,
"value": "none"
},
{
"factor": "atrial_fibrillation",
"points": 0,
"present": false,
"value": false
},
{
"factor": "precipitating_event",
"points": 0,
"present": false,
"value": 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": "burch_wartofsky",
"formula_expression": "BWPS = temp_F(<99.0→0, 99.0–99.9→5, 100.0–100.9→10, 101.0–101.9→15, 102.0–102.9→20, 103.0–103.9→25, ≥104.0→30) + CNS(none→0, mild→10, moderate→20, severe→30) + GI-hepatic(none→0, moderate→10, severe→20) + HR(<90→0, 90–109→5, 110–119→10, 120–129→15, 130–139→20, ≥140→25) + HF(none→0, mild→5, moderate→10, severe→15) + 10*AF + 10*precipitant; Burch 1993; max 140; <25 unlikely, 25–44 impending, ≥45 highly_suggestive",
"gi_hepatic": "none",
"heart_failure": "none",
"heart_rate_bpm": 80,
"max_score": 140,
"precipitating_event": false,
"score": 0,
"temperature_f": 98.6
},
{
"atrial_fibrillation": false,
"bwps_band": "unlikely",
"citation": {
"authors": "Burch HB, Wartofsky L",
"doi": "10.1016/S0889-8529(18)30165-8",
"id": "burch-1993",
"pmid": "8325286",
"source": "Endocrinol Metab Clin North Am. 1993;22(2):263-277",
"title": "Life-threatening thyrotoxicosis. Thyroid storm"
},
"cns_effects": "none",
"components": [
{
"factor": "temperature_f",
"points": 0,
"present": false,
"value": 98.6
},
{
"factor": "cns_effects",
"points": 0,
"present": false,
"value": "none"
},
{
"factor": "gi_hepatic",
"points": 0,
"present": false,
"value": "none"
},
{
"factor": "heart_rate_bpm",
"points": 0,
"present": false,
"value": 80
},
{
"factor": "heart_failure",
"points": 0,
"present": false,
"value": "none"
},
{
"factor": "atrial_fibrillation",
"points": 0,
"present": false,
"value": false
},
{
"factor": "precipitating_event",
"points": 0,
"present": false,
"value": 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": "burch_wartofsky",
"formula_expression": "BWPS = temp_F(<99.0→0, 99.0–99.9→5, 100.0–100.9→10, 101.0–101.9→15, 102.0–102.9→20, 103.0–103.9→25, ≥104.0→30) + CNS(none→0, mild→10, moderate→20, severe→30) + GI-hepatic(none→0, moderate→10, severe→20) + HR(<90→0, 90–109→5, 110–119→10, 120–129→15, 130–139→20, ≥140→25) + HF(none→0, mild→5, moderate→10, severe→15) + 10*AF + 10*precipitant; Burch 1993; max 140; <25 unlikely, 25–44 impending, ≥45 highly_suggestive",
"gi_hepatic": "none",
"heart_failure": "none",
"heart_rate_bpm": 80,
"max_score": 140,
"precipitating_event": false,
"score": 0,
"temperature_f": 98.6
}
],
"path": "/api/calc/burch_wartofsky"
}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.005.
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/burch_wartofsky' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"atrial_fibrillation":false,"cns_effects":"none","gi_hepatic":"none","heart_failure":"none","heart_rate_bpm":80,"precipitating_event":false,"temperature_c":37,"temperature_f":98.6},{"atrial_fibrillation":false,"cns_effects":"none","gi_hepatic":"none","heart_failure":"none","heart_rate_bpm":80,"precipitating_event":false,"temperature_c":37,"temperature_f":98.6}]}'
# 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/burch_wartofsky' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"atrial_fibrillation":false,"cns_effects":"none","gi_hepatic":"none","heart_failure":"none","heart_rate_bpm":80,"precipitating_event":false,"temperature_c":37,"temperature_f":98.6},{"atrial_fibrillation":false,"cns_effects":"none","gi_hepatic":"none","heart_failure":"none","heart_rate_bpm":80,"precipitating_event":false,"temperature_c":37,"temperature_f":98.6}]}' \
| 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.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
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.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fburch_wartofsky&method=POST
const res = await pay("https://api.magentlab.com/api/calc/burch_wartofsky", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"atrial_fibrillation": false,
"cns_effects": "none",
"gi_hepatic": "none",
"heart_failure": "none",
"heart_rate_bpm": 80,
"precipitating_event": false,
"temperature_c": 37,
"temperature_f": 98.6
},
{
"atrial_fibrillation": false,
"cns_effects": "none",
"gi_hepatic": "none",
"heart_failure": "none",
"heart_rate_bpm": 80,
"precipitating_event": false,
"temperature_c": 37,
"temperature_f": 98.6
}
]
}),
});
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.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
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/burch_wartofsky",
json={
"items": [
{
"atrial_fibrillation": False,
"cns_effects": "none",
"gi_hepatic": "none",
"heart_failure": "none",
"heart_rate_bpm": 80,
"precipitating_event": False,
"temperature_c": 37,
"temperature_f": 98.6,
},
{
"atrial_fibrillation": False,
"cns_effects": "none",
"gi_hepatic": "none",
"heart_failure": "none",
"heart_rate_bpm": 80,
"precipitating_event": False,
"temperature_c": 37,
"temperature_f": 98.6,
},
],
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 352 ms | $0.005 |
| 8 h ago | Passed | 402 | 162 ms | $0.005 |
| 12 h ago | Passed | 402 | 174 ms | $0.005 |
| 16 h ago | Passed | 402 | 306 ms | $0.005 |
| 20 h ago | Passed | 402 | 221 ms | $0.005 |
Show 10 older checks
| 25 h ago | Passed | 402 | 290 ms | $0.005 |
| 29 h ago | Passed | 402 | 464 ms | $0.005 |
| 33 h ago | Passed | 402 | 280 ms | $0.005 |
| 38 h ago | Passed | 402 | 1.6 s | $0.005 |
| 42 h ago | Passed | 402 | 153 ms | $0.005 |
| 46 h ago | Passed | 402 | 266 ms | $0.005 |
| 2 days ago | Passed | 402 | 146 ms | $0.005 |
| 2 days ago | Passed | 402 | 154 ms | $0.005 |
| 2 days ago | Passed | 402 | 484 ms | $0.005 |
| 3 days ago | Passed | 402 | 468 ms | $0.005 |