{
  "x402Version": 2,
  "id": 28583,
  "slug": "28583",
  "resource": "https://tools.halowerk.com/v1/series/anomaly",
  "description": "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.",
  "type": "http",
  "serviceName": "HALOWERK Agent Tools",
  "resourceType": "Research",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "4000",
      "amountUsd": 0.004,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "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
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "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
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "contamination": {
                    "default": 0.02,
                    "description": "Expected share of outliers. Sets where the isolation forest cuts.",
                    "maximum": 0.5,
                    "minimum": 0.0001,
                    "type": "number"
                  },
                  "methods": {
                    "default": [
                      "robust_z",
                      "stl_residual",
                      "isolation_forest"
                    ],
                    "description": "Which detectors to run.",
                    "items": {
                      "enum": [
                        "robust_z",
                        "stl_residual",
                        "isolation_forest"
                      ],
                      "type": "string"
                    },
                    "maxItems": 3,
                    "minItems": 1,
                    "type": "array"
                  },
                  "min_votes": {
                    "default": 1,
                    "description": "How many detectors must agree before a point is called an anomaly.",
                    "maximum": 3,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "points": {
                    "description": "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.",
                    "maxItems": 5000,
                    "minItems": 3,
                    "type": "array"
                  },
                  "robust_z_threshold": {
                    "default": 3.5,
                    "description": "Absolute robust z score at which a point counts as an outlier.",
                    "maximum": 20,
                    "minimum": 0.5,
                    "type": "number"
                  },
                  "sample_size": {
                    "default": 256,
                    "description": "Points drawn per tree, capped at the series length.",
                    "maximum": 1024,
                    "minimum": 8,
                    "type": "integer"
                  },
                  "season_period": {
                    "default": 0,
                    "description": "Points per season, e.g. 24 for hourly data with a daily rhythm. 0 leaves the seasonal part out.",
                    "maximum": 1000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "seed": {
                    "default": 42,
                    "description": "Fixed starting value for the forest. Same seed, same answer.",
                    "maximum": 2147483647,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "stl_z_threshold": {
                    "default": 3.5,
                    "description": "Threshold on the robust z score of the residual.",
                    "maximum": 20,
                    "minimum": 0.5,
                    "type": "number"
                  },
                  "trees": {
                    "default": 100,
                    "description": "Number of isolation trees.",
                    "maximum": 300,
                    "minimum": 10,
                    "type": "integer"
                  }
                },
                "required": [
                  "points"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "x402",
    "agent-tools",
    "analysis",
    "series_anomaly",
    "bazaar"
  ],
  "sourceHost": "tools.halowerk.com",
  "lastUpdated": "2026-10-08T06:07:49.503Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:07:49.291Z"
  },
  "metadata": {
    "serviceName": "HALOWERK Agent Tools",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "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
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "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
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "contamination": {
                      "default": 0.02,
                      "description": "Expected share of outliers. Sets where the isolation forest cuts.",
                      "maximum": 0.5,
                      "minimum": 0.0001,
                      "type": "number"
                    },
                    "methods": {
                      "default": [
                        "robust_z",
                        "stl_residual",
                        "isolation_forest"
                      ],
                      "description": "Which detectors to run.",
                      "items": {
                        "enum": [
                          "robust_z",
                          "stl_residual",
                          "isolation_forest"
                        ],
                        "type": "string"
                      },
                      "maxItems": 3,
                      "minItems": 1,
                      "type": "array"
                    },
                    "min_votes": {
                      "default": 1,
                      "description": "How many detectors must agree before a point is called an anomaly.",
                      "maximum": 3,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "points": {
                      "description": "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.",
                      "maxItems": 5000,
                      "minItems": 3,
                      "type": "array"
                    },
                    "robust_z_threshold": {
                      "default": 3.5,
                      "description": "Absolute robust z score at which a point counts as an outlier.",
                      "maximum": 20,
                      "minimum": 0.5,
                      "type": "number"
                    },
                    "sample_size": {
                      "default": 256,
                      "description": "Points drawn per tree, capped at the series length.",
                      "maximum": 1024,
                      "minimum": 8,
                      "type": "integer"
                    },
                    "season_period": {
                      "default": 0,
                      "description": "Points per season, e.g. 24 for hourly data with a daily rhythm. 0 leaves the seasonal part out.",
                      "maximum": 1000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "seed": {
                      "default": 42,
                      "description": "Fixed starting value for the forest. Same seed, same answer.",
                      "maximum": 2147483647,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "stl_z_threshold": {
                      "default": 3.5,
                      "description": "Threshold on the robust z score of the residual.",
                      "maximum": 20,
                      "minimum": 0.5,
                      "type": "number"
                    },
                    "trees": {
                      "default": 100,
                      "description": "Number of isolation trees.",
                      "maximum": 300,
                      "minimum": 10,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "points"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "tools.halowerk.com",
    "manifest_name": "tools.halowerk.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}