{"uid":"cap_zy8CsjWKjT2ZzOcfC_ypk","slug":"quality-inspections-numeric-row-ordering-and-secondary-measure-f865c75b","name":"Quality Inspections Numeric Row Ordering and Secondary-Measure Weighted Mean","description":"Quality inspections — Numeric row ordering + Secondary-measure weighted mean: Numeric row ordering + Secondary-measure weighted mean for supplied quality inspections records (inspected_items, accepted_items). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-operations-20-121?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","team_group","date","inspected_items","accepted_items"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"team_group":{"type":"string","default":"","maxLength":80},"accepted_items":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"inspected_items":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","team_group":"group-a","accepted_items":1,"inspected_items":10},{"date":"2026-10-02","row_id":"row-2","team_group":"group-b","accepted_items":2,"inspected_items":20},{"date":"2026-10-03","row_id":"row-3","team_group":"group-a","accepted_items":3,"inspected_items":15},{"date":"2026-10-04","row_id":"row-4","team_group":"group-b","accepted_items":4,"inspected_items":30}],"maxItems":200,"minItems":1},"field":{"enum":["inspected_items","accepted_items"],"type":"string","default":"inspected_items"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h147rouHW9JyldwUrrogN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs numeric row ordering and secondary-measure weighted mean analysis on quality inspection records (inspected_items, accepted_items) for up to 200 rows, returning 2 analytical reports.","exampleAgentPrompt":"Take my quality inspection data — 4 rows with row IDs row-1 through row-4, team groups group-a and group-b, dates 2026-10-01 to 2026-10-04, inspected_items values 10, 20, 15, 30, and accepted_items values 1, 2, 3, 4 — and run numeric row ordering plus a secondary-measure weighted mean on the inspected_items field.","exampleUseCases":[{"title":"Ranking inspection batches by volume","prompt":"I have 8 quality inspection records from last month with row IDs batch-1 through batch-8, each tagged with a team group and date, and I need you to rank them numerically by inspected_items and compute the weighted mean of accepted_items across all rows."},{"title":"Weighted acceptance rate for two production lines","prompt":"Here are 50 quality inspection rows from our two production lines — line-alpha and line-beta — with daily dates from 2026-09-01 to 2026-10-20, inspected_items and accepted_items counts for each row. Can you order the rows by accepted_items and give me the weighted mean using inspected_items as the secondary measure?"},{"title":"Ops team monthly quality summary","prompt":"I need a statistical summary of our ops team's quality inspections for October — 120 rows, each with a row_id, team_group, date, inspected_items, and accepted_items. Please sort them numerically by inspected_items and calculate the secondary-measure weighted mean so I can see overall performance."}],"resultDescription":"Returns 2 independent analytical reports: (1) a numerically ordered ranking of the supplied inspection rows by the chosen field (inspected_items or accepted_items), and (2) a secondary-measure weighted mean computed across the dataset — all derived locally from supplied data, with no external lookups.","failureModes":["More than 200 rows submitted — request exceeds the maxItems limit and will be rejected","Missing required fields (row_id, team_group, date, inspected_items, or accepted_items) cause validation errors","Invalid date format (not YYYY-MM-DD) triggers pattern validation failure","Numeric values outside the allowed range (-1,000,000,000,000 to 1,000,000,000,000) rejected","Invalid field enum value (anything other than 'inspected_items' or 'accepted_items') causes error","Empty rows array (minItems:1 not satisfied) returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need both numeric row ordering and a weighted mean computation on quality inspection data (inspected_items, accepted_items) in a single low-cost call. It is ideal for offline/batch statistical summarization of inspection records without needing live lookups, predictions, or external integrations. Best suited for datasets up to 200 rows where you want two bundled analytical reports for $0.01 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T00:42:40.457Z","isFirstParty":false,"canonicalSlug":"quality-inspections-numeric-row-ordering-and-secondary-measure-f865c75b"}