81trust / 100

Stats Summary

by Stats summary in Other

x402 APIPassing, checked 32 min ago

Compute the full descriptive-stats panel for an array of numbers in one call: count, sum, mean, median, mode, stddev (sample), variance, min, max, range, q1, q3, IQR. Beats calling 12 separate tools when you already have the array in front of you.

POST https://agent402.tools/api/stats-summary

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
194 ms typical, 194 ms slowest 5%
Last check
32 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/stats-summary" \
  -H "content-type: application/json" \
  -d '{"values":[1,2,3,4,5,6,7,8,9,10]}'
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%2Fagent402.tools%2Fapi%2Fstats-summary
const res = await pay("https://agent402.tools/api/stats-summary", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"values":[1,2,3,4,5,6,7,8,9,10]}),
});
console.log(await res.json());

Example input

{
  "values": [
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9,
    10
  ]
}

Example output

{
  "count": 10,
  "iqr": 4.5,
  "max": 10,
  "mean": 5.5,
  "median": 5.5,
  "min": 1,
  "mode": null,
  "q1": 3.25,
  "q3": 7.75,
  "range": 9,
  "stddev": 3.0277,
  "sum": 55,
  "variance": 9.1667
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
32 min agoPassed402185 ms$0.001
4 h agoPassed402194 ms$0.001
9 h agoPassed402247 ms$0.001