{"inputSchema":{"type":"object","properties":{"lot":{"type":"integer","minimum":1,"maximum":1000000},"sample":{"type":"integer","minimum":1,"maximum":1000},"observed":{"type":"integer","minimum":0,"maximum":1000},"alpha":{"type":"number","minimum":0.000001,"maximum":0.999999}},"required":["lot","sample","observed","alpha"],"additionalProperties":false},"outputSchema":{"type":"object","required":["measured_at","source","data","limitations"],"properties":{"measured_at":{"type":"string"},"source":{"type":"object","required":["reference","retrieved_at"],"properties":{"reference":{"type":"string"},"retrieved_at":{"type":"string"}}},"data":{"type":"object","properties":{"upper_defects":{"type":"integer"},"upper_fraction":{"type":"number"}},"required":["upper_defects","upper_fraction"]},"limitations":{"type":"string"}}},"requestExample":{"lot":1000,"sample":52,"observed":0,"alpha":0.05},"usageGuide":["Simple random sampling without replacement. Each unit is either defective or good. Perfect inspection and like-for-like replacement where stated. Negative cutoff denotes no feasible plan."],"outputExample":{"measured_at":"2026-11-24T15:31:58.212Z","source":{"reference":"Caller-supplied lot and random sampling plan","retrieved_at":"2026-11-24T15:31:58.212Z"},"data":{"upper_defects":54,"upper_fraction":0.054},"limitations":"Simple random sampling without replacement. Each unit is either defective or good. Perfect inspection and like-for-like replacement where stated. Negative cutoff denotes no feasible plan."},"tags":["acceptance sampling","quality control","lot inspection","hypergeometric"],"price_usdc":"0.005"}