{"uid":"cap_fEjv03icE1btbRfO_Qnd2","slug":"brainiac-manufacturing-quality-defect-rate-calculator-35e13253","name":"BRAINIAC Manufacturing Quality Defect Rate Calculator","description":"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.","url":"https://www.brainiac.software/api/v1/manufacturing-quality/defect-rate-calculate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":120,"minLength":1}},"additionalProperties":false},"maxItems":80},"thresholds":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":80,"minLength":1},"value":{"type":"number","maximum":1,"minimum":0}},"additionalProperties":false},"maxItems":20},"inspections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"partId":{"type":"string","maxLength":80},"result":{"type":"string","maxLength":80},"batchId":{"type":"string","maxLength":80},"inspector":{"type":"string","maxLength":120},"defectCode":{"type":"string","maxLength":80},"defectText":{"type":"string","maxLength":500},"inspectedAt":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":500},"measurements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"unit":{"type":"string","maxLength":40},"value":{"type":"number","maximum":1000000000,"minimum":-1000000000},"batchId":{"type":"string","maxLength":80},"measuredAt":{"type":"string","maxLength":40},"inspectionId":{"type":"string","maxLength":80},"characteristic":{"type":"string","maxLength":120}},"additionalProperties":false},"maxItems":1000},"spcMinSample":{"type":"integer","maximum":100000,"minimum":2},"defectRateThreshold":{"type":"number","maximum":1,"minimum":0}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_m_ZuCb62JGOFWigwG4Q2H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates defect rates from manufacturing inspection data, compares against thresholds, and returns a structured nonconformance report with statistical quality findings.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Production line quality gate check","prompt":"I have JSON inspection data from today's production run across 3 batches of Widget A — can you calculate the defect rate and tell me if we're over the 5% threshold? Minimum sample should be 100 units."},{"title":"Batch nonconformance report from CSV","prompt":"Here's a CSV file of our weekly inspection logs — calculate the defect rate per batch and flag any batches that exceeded our 8% defect threshold, using a minimum sample size of 25."},{"title":"Tolerance-based quality assessment","prompt":"Run a defect rate calculation on these inspection records against our dimensional tolerance standards — upper limit 10.5mm, lower limit 9.5mm, target 10mm for the 'shaft diameter' characteristic — and tell me how many units failed and what the overall defect rate is."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:24.139Z","isFirstParty":false,"canonicalSlug":"brainiac-manufacturing-quality-defect-rate-calculator-35e13253"}