# Token Rule-Flag Fraction — Weighted Result Mean

> Token Rule-Flag Fraction — Weighted Result Mean 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 the weighted mean of the flagged-rules fraction (flagged_rules / evaluated_rules) across multiple token observations supplied by the caller.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-flag-share-weighted-mean?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/token-rule-flag-fraction-weighted-result-mean-c63b3597
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hjkWMkbdRxVogXcugog4m

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 token-rule-flag-fraction-weighted-result-mean-c63b3597 -d '<json body>'
```

Example prompt: Calculate the weighted mean of my token rule-flag fractions across these four observations: rows with (2 flagged out of 10), (2.2 flagged out of 11), (2 flagged out of 10), (2.2 flagged out of 11), using weights 1, 2, 1, 2.

## When to prefer this

Use this endpoint when you need a deterministic, weighted average of rule-flag fractions across multiple token or compliance observations and want a single aggregated mean rather than per-row results. Prefer it when you already have structured rows of (flagged_rules, evaluated_rules) counts and custom weights to apply. It is not suitable for live scanning, real-time safety assessment, or trade recommendations.

## Known failure modes

- Fewer than 2 rows supplied — minItems validation error
- Weight array length does not match rows array length — schema mismatch error
- evaluated_rules value of 0 in any row — violates exclusiveMinimum constraint and causes rejection
- Row count exceeds 200 — maxItems validation error
- Non-numeric or negative values in flagged_rules or evaluated_rules — schema validation error

## How this service works

Token supplied rule-flag fraction — Weighted result mean: Weighted result mean for Token supplied rule-flag fraction. Supplied token observations only. Deterministic calculation or caller-threshold verdict, not a live scan, safety proof or trade recommendation. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded weighted result mean report.

## Output

A single weighted mean value representing the average fraction of flagged rules out of evaluated rules across all supplied observation rows, computed deterministically using the provided weights. The report reflects a bounded statistical summary, not a live scan or safety verdict.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "flagged_rules",
     "evaluated_rules"
    ],
    "properties": {
     "flagged_rules": {
      "type": "number",
      "default": 2,
      "maximum": 10000000000000000,
      "minimum": 0
     },
     "evaluated_rules": {
      "type": "number",
      "default": 10,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "flagged_rules": 2,
     "evaluated_rules": 10
    },
    {
     "flagged_rules": 2.2,
     "evaluated_rules": 11
    },
    {
     "flagged_rules": 2,
     "evaluated_rules": 10
    },
    {
     "flagged_rules": 2.2,
     "evaluated_rules": 11
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": 0
   },
   "default": [
    1,
    2,
    1,
    2
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-rule-flag-fraction-weighted-result-mean-c63b3597/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)
