Api Endpoint

HALOWERK Agent Tools

Reads one conversion experiment two ways at once. Frequentist: two-proportion test, p value, confidence interval on the absolute lift, and the sample size the requested minimum detectable effect needs at the requested power. Bayesian: Beta-Binomial posteriors, probability the variant is better, expected loss either way, credible intervals - closed form, not sampled, so the numbers repeat exactly. looks_taken carries the adjusted threshold and the rate you actually ran at.

Open interactive test console

Offering

Provider
tools.halowerk.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://tools.halowerk.com/v1/abtest/evaluate
MIME type
application/json
First seen
2026-10-16T01:50:10.647Z
Last seen
Tags
X402, agent-tools, Analysis, abtest_evaluate

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E"
  }
]

Observed health

Status
Healthy
Latest latency
1299 ms
Average latency
805 ms
HTTP status
204
Last checked
Reachability
100% over 10 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "required": [
        "control",
        "variant"
      ],
      "properties": {
        "control": {
          "type": "object",
          "required": [
            "visitors",
            "conversions"
          ],
          "properties": {
            "visitors": {
              "type": "integer",
              "minimum": 1
            },
            "conversions": {
              "type": "integer",
              "minimum": 0
            }
          },
          "description": "Baseline group. conversions may not exceed visitors."
        },
        "variant": {
          "type": "object",
          "required": [
            "visitors",
            "conversions"
          ],
          "properties": {
            "visitors": {
              "type": "integer",
              "minimum": 1
            },
            "conversions": {
              "type": "integer",
              "minimum": 0
            }
          },
          "description": "Group under test. conversions may not exceed visitors."
        },
        "confidence_level": {
          "type": "number",
          "minimum": 0.5,
          "maximum": 0.9999,
          "default": 0.95
        },
        "alternative": {
          "type": "string",
          "enum": [
            "two_sided",
            "greater"
          ],
          "default": "two_sided",
          "description": "two_sided asks whether the groups differ, greater whether the variant is above the control."
        },
        "minimum_detectable_effect_rel": {
          "type": "number",
          "minimum": 0.001,
          "maximum": 5,
          "default": 0.1,
          "description": "Relative effect the test should be able to find, e.g. 0.1 for ten percent above the control rate."
        },
        "power": {
          "type": "number",
          "minimum": 0.5,
          "maximum": 0.999,
          "default": 0.8,
          "description": "Probability of finding that effect if it is there."
        },
        "looks_taken": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 1,
          "description": "How often the running test has been evaluated. Above 1 the threshold is adjusted and the real false positive rate is reported."
        },
        "prior_alpha": {
          "type": "number",
          "minimum": 0.0001,
          "maximum": 1000,
          "default": 1,
          "description": "Beta prior, successes. 1 with prior_beta 1 is uniform."
        },
        "prior_beta": {
          "type": "number",
          "minimum": 0.0001,
          "maximum": 1000,
          "default": 1,
          "description": "Beta prior, failures."
        }
      }
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "alternative": {
              "default": "two_sided",
              "description": "two_sided asks whether the groups differ, greater whether the variant is above the control.",
              "enum": [
                "two_sided",
                "greater"
              ],
              "type": "string"
            },
            "confidence_level": {
              "default": 0.95,
              "maximum": 0.9999,
              "minimum": 0.5,
              "type": "number"
            },
            "control": {
              "description": "Baseline group. conversions may not exceed visitors.",
              "properties": {
                "conversions": {
                  "minimum": 0,
                  "type": "integer"
                },
                "visitors": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "visitors",
                "conversions"
              ],
              "type": "object"
            },
            "looks_taken": {
              "default": 1,
              "description": "How often the running test has been evaluated. Above 1 the threshold is adjusted and the real false positive rate is reported.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "minimum_detectable_effect_rel": {
              "default": 0.1,
              "description": "Relative effect the test should be able to find, e.g. 0.1 for ten percent above the control rate.",
              "maximum": 5,
              "minimum": 0.001,
              "type": "number"
            },
            "power": {
              "default": 0.8,
              "description": "Probability of finding that effect if it is there.",
              "maximum": 0.999,
              "minimum": 0.5,
              "type": "number"
            },
            "prior_alpha": {
              "default": 1,
              "description": "Beta prior, successes. 1 with prior_beta 1 is uniform.",
              "maximum": 1000,
              "minimum": 0.0001,
              "type": "number"
            },
            "prior_beta": {
              "default": 1,
              "description": "Beta prior, failures.",
              "maximum": 1000,
              "minimum": 0.0001,
              "type": "number"
            },
            "variant": {
              "description": "Group under test. conversions may not exceed visitors.",
              "properties": {
                "conversions": {
                  "minimum": 0,
                  "type": "integer"
                },
                "visitors": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "visitors",
                "conversions"
              ],
              "type": "object"
            }
          },
          "required": [
            "control",
            "variant"
          ],
          "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"
}