75trust / 100

Calc Finnegan

by magent in Other

x402 APIPassing, checked 23 min ago

Modified Finnegan NAS from Maguire 2013 Table 1 (operational modified FNAS; not a 31-item website variant; not Maguire's 7-item short form). Exclusive cry, sleep, Moro, tremor, fever, respiratory, and stool bands plus true/false CNS, vasomotor, and GI items. Sum 0-46. at_or_above_8 iff score >= 8. magent does not examine the infant. Not Eat Sleep Console. Not a morphine order, diagnosis, or medical device.

GET
https://api.magentlab.com/api/calc/finnegan
Price
$0.005
per call in USDC
Uptime
100%
last 30 days
Response time
233 ms
3.4 s slowest 5%
Last check
Passed
23 min ago, next in 6 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/finnegan

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/finnegan?crying=none&excessive_sucking=false&excoriation=false&fever=none&frequent_yawning=false&generalized_convulsions=false&increased_muscle_tone=false&moro=none&mottling=false&myoclonic_jerk=false&nasal_flaring=false&nasal_stuffiness=false&poor_feeding=false&projectile_vomiting=false&regurgitation=false&respiratory=none&sleep=none&sneezing=false&stools=none&sweating=false&tremors=none

Parameters

ParameterTypeRequiredDescription
cryingstringYesCaller-assigned Maguire 2013 Table 1 crying (none, excessive_high_pitched, or continuous_high_pitched). Exclusive. none 0, excessive_high_pitched 2, continuous_high_pitched 3. magent does not examine the infant. One of: none, excessive_high_pitched, continuous_high_pitched.
excessive_suckingbooleanYesCaller-assigned Maguire 2013 Table 1 excessive sucking. true scores 1. magent does not observe feeding.
excoriationbooleanYesCaller-assigned Maguire 2013 Table 1 excoriation. Single item (not per-site nose, knees, or toes). true scores 1. magent does not inspect the skin.
feverstringYesCaller-assigned Maguire 2013 Table 1 fever (none, lt_101f, or gt_101f). Exclusive. Maguire <101°F scores 1; >101°F scores 2. magent does not take a temperature. One of: none, lt_101f, gt_101f.
frequent_yawningbooleanYesCaller-assigned Maguire 2013 Table 1 frequent yawning (>3). true scores 1. magent does not observe yawning.
generalized_convulsionsbooleanYesCaller-assigned Maguire 2013 Table 1 generalized convulsions. true scores 5. magent does not examine the infant. Not a seizure diagnosis.
increased_muscle_tonebooleanYesCaller-assigned Maguire 2013 Table 1 increased muscle tone. true scores 2. magent does not examine the infant.
morostringYesCaller-assigned Maguire 2013 Table 1 Moro reflex (none, hyperactive, or markedly_hyperactive). Exclusive. hyperactive 2, markedly_hyperactive 3. magent does not examine the infant. One of: none, hyperactive, markedly_hyperactive.
mottlingbooleanYesCaller-assigned Maguire 2013 Table 1 mottling. true scores 1. magent does not examine the infant.
myoclonic_jerkbooleanYesCaller-assigned Maguire 2013 Table 1 myoclonic jerks. true scores 3. magent does not examine the infant.
nasal_flaringbooleanYesCaller-assigned Maguire 2013 Table 1 nasal flaring. true scores 2. magent does not examine the infant.
nasal_stuffinessbooleanYesCaller-assigned Maguire 2013 Table 1 nasal stuffiness. true scores 1. magent does not examine the infant.
poor_feedingbooleanYesCaller-assigned Maguire 2013 Table 1 poor feeding. true scores 2. magent does not observe feeding.
projectile_vomitingbooleanYesCaller-assigned Maguire 2013 Table 1 projectile vomiting. true scores 3. magent does not observe feeding.
regurgitationbooleanYesCaller-assigned Maguire 2013 Table 1 regurgitation. true scores 2. magent does not observe feeding.
respiratorystringYesCaller-assigned Maguire 2013 Table 1 respiratory rate (none, gt_60, or gt_60_retractions). Exclusive. Rate >60/min scores 1; >60 with retractions scores 2. magent does not count respirations. One of: none, gt_60, gt_60_retractions.
sleepstringYesCaller-assigned Maguire 2013 Table 1 sleep after feeding (none, lt_3h, lt_2h, or lt_1h). Exclusive. Sleeps less than 3/2/1 h after feeding: lt_3h 1, lt_2h 2, lt_1h 3. magent does not observe sleep. One of: none, lt_3h, lt_2h, lt_1h.
sneezingbooleanYesCaller-assigned Maguire 2013 Table 1 sneezing (>3). true scores 1. magent does not count sneezes.
stoolsstringYesCaller-assigned Maguire 2013 Table 1 stools (none, loose, or watery). Exclusive. loose 2, watery 3. magent does not inspect stools. One of: none, loose, watery.
sweatingbooleanYesCaller-assigned Maguire 2013 Table 1 sweating. true scores 1. magent does not examine the infant.
tremorsstringYesCaller-assigned Maguire 2013 Table 1 tremors (none, mild_disturbed, moderate_severe_disturbed, mild_undisturbed, or moderate_severe_undisturbed). Exclusive. mild_disturbed 1, moderate_severe_disturbed 2, mild_undisturbed 3, moderate_severe_undisturbed 4. magent does not examine the infant. One of: none, mild_disturbed, moderate_severe_disturbed, mild_undisturbed, moderate_severe_undisturbed.

Example response

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

Example response, 123 lines
{
  "at_or_above_8": false,
  "citation": {
    "authors": "Finnegan LP, Connaughton JF Jr, Kron RE, Emich JP",
    "id": "finnegan-1975",
    "pmid": "1163358",
    "source": "Addict Dis. 1975;2(1-2):141-158",
    "title": "Neonatal abstinence syndrome: assessment and management"
  },
  "components": [
    {
      "factor": "crying",
      "points": 0,
      "present": false,
      "value": "none"
    },
    {
      "factor": "sleep",
      "points": 0,
      "present": false,
      "value": "none"
    },
    {
      "factor": "moro",
      "points": 0,
      "present": false,
      "value": "none"
    },
    {
      "factor": "tremors",
      "points": 0,
      "present": false,
      "value": "none"
    },
    {
      "factor": "increased_muscle_tone",
      "points": 0,
      "present": false
    },
    {
      "factor": "myoclonic_jerk",
      "points": 0,
      "present": false
    },
    {
      "factor": "generalized_convulsions",
      "points": 0,
      "present": false
    },
    {
      "factor": "excoriation",
      "points": 0,
      "present": false
    },
    {
      "factor": "sweating",
      "points": 0,
      "present": false
    },
    {
      "factor": "fever",
      "points": 0,
      "present": false,
      "value": "none"
    },
    {
      "factor": "frequent_yawning",
      "points": 0,
      "present": false
    },
    {
      "factor": "mottling",
      "points": 0,
      "present": false
    },
    {
      "factor": "nasal_stuffiness",
      "points": 0,
      "present": false
    },
    {
      "factor": "sneezing",
      "points": 0,
      "present": false
    },
    {
      "factor": "nasal_flaring",
      "points": 0,
      "present": false
    },
    {
      "factor": "respiratory",
      "points": 0,
      "present": false,
      "value": "none"
    },
    {
      "factor": "excessive_sucking",
      "points": 0,
      "present": false
    },
    {
      "factor": "poor_feeding",
      "points": 0,
      "present": false
    },
    {
      "factor": "regurgitation",
      "points": 0,
      "present": false
    },
    {
      "factor": "projectile_vomiting",
      "points": 0,
      "present": 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": "finnegan",
  "formula_expression": "FNAS = crying + sleep + moro + tremors + increased_muscle_tone + myoclonic_jerk + generalized_convulsions + excoriation + sweating + fever + frequent_yawning + mottling + nasal_stuffiness + sneezing + nasal_flaring + respiratory + excessive_sucking + poor_feeding + regurgitation + projectile_vomiting + stools; Maguire 2013 Table 1 modified Finnegan (exclusive cry/sleep/moro/tremors/fever/respiratory/stools; remaining items true/false); max 46; at_or_above_8 iff total >= 8 (Zimmermann-Baer / Maguire suspicion and pharmacologic-treatment threshold). Not Eat Sleep Console. Not Maguire 7-item short form. magent does not examine the infant. Not a morphine order.",
  "max_score": 46,
  "score": 0
}

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/finnegan?crying=none&excessive_sucking=false&excoriation=false&fever=none&frequent_yawning=false&generalized_convulsions=false&increased_muscle_tone=false&moro=none&mottling=false&myoclonic_jerk=false&nasal_flaring=false&nasal_stuffiness=false&poor_feeding=false&projectile_vomiting=false&regurgitation=false&respiratory=none&sleep=none&sneezing=false&stools=none&sweating=false&tremors=none'

# 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/finnegan?crying=none&excessive_sucking=false&excoriation=false&fever=none&frequent_yawning=false&generalized_convulsions=false&increased_muscle_tone=false&moro=none&mottling=false&myoclonic_jerk=false&nasal_flaring=false&nasal_stuffiness=false&poor_feeding=false&projectile_vomiting=false&regurgitation=false&respiratory=none&sleep=none&sneezing=false&stools=none&sweating=false&tremors=none' \
  | 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%2Ffinnegan
const res = await pay("https://api.magentlab.com/api/calc/finnegan?crying=none&excessive_sucking=false&excoriation=false&fever=none&frequent_yawning=false&generalized_convulsions=false&increased_muscle_tone=false&moro=none&mottling=false&myoclonic_jerk=false&nasal_flaring=false&nasal_stuffiness=false&poor_feeding=false&projectile_vomiting=false&regurgitation=false&respiratory=none&sleep=none&sneezing=false&stools=none&sweating=false&tremors=none");
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/finnegan?crying=none&excessive_sucking=false&excoriation=false&fever=none&frequent_yawning=false&generalized_convulsions=false&increased_muscle_tone=false&moro=none&mottling=false&myoclonic_jerk=false&nasal_flaring=false&nasal_stuffiness=false&poor_feeding=false&projectile_vomiting=false&regurgitation=false&respiratory=none&sleep=none&sneezing=false&stools=none&sweating=false&tremors=none")
    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
23 min agoPassed402169 ms$0.005
11 h agoPassed402299 ms$0.005
21 h agoPassed402173 ms$0.005
31 h agoPassed402155 ms$0.005
40 h agoPassed402313 ms$0.005
Show 6 older checks
2 days agoPassed402273 ms$0.005
2 days agoPassed402319 ms$0.005
3 days agoPassed402168 ms$0.005
3 days agoPassed4023.4 s$0.005
4 days agoPassed402233 ms$0.005
4 days agoPassed402179 ms$0.005