71trust / 100

Calc Wat 1

by magent in Developer tools

x402 APIPassing, checked 36 min ago

Franck 2008 WAT-1 (Withdrawal Assessment Tool-1). Eleven caller-assigned integers: ten 0/1 signs plus time_to_calm 0-2. Sum 0-12. Cutoff WAT-1 ≥3 vs NRS ≥4. magent does not observe the child. Pediatric iatrogenic opioid/benzodiazepine withdrawal monitoring only. Not a diagnosis, not NAS, not COWS, not CIWA-Ar, and not a medical device.

POST
https://api.magentlab.com/api/calc/wat_1
Price
$0.007
per call in USDC
Uptime
100%
last 30 days
Response time
264 ms
564 ms slowest 5%
Last check
Passed
36 min ago, next any minute now

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

POST https://api.magentlab.com/api/calc/wat_1

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/wat_1
content-type: application/json

{
  "items": [
    {
      "loose_watery_stools": 0,
      "muscle_tone": 0,
      "startle_to_touch": 0,
      "state": 0,
      "sweating": 0,
      "temperature_gt_37_8": 0,
      "time_to_calm": 0,
      "tremor": 0,
      "uncoordinated_repetitive_movement": 0,
      "vomiting_retching_gagging": 0,
      "yawning_or_sneezing": 0
    },
    {
      "loose_watery_stools": 0,
      "muscle_tone": 0,
      "startle_to_touch": 0,
      "state": 0,
      "sweating": 0,
      "temperature_gt_37_8": 0,
      "time_to_calm": 0,
      "tremor": 0,
      "uncoordinated_repetitive_movement": 0,
      "vomiting_retching_gagging": 0,
      "yawning_or_sneezing": 0
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
itemsarray of objectYes

Example response

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

Example response, 174 lines
{
  "count": 2,
  "items": [
    {
      "citation": {
        "authors": "Franck LS, Harris SK, Soetenga DJ, Amling JK, Curley MAQ",
        "doi": "10.1097/PCC.0b013e31818c8328",
        "id": "franck-2008",
        "pmid": "18838937",
        "source": "Pediatr Crit Care Med. 2008;9(6):573-580",
        "title": "The Withdrawal Assessment Tool-1 (WAT-1): an assessment instrument for monitoring opioid and benzodiazepine withdrawal symptoms in pediatric patients"
      },
      "components": [
        {
          "factor": "loose_watery_stools",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "vomiting_retching_gagging",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "temperature_gt_37_8",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "state",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "tremor",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "sweating",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "uncoordinated_repetitive_movement",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "yawning_or_sneezing",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "startle_to_touch",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "muscle_tone",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "time_to_calm",
          "points": 0,
          "present": true,
          "value": 0
        }
      ],
      "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": "wat_1",
      "formula_expression": "WAT-1 = loose_watery_stools + vomiting_retching_gagging + temperature_gt_37_8 + state + tremor + sweating + uncoordinated_repetitive_movement + yawning_or_sneezing + startle_to_touch + muscle_tone + time_to_calm; ten signs 0 or 1; time_to_calm 0, 1, or 2; Franck 2008 Table 4; max 12; wat1_ge_3 iff total >= 3",
      "max_score": 12,
      "score": 0,
      "wat1_ge_3": false
    },
    {
      "citation": {
        "authors": "Franck LS, Harris SK, Soetenga DJ, Amling JK, Curley MAQ",
        "doi": "10.1097/PCC.0b013e31818c8328",
        "id": "franck-2008",
        "pmid": "18838937",
        "source": "Pediatr Crit Care Med. 2008;9(6):573-580",
        "title": "The Withdrawal Assessment Tool-1 (WAT-1): an assessment instrument for monitoring opioid and benzodiazepine withdrawal symptoms in pediatric patients"
      },
      "components": [
        {
          "factor": "loose_watery_stools",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "vomiting_retching_gagging",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "temperature_gt_37_8",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "state",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "tremor",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "sweating",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "uncoordinated_repetitive_movement",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "yawning_or_sneezing",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "startle_to_touch",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "muscle_tone",
          "points": 0,
          "present": true,
          "value": 0
        },
        {
          "factor": "time_to_calm",
          "points": 0,
          "present": true,
          "value": 0
        }
      ],
      "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": "wat_1",
      "formula_expression": "WAT-1 = loose_watery_stools + vomiting_retching_gagging + temperature_gt_37_8 + state + tremor + sweating + uncoordinated_repetitive_movement + yawning_or_sneezing + startle_to_touch + muscle_tone + time_to_calm; ten signs 0 or 1; time_to_calm 0, 1, or 2; Franck 2008 Table 4; max 12; wat1_ge_3 iff total >= 3",
      "max_score": 12,
      "score": 0,
      "wat1_ge_3": false
    }
  ],
  "path": "/api/calc/wat_1"
}

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/wat_1' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"loose_watery_stools":0,"muscle_tone":0,"startle_to_touch":0,"state":0,"sweating":0,"temperature_gt_37_8":0,"time_to_calm":0,"tremor":0,"uncoordinated_repetitive_movement":0,"vomiting_retching_gagging":0,"yawning_or_sneezing":0},{"loose_watery_stools":0,"muscle_tone":0,"startle_to_touch":0,"state":0,"sweating":0,"temperature_gt_37_8":0,"time_to_calm":0,"tremor":0,"uncoordinated_repetitive_movement":0,"vomiting_retching_gagging":0,"yawning_or_sneezing":0}]}'

# 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/wat_1' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"loose_watery_stools":0,"muscle_tone":0,"startle_to_touch":0,"state":0,"sweating":0,"temperature_gt_37_8":0,"time_to_calm":0,"tremor":0,"uncoordinated_repetitive_movement":0,"vomiting_retching_gagging":0,"yawning_or_sneezing":0},{"loose_watery_stools":0,"muscle_tone":0,"startle_to_touch":0,"state":0,"sweating":0,"temperature_gt_37_8":0,"time_to_calm":0,"tremor":0,"uncoordinated_repetitive_movement":0,"vomiting_retching_gagging":0,"yawning_or_sneezing":0}]}' \
  | 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.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%2Fwat_1&method=POST
const res = await pay("https://api.magentlab.com/api/calc/wat_1", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "items": [
      {
        "loose_watery_stools": 0,
        "muscle_tone": 0,
        "startle_to_touch": 0,
        "state": 0,
        "sweating": 0,
        "temperature_gt_37_8": 0,
        "time_to_calm": 0,
        "tremor": 0,
        "uncoordinated_repetitive_movement": 0,
        "vomiting_retching_gagging": 0,
        "yawning_or_sneezing": 0
      },
      {
        "loose_watery_stools": 0,
        "muscle_tone": 0,
        "startle_to_touch": 0,
        "state": 0,
        "sweating": 0,
        "temperature_gt_37_8": 0,
        "time_to_calm": 0,
        "tremor": 0,
        "uncoordinated_repetitive_movement": 0,
        "vomiting_retching_gagging": 0,
        "yawning_or_sneezing": 0
      }
    ]
  }),
});
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/wat_1",
        json={
            "items": [
                {
                    "loose_watery_stools": 0,
                    "muscle_tone": 0,
                    "startle_to_touch": 0,
                    "state": 0,
                    "sweating": 0,
                    "temperature_gt_37_8": 0,
                    "time_to_calm": 0,
                    "tremor": 0,
                    "uncoordinated_repetitive_movement": 0,
                    "vomiting_retching_gagging": 0,
                    "yawning_or_sneezing": 0,
                },
                {
                    "loose_watery_stools": 0,
                    "muscle_tone": 0,
                    "startle_to_touch": 0,
                    "state": 0,
                    "sweating": 0,
                    "temperature_gt_37_8": 0,
                    "time_to_calm": 0,
                    "tremor": 0,
                    "uncoordinated_repetitive_movement": 0,
                    "vomiting_retching_gagging": 0,
                    "yawning_or_sneezing": 0,
                },
            ],
        },
    )
    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

WhenResultHTTPTimePrice
36 min agoPassed402564 ms$0.007
5 h agoPassed402250 ms$0.007
10 h agoPassed402304 ms$0.007
15 h agoPassed402345 ms$0.007
19 h agoPassed402403 ms$0.007
Show 10 older checks
24 h agoPassed402264 ms$0.007
28 h agoPassed402301 ms$0.007
33 h agoPassed402228 ms$0.007
37 h agoPassed402155 ms$0.007
41 h agoPassed402314 ms$0.007
45 h agoPassed402252 ms$0.007
2 days agoPassed402303 ms$0.007
2 days agoPassed402154 ms$0.007
2 days agoPassed402249 ms$0.007
3 days agoPassed402342 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007