Series Anomaly
by HALOWERK Agent Tools in Other
Runs three detectors over one series and reports what each saw: a robust z score on median and median absolute deviation, a robust seasonal-trend decomposition with a z score on the residual, and an isolation forest over value and step-to-previous. Every score is returned per point, so callers set their own threshold instead of trusting a verdict. The forest draws from a fixed seed: same request, same result. Under three full cycles the seasonal figure is marked as not robust.
https://tools.halowerk.com/v1/series/anomaly- Price
- $0.004
- per call in USDC
- Uptime
- 99.0%
- last 30 days
- Response time
- 130 ms
- 237 ms slowest 5%
- Last check
- Passed
- 9 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://tools.halowerk.com/v1/series/anomaly
Each call costs $0.004 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://tools.halowerk.com/v1/series/anomaly
content-type: application/json
{
"contamination": 0.1,
"methods": [
"robust_z",
"isolation_forest"
],
"min_votes": 2,
"points": [
12.1,
12.4,
11.9,
12.3,
12,
12.2,
48.7,
12.1,
11.8,
12.5,
12.2,
12
],
"seed": 42
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
contamination | number | No | Expected share of outliers. Sets where the isolation forest cuts. Default: 0.02. |
methods | array of string | No | Which detectors to run. Default: ["robust_z","stl_residual","isolation_forest"]. |
min_votes | integer | No | How many detectors must agree before a point is called an anomaly. Default: 1. |
points | array | Yes | Either plain numbers or objects with value and optionally time_unix_s (seconds since 1970), time (ISO 8601) and label. The service caps the whole request body at 256 KB, so long records reach that limit before maxItems. |
robust_z_threshold | number | No | Absolute robust z score at which a point counts as an outlier. Default: 3.5. |
sample_size | integer | No | Points drawn per tree, capped at the series length. Default: 256. |
season_period | integer | No | Points per season, e.g. 24 for hourly data with a daily rhythm. 0 leaves the seasonal part out. Default: 0. |
seed | integer | No | Fixed starting value for the forest. Same seed, same answer. Default: 42. |
stl_z_threshold | number | No | Threshold on the robust z score of the residual. Default: 3.5. |
trees | integer | No | Number of isolation trees. Default: 100. |
Example response
The provider's example. We can't check it without paying.
Example response, 71 lines
{
"anomalies": [
{
"flagged_by": [
"robust_z",
"isolation_forest"
],
"index": 6,
"scores": {
"isolation_forest": 0.83,
"robust_z": 123.4
},
"time": null,
"time_unix_s": null,
"value": 48.7
}
],
"anomaly_count": 1,
"deterministic": true,
"method_details": {
"isolation_forest": {
"contamination": 0.1,
"features": [
"value",
"delta_to_previous"
],
"flagged": 2,
"sample_size": 12,
"score_cutoff": 0.71,
"seed": 42,
"trees": 100
},
"robust_z": {
"flagged": 1,
"median": 12.15,
"scale": 0.29652,
"scale_basis": "mad",
"threshold": 3.5
}
},
"methods": [
"robust_z",
"isolation_forest"
],
"min_votes": 2,
"point_count": 12,
"points": [
{
"flagged_by": [],
"index": 0,
"is_anomaly": false,
"label": null,
"scores": {
"isolation_forest": 0.42,
"robust_z": -0.169
},
"time": null,
"time_unix_s": null,
"value": 12.1
}
],
"seed": 42,
"stateless": true,
"statistics": {
"max": 48.7,
"mean": 15.016667,
"median": 12.15,
"min": 11.8,
"stddev": 10.593
}
}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.004.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tools.halowerk.com/v1/series/anomaly' \
-H 'content-type: application/json' \
--data-raw '{"contamination":0.1,"methods":["robust_z","isolation_forest"],"min_votes":2,"points":[12.1,12.4,11.9,12.3,12,12.2,48.7,12.1,11.8,12.5,12.2,12],"seed":42}'
# 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://tools.halowerk.com/v1/series/anomaly' \
-H 'content-type: application/json' \
--data-raw '{"contamination":0.1,"methods":["robust_z","isolation_forest"],"min_votes":2,"points":[12.1,12.4,11.9,12.3,12,12.2,48.7,12.1,11.8,12.5,12.2,12],"seed":42}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: 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.004 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.004" });
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.004 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftools.halowerk.com%2Fv1%2Fseries%2Fanomaly&method=POST
const res = await pay("https://tools.halowerk.com/v1/series/anomaly", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"contamination": 0.1,
"methods": [
"robust_z",
"isolation_forest"
],
"min_votes": 2,
"points": [
12.1,
12.4,
11.9,
12.3,
12,
12.2,
48.7,
12.1,
11.8,
12.5,
12.2,
12
],
"seed": 42
}),
});
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.004 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.004"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://tools.halowerk.com/v1/series/anomaly",
json={
"contamination": 0.1,
"methods": [
"robust_z",
"isolation_forest",
],
"min_votes": 2,
"points": [
12.1,
12.4,
11.9,
12.3,
12,
12.2,
48.7,
12.1,
11.8,
12.5,
12.2,
12,
],
"seed": 42,
},
)
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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 9 h ago | Passed | 402 | 137 ms | $0.004 |
| 20 h ago | Passed | 402 | 150 ms | $0.004 |
| 31 h ago | Passed | 402 | 290 ms | $0.004 |
| 41 h ago | Passed | 402 | 128 ms | $0.004 |
| 2 days ago | Passed | 402 | 127 ms | $0.004 |
Show 10 older checks
| 3 days ago | Passed | 402 | 123 ms | $0.004 |
| 3 days ago | Passed | 402 | 125 ms | $0.004 |
| 5 days ago | Timed out | - | - | - |
| 6 days ago | Passed | 402 | 141 ms | $0.004 |
| 7 days ago | Passed | 402 | 139 ms | $0.004 |
| 7 days ago | Passed | 402 | 135 ms | $0.004 |
| 8 days ago | Passed | 402 | 41 ms | $0.004 |
| 8 days ago | Passed | 402 | 173 ms | $0.004 |
| 8 days ago | Passed | 402 | 40 ms | $0.004 |
| 9 days ago | Passed | 402 | 126 ms | $0.004 |