30trust / 100

Calculators Bmi Calculator

by AgentTools in Other

x402 APIFailing, checked 2 h ago

Calculate Body Mass Index from weight (kg) and height (cm), with the WHO weight category and the healthy BMI weight range for your height. Use this when an agent needs to body Mass Index with WHO category.

GET https://agenttools-hub.vercel.app/api/v1/calculators/bmi-calculator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
13.3%
Response time
286 ms typical, 286 ms slowest 5%
Last check
2 h ago: Expected HTTP 402, got 308
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/calculators/bmi-calculator?height=175&weight=70"
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%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fcalculators%2Fbmi-calculator
const res = await pay("https://agenttools-hub.vercel.app/api/v1/calculators/bmi-calculator?height=175&weight=70");
console.log(await res.json());

Example input

{
  "height": 175,
  "weight": 70
}

Example output

{
  "result": {
    "answer": "22.86",
    "answerLabel": "BMI — Healthy weight",
    "details": [
      {
        "label": "WHO category",
        "value": "Healthy weight"
      },
      {
        "label": "Healthy range for height",
        "value": "56.66–76.26 kg"
      }
    ],
    "steps": [
      "70 ÷ (1.75 m)² = 70 ÷ 3.06 = 22.86"
    ],
    "value": 22.857143
  },
  "tool": "bmi-calculator"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 30830813 ms-
6 h agoExpected HTTP 402, got 30830898 ms-
10 h agoExpected HTTP 402, got 308308111 ms-
14 h agoExpected HTTP 402, got 30830874 ms-
18 h agoExpected HTTP 402, got 30830813 ms-
23 h agoExpected HTTP 402, got 30830819 ms-
27 h agoExpected HTTP 402, got 30830815 ms-
31 h agoExpected HTTP 402, got 30830850 ms-
35 h agoExpected HTTP 402, got 308308153 ms-
39 h agoExpected HTTP 402, got 30830815 ms-
43 h agoExpected HTTP 402, got 30830819 ms-
47 h agoExpected HTTP 402, got 30830817 ms-
2 days agoExpected HTTP 402, got 30830896 ms-
2 days agoPassed402286 ms$0.002
2 days agoPassed402974 ms$0.002