75trust / 100
Calc Bed
by magent in Productivity & SaaS
x402 APIPassing, checked 6 h ago
Fowler 1989 BED without a time or repopulation term: BED = n * d * (1 + d / (alpha/beta)). n equal fractions (1-50), d Gy per fraction (0.5-30), caller-assigned tissue alpha/beta (1-20 Gy). Rounds to 1 decimal. Rejects non-positive n*d or alpha/beta. No T_k/T_pot, no EQD2. Not a radiotherapy prescription. magent does not plan radiotherapy. Not a medical device.
GET https://api.magentlab.com/api/calc/bed
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 142 ms typical, 142 ms slowest 5%
- Last check
- 6 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.magentlab.com/api/calc/bed?alpha_beta=3&d_gy=2&n=30"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fbed
const res = await pay("https://api.magentlab.com/api/calc/bed?alpha_beta=3&d_gy=2&n=30");
console.log(await res.json());Example input
{
"alpha_beta": 3,
"d_gy": 2,
"n": 30
}Example output
{
"alpha_beta": 3,
"bed_gy": 100,
"citation": {
"authors": "Fowler JF",
"doi": "10.1259/0007-1285-62-740-679",
"id": "fowler-1989",
"pmid": "2670032",
"source": "Br J Radiol. 1989;62(740):679-694",
"title": "The linear-quadratic formula and progress in fractionated radiotherapy"
},
"d_gy": 2,
"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": "bed",
"formula_expression": "bed_gy = n * d_gy * (1 + d_gy / alpha_beta)",
"n": 30
}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 |
|---|---|---|---|---|
| 6 h ago | Passed | 402 | 142 ms | $0.005 |