{"uid":"cap_942DCSR636UIragLA50ZR","slug":"brainiac-manufacturing-quality-batch-compare-2afe0609","name":"BRAINIAC Manufacturing Quality Batch Compare","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/batch-compare?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":"compared","batches":[{"batchId":"B-1","product":"Widget","produced":100,"failCount":1,"threshold":0.2,"defectRate":0.3333,"uncertainty":"observed","decidedCount":3,"overThreshold":true,"inspectedCount":3,"producedSupplied":true,"productCertified":false,"sampleSufficient":true,"thresholdSupplied":true,"defectRateSupplied":true,"regulatoryComplianceClaimed":false},{"batchId":"B-2","product":"Widget","produced":100,"failCount":0,"threshold":0.2,"defectRate":0,"uncertainty":"observed","decidedCount":3,"overThreshold":false,"inspectedCount":3,"producedSupplied":true,"productCertified":false,"sampleSufficient":true,"thresholdSupplied":true,"defectRateSupplied":true,"regulatoryComplianceClaimed":false}],"findings":[],"checkedAt":"2026-11-04T20:00:00.000Z","minSample":3,"comparisons":[{"compared":true,"leftRate":0.3333,"minSample":3,"rightRate":0,"leftBatchId":"B-1","rightBatchId":"B-2","rateDifference":0.3333}],"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."],"productCertified":false,"standardInvented":false,"toleranceInvented":false,"regulatoryComplianceClaimed":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PNawm1PcI_jUmlv55E8IO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares defect rates across multiple manufacturing batches against supplied thresholds and standards, returning per-batch pass/fail verdicts and cross-batch comparisons without inventing tolerances or certifications.","exampleAgentPrompt":"Compare the defect rates for our Widget batches B-1 (100 units, 3 inspected, 1 failed) and B-2 (100 units, 3 inspected, 0 failed) against a defect threshold of 0.2 — tell me which batches are over threshold and how the rates differ.","exampleUseCases":[{"title":"Production line defect rate comparison","prompt":"I have two production runs for our Widget product this week — Batch A had 500 units produced with 12 defects found across 50 inspections, and Batch B had 480 units with 2 defects across 50 inspections. Use a defect threshold of 0.05 and a minimum sample of 30. Which batch fails and what's the difference in defect rates?"},{"title":"Multi-batch quality audit with standards","prompt":"Run a quality comparison across our last four batches for the aluminum housing product. Batch IDs are MFG-101 through MFG-104, each with 1000 units produced. I'll give you the inspection CSV — flag any batch over a 0.1 defect threshold and show me the pairwise rate differences."},{"title":"Supplier batch qualification check","prompt":"We're qualifying two supplier batches before accepting delivery — Supplier A batch SA-22 (200 units, 8 inspected, 1 fail) and Supplier B batch SB-07 (200 units, 8 inspected, 0 fails). Set the defect threshold to 0.15 and minimum sample to 5. Tell me if either batch is disqualified and what the confidence level is."}],"resultDescription":"Returns a JSON object with status 'compared', an array of per-batch results including defect rate, fail count, inspected count, over-threshold flag, sample sufficiency, and product certification status, plus a comparisons array showing pairwise defect rate differences between batches. Also includes a findings array, a checkedAt timestamp, and a limitations array explicitly stating what was and was not invented or assumed.","failureModes":["Insufficient inspection data: sample below minSample threshold returns sampleSufficient=false with uncertainty='observed'","No thresholds supplied: thresholdSupplied=false, no pass/fail verdict rendered","Missing required batch fields: batches with no produced count return producedSupplied=false","Malformed CSV or JSON input exceeding maxLength limits returns validation error","Empty batches array: no comparisons computed, empty results returned","Standards not supplied: standardInvented=false confirmed, no tolerances assumed"],"whenToPreferThis":"Use this endpoint when you need to compare defect rates across multiple named production batches with explicit thresholds you supply — it will never invent tolerances or certifications. Prefer it over single-batch endpoints when cross-batch pairwise comparison is needed. It is especially suited for manufacturing QA workflows where audit trails and explicit limitation disclosures are required. Choose it when you want transparent, deterministic quality scoring that documents exactly what data was supplied vs. assumed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:37:13.964Z","isFirstParty":false,"canonicalSlug":"brainiac-manufacturing-quality-batch-compare-2afe0609"}