# Validation Rule Results — Secondary-Measure Weighted Mean + Keyed Dataset Comparison

> Validation Rule Results — Secondary-Measure Weighted Mean + Keyed Dataset Comparison is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Computes a secondary-measure weighted mean and performs a keyed dataset comparison on validation rule results records (passed_rules, total_rules) for up to 200 rows across two independent reports.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-analytics-08-186?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/validation-rule-results-secondary-measure-weighted-mean-keyed-dataset-0514b887
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LghC1BilAkFLlo3a0Wxg1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability validation-rule-results-secondary-measure-weighted-mean-keyed-dataset-0514b887 -d '<json body>'
```

Example prompt: Can you compute the weighted mean of passed_rules (weighted by total_rules) and compare two sets of validation rule results — here's dataset A with rows for group-a and group-b from 2026-10-01 to 2026-10-04, and here's dataset B with the same rows but slightly different passed_rules values — I want both reports in one call.

## When to prefer this

Choose this endpoint when you need both a weighted mean computation and a keyed dataset comparison on validation rule results in a single call, especially for data quality monitoring workflows where passed_rules and total_rules are the core metrics. It is well-suited for batch analytical jobs on up to 200 rows where no external data lookup or live prediction is required and the $0.01 flat fee covers both reports.

## Known failure modes

- Input array exceeds 200 rows — request will be rejected or truncated
- Missing required fields (row_id, dataset_group, date, passed_rules, total_rules) cause validation errors
- Null values in passed_rules or total_rules may affect weighted mean calculation
- Date strings not matching YYYY-MM-DD pattern will fail schema validation
- Empty rows array (minItems:1 violated) returns an error
- Mismatched row_ids between primary and comparison dataset may reduce keyed comparison coverage

## How this service works

Validation rule results — Secondary-measure weighted mean + Keyed dataset comparison: Secondary-measure weighted mean + Keyed dataset comparison for supplied validation rule results records (passed_rules, total_rules). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two independent analytical reports: (1) a secondary-measure weighted mean of the selected field (passed_rules or total_rules), weighted by the complementary measure, and (2) a keyed dataset comparison between the primary and secondary supplied datasets, both computed locally without external lookups. Results cover up to 200 rows of input data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "dataset_group",
     "date",
     "passed_rules",
     "total_rules"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "total_rules": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "passed_rules": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "dataset_group": {
      "type": "string",
      "default": "",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "total_rules": 1,
     "passed_rules": 10,
     "dataset_group": "group-a"
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "total_rules": 2,
     "passed_rules": 20,
     "dataset_group": "group-b"
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "total_rules": 3,
     "passed_rules": 15,
     "dataset_group": "group-a"
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "total_rules": 4,
     "passed_rules": 30,
     "dataset_group": "group-b"
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "passed_rules",
    "total_rules"
   ],
   "type": "string",
   "default": "passed_rules"
  },
  "other": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "dataset_group",
     "date",
     "passed_rules",
     "total_rules"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "total_rules": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "passed_rules": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "dataset_group": {
      "type": "string",
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/validation-rule-results-secondary-measure-weighted-mean-keyed-dataset-0514b887/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
