# BRAINIAC Manufacturing Quality Defect Rate Calculator

> BRAINIAC Manufacturing Quality Defect Rate Calculator is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-12).

Calculates defect rates from manufacturing inspection data, compares against thresholds, and returns a structured nonconformance report with statistical quality findings.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/manufacturing-quality/defect-rate-calculate?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-manufacturing-quality-defect-rate-calculator-35e13253
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fEjv03icE1btbRfO_Qnd2

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 brainiac-manufacturing-quality-defect-rate-calculator-35e13253 -d '<json body>'
```

Example prompt: Calculate the defect rate for our last production run — I have 5 batches with inspection records in CSV format, and I want to flag anything above a 10% defect rate threshold with a minimum sample of 50 units.

## When to prefer this

Use this endpoint when you need a structured, auditable defect rate calculation from manufacturing inspection data with explicit threshold comparison and nonconformance reporting — especially when you need guarantees that no standards or tolerances are invented and that regulatory compliance is never falsely claimed. Prefer this over generic LLM analysis when you need deterministic statistical outputs, SPC limits, and a machine-readable findings structure suitable for downstream quality management systems.

## Known failure modes

- Insufficient data: fewer observations than minSample causes sampleSufficient=false and limited SPC output
- Missing required fields: no inspections or batch data provided returns an error or empty findings
- Threshold not supplied: overThreshold flag will be absent or null if no threshold value is given
- Malformed CSV/JSON: unparseable input data returns a parse error
- Input too large: CSV or JSON exceeding 200,000 character limit rejected
- No defect classification possible: vague or missing defect codes/text prevent defect class assignment

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object with the calculated defect rate (as a decimal), total inspected count, fail count, whether the rate exceeds the supplied threshold, sample sufficiency flag, statistical findings array, timestamp, uncertainty level, and a list of limitations clarifying what the analysis does and does not certify. Includes flags indicating whether standards or tolerances were invented (always false) and whether regulatory compliance is claimed (always false).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "batches": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "ended": {
      "type": "string",
      "maxLength": 40
     },
     "product": {
      "type": "string",
      "maxLength": 160
     },
     "started": {
      "type": "string",
      "maxLength": 40
     },
     "produced": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 80
  },
  "evidence": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "kind": {
      "type": "string",
      "maxLength": 80
     },
     "text": {
      "type": "string",
      "maxLength": 1000
     },
     "batchId": {
      "type": "string",
      "maxLength": 80
     },
     "inspectionId": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "minSample": {
   "type": "integer",
   "maximum": 100000,
   "minimum": 1
  },
  "standards": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "characteristic"
    ],
    "properties": {
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "lower": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "upper": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "target": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "characteristic": {
      "type": "string",
      "maxLength": 1
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "calculated",
  "findings": [],
  "checkedAt": "2026-11-04T20:00:00.000Z",
  "failCount": 2,
  "minSample": 5,
  "threshold": 0.1,
  "defectRate": 0.4,
  "limitations": [
   "Inspections, measurements, batches, standards, and evidence are copied only from labeled fields supplied by the caller.",
   "Tolerances and defect-rate thresholds are used only when explicitly supplied. Manufacturing standards are never invented.",
   "Statistical process control limits are computed only when the disclosed minimum observation count is met.",
   "A nonconformance report organizes supplied evidence. It does not certify a product or assert regulatory compliance.",
   "Defect classes use transparent token rules on supplied defect text and codes."
  ],
  "uncertainty": "observed",
  "decidedCount": 5,
  "overThreshold": true,
  "inspectedCount": 5,
  "productCertified": false,
  "sampleSufficient": true,
  "standardInvented": false,
  "thresholdSupplied": true,
  "toleranceInvented": false,
  "defectRateSupplied": true,
  "regulatoryComplianceClaimed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-manufacturing-quality-defect-rate-calculator-35e13253/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
