75trust / 100

Calc Gelf

by magent in Other

x402 APIPassing, checked 2 h ago

GELF criteria (Brice 1997). High tumor burden in follicular lymphoma if any of eight caller-assigned items: mass >7 cm; ≥3 nodes each >3 cm; B symptoms; spleen below umbilicus; compression; serous effusion; leukemic phase; cytopenia. Any yes is high_burden. Not a treatment order, not FLIPI, not IPI, not modified GELF. magent does not measure nodes, spleen, counts, or effusions.

GET
https://api.magentlab.com/api/calc/gelf
Price
$0.005
per call in USDC
Uptime
100%
last 30 days
Response time
235 ms
597 ms slowest 5%
Last check
Passed
2 h ago, next in 5 h

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://api.magentlab.com/api/calc/gelf

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.

GET https://api.magentlab.com/api/calc/gelf?b_symptoms=false&compression=false&cytopenia=false&effusion=false&leukemic_phase=false&mass_gt_7cm=false&spleen_below_umbilicus=false&three_nodes_gt_3cm=false

Parameters

ParameterTypeRequiredDescription
b_symptomsbooleanYesSystemic / B symptoms as assigned by the caller. true or false. magent does not take a history.
compressionbooleanYesCompression syndrome (ureter, GI tract, great vessels, or other vital organ as assigned by the caller). true or false. magent does not diagnose compression.
cytopeniabooleanYesCytopenia as assigned by the caller (paper: granulocytes <1.0×10^9/L and/or platelets <100×10^9/L). true or false. magent does not count cells.
effusionbooleanYesPleural or peritoneal serous effusion as assigned by the caller. true or false. magent does not image or tap an effusion.
leukemic_phasebooleanYesLeukemic phase as assigned by the caller (paper: circulating malignant cells >5.0×10^9/L). true or false. magent does not count cells.
mass_gt_7cmbooleanYesAny nodal or extranodal tumor mass >7 cm as assigned by the caller. true or false. magent does not measure nodes or extranodal masses.
spleen_below_umbilicusbooleanYesSubstantial splenic enlargement (inferior margin below the umbilicus) as assigned by the caller. true or false. magent does not measure the spleen.
three_nodes_gt_3cmbooleanYesAt least 3 nodal sites, each with diameter >3 cm, as assigned by the caller. true or false. magent does not count or measure nodes.

Example response

The provider's example. We can't check it without paying.

Example response, 48 lines
{
  "citation": {
    "authors": "Brice P, Bastion Y, Lepage E, Brousse N, Haïoun C, Moreau P, Straetmans N, Tilly H, Tabah I, Solal-Céligny P",
    "doi": "10.1200/JCO.1997.15.3.1110",
    "id": "brice-1997",
    "pmid": "9060552",
    "source": "J Clin Oncol. 1997;15(3):1110-1117",
    "title": "Comparison in low-tumor-burden follicular lymphomas between an initial no-treatment policy, prednimustine, or interferon alfa: a randomized study from the Groupe d'Etude des Lymphomes Folliculaires"
  },
  "criteria": [
    {
      "factor": "mass_gt_7cm",
      "met": false
    },
    {
      "factor": "three_nodes_gt_3cm",
      "met": false
    },
    {
      "factor": "b_symptoms",
      "met": false
    },
    {
      "factor": "spleen_below_umbilicus",
      "met": false
    },
    {
      "factor": "compression",
      "met": false
    },
    {
      "factor": "effusion",
      "met": false
    },
    {
      "factor": "leukemic_phase",
      "met": false
    },
    {
      "factor": "cytopenia",
      "met": 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": "gelf",
  "formula_expression": "high tumor burden iff any of the 8 Brice 1997 GELF criteria",
  "tumor_burden": "low_burden"
}

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 'https://api.magentlab.com/api/calc/gelf?b_symptoms=false&compression=false&cytopenia=false&effusion=false&leukemic_phase=false&mass_gt_7cm=false&spleen_below_umbilicus=false&three_nodes_gt_3cm=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 - 'https://api.magentlab.com/api/calc/gelf?b_symptoms=false&compression=false&cytopenia=false&effusion=false&leukemic_phase=false&mass_gt_7cm=false&spleen_below_umbilicus=false&three_nodes_gt_3cm=false' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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%2Fgelf
const res = await pay("https://api.magentlab.com/api/calc/gelf?b_symptoms=false&compression=false&cytopenia=false&effusion=false&leukemic_phase=false&mass_gt_7cm=false&spleen_below_umbilicus=false&three_nodes_gt_3cm=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.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.get("https://api.magentlab.com/api/calc/gelf?b_symptoms=false&compression=false&cytopenia=false&effusion=false&leukemic_phase=false&mass_gt_7cm=false&spleen_below_umbilicus=false&three_nodes_gt_3cm=false")
    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

WhenResultHTTPTimePrice
2 h agoPassed402389 ms$0.005
12 h agoPassed402247 ms$0.005
22 h agoPassed402311 ms$0.005
32 h agoPassed402445 ms$0.005
42 h agoPassed402597 ms$0.005
Show 6 older checks
2 days agoPassed402151 ms$0.005
3 days agoPassed402144 ms$0.005
3 days agoPassed402168 ms$0.005
3 days agoPassed402235 ms$0.005
4 days agoPassed402150 ms$0.005
4 days agoPassed402160 ms$0.005