# Token Rule-Flag Fraction Before/After Comparison

> Token Rule-Flag Fraction Before/After 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-12).

Computes and compares the fraction of flagged rules to evaluated rules for a token, returning a before-and-after delta report.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-token-flag-share-compare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-rule-flag-fraction-before-after-comparison-f9401a2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VN06fflAobCOalKCqGVPp

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-before-after-comparison-f9401a2f -d '<json body>'
```

Example prompt: Compare my token's rule-flag fraction: before the update it had 2 flagged rules out of 10 evaluated, and after it has 2.2 flagged rules out of 11 evaluated — give me a before-and-after comparison report.

## When to prefer this

Use this endpoint when you need a quick, deterministic, low-cost ($0.01 USDC) point-in-time comparison of a token's rule-flag fraction across two snapshots (before and after). It is not a live scan or safety proof — prefer it for auditing the impact of rule changes, policy updates, or remediation efforts on a token's flagged-rule ratio, rather than for real-time monitoring or comprehensive token security analysis.

## Known failure modes

- evaluated_rules is 0 or missing — division by zero, request rejected
- flagged_rules or evaluated_rules exceeds maximum bound (10^16) — validation error
- Missing required before or after object — 400 bad request
- Non-numeric values for rule counts — schema validation failure
- Payment not included or insufficient — x402 payment required error

## How this service works

Token supplied rule-flag fraction — Before and after comparison: Before and after comparison 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 before and after comparison report.

## Output

Returns a structured before-and-after comparison report containing the rule-flag fraction (flagged_rules / evaluated_rules) for both the before and after snapshots, the delta between them, and a deterministic verdict or threshold-based assessment indicating whether the fraction improved, worsened, or stayed the same.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "flagged_rules": 2.2,
    "evaluated_rules": 11
   },
   "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
  },
  "before": {
   "type": "object",
   "default": {
    "flagged_rules": 2,
    "evaluated_rules": 10
   },
   "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-rule-flag-fraction-before-after-comparison-f9401a2f/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)
